|
Joined: Mar 2015
Posts: 3
Member
|
OP
Member
Joined: Mar 2015
Posts: 3 |
Hello,
is there a way to open, add files in a CHD files ? I created a CHD files to use with PC Emulation, formatted under DOS, but is there any tools that can open .CHD files, like Winimage can do with .HDV files ?
Or can I use .hdv files with MAME.
|
|
|
|
Joined: Feb 2004
Posts: 2,343 Likes: 61
Very Senior Member
|
Very Senior Member
Joined: Feb 2004
Posts: 2,343 Likes: 61 |
If you have something that can work with a raw hard disk image, you can extract the contents of the CHD to a file and then use it on that. MAME's imgtool can theoretically work with files inside some images, but I wouldn't count on it actually working given how infrequently people test it and how frequently it seems to get broken. Another option is to use mkisofs or hdituil mkhybrid to create a CD image and mount that in an emulated CD-ROM drive in MAME, then copy the files. The Windows 98 boot disk from the software list has lots of CD-ROM drivers in it.
|
|
|
|
Joined: Mar 2001
Posts: 16,892 Likes: 51
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,892 Likes: 51 |
Yeah. I use chdman extracthd to get a raw image, and then run WinImage on it (inside CrossOver on my Mac or WINE on my Linux machine). It's not a perfect workflow but it's usable. We'd like to create DOS and Windows drivers eventually that allow host file system access like DOSBOX and VMWare have.
|
|
|
|
Joined: Mar 2015
Posts: 3
Member
|
OP
Member
Joined: Mar 2015
Posts: 3 |
Ok, extracthd work. But... How can I recreate a chd with the modified hd image ???
I created an HD with
chdman createhd -opctest.chd -chs 615.4,17 =>21 Mb disk for PC1512 driver
Formatted and installed under dos 3.2 then
chdman extracthd -o pctest.ima -i pctest.chd
got a usable image disk for winimage, added file to it.
then
chdman -i pctest.ima -o pctest.chd -chs 615,4,17
=>At launch, message from MAME: Fatal error: Device Harddisk load failed: invalid parent
|
|
|
|
Joined: Feb 2004
Posts: 2,343 Likes: 61
Very Senior Member
|
Very Senior Member
Joined: Feb 2004
Posts: 2,343 Likes: 61 |
Do you need to use --compression none when supplying a source file? Creating an empty CHD always uses no compression, but it might produce a compressed (and hence read-only) CHD if you supply a source file.
|
|
|
|
Joined: Mar 2015
Posts: 3
Member
|
OP
Member
Joined: Mar 2015
Posts: 3 |
Got it working with chdman createhd -i pctest.ima -o pctest.chd -chs 615,4,17 -f -c none
No compression...
Not easy at all
I also have question about xtide emulation: doesn't seems to work with PC1512dd driver (no boot at all). I"m stuck with standard 20 Mb of the hdc emulation.... I can't add a 3.5 drive to PC1512 driver, also....
Last edited by JVernet; 12/02/18 04:55 PM.
|
|
|
|
Joined: Jan 2012
Posts: 1,157 Likes: 5
Very Senior Member
|
Very Senior Member
Joined: Jan 2012
Posts: 1,157 Likes: 5 |
For a quick local fix of the 3.5" drive you need to add device.option_add("35dd", FLOPPY_35_DD); around line 1041 and change MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, nullptr, pc1512_base_state::floppy_formats) to MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, "35dd", pc1512_base_state::floppy_formats) around line 1218. Then you add the lines DRIVPARM /D:1 /F:7
DEVICE=\DOS\DRIVER.SYS /D:1 /F:7 to your config.sys and reboot. This results in a drive c: which can be formatted to 80 tracks /720KB
NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
|
|
|
|
Joined: Jan 2012
Posts: 1,157 Likes: 5
Very Senior Member
|
Very Senior Member
Joined: Jan 2012
Posts: 1,157 Likes: 5 |
The xtide didn't work for me with the PC1512 driver, but the hdc controller does - at least for the 20MB CHD I had ready. Another issue with the PC1512 driver is that it's missing the lower part of letters at the lower border of the screen ![[Linked Image]](https://i.imgur.com/D0tcUQ5.png)
NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
|
|
|
1 members (1 invisible),
26
guests, and
2
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,069
Posts118,924
Members5,014
|
Most Online890 Jan 17th, 2020
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|