Previous Thread
Next Thread
Print Thread
CHD Explorer ? Adding files to CHD #114373
12/02/18 01:21 PM
12/02/18 01:21 PM
Joined: Mar 2015
Posts: 3
FRANCE
J
JVernet Offline OP
Member
JVernet  Offline OP
Member
J
Joined: Mar 2015
Posts: 3
FRANCE
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.

Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114374
12/02/18 02:34 PM
12/02/18 02:34 PM
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
Vas Crabb Online content
Very Senior Member
Vas Crabb  Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
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.

Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114376
12/02/18 04:05 PM
12/02/18 04:05 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
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.

Re: CHD Explorer ? Adding files to CHD [Re: R. Belmont] #114377
12/02/18 04:48 PM
12/02/18 04:48 PM
Joined: Mar 2015
Posts: 3
FRANCE
J
JVernet Offline OP
Member
JVernet  Offline OP
Member
J
Joined: Mar 2015
Posts: 3
FRANCE
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

Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114378
12/02/18 04:53 PM
12/02/18 04:53 PM
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
Vas Crabb Online content
Very Senior Member
Vas Crabb  Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,012
Sydney, Australia
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.

Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114379
12/02/18 04:54 PM
12/02/18 04:54 PM
Joined: Mar 2015
Posts: 3
FRANCE
J
JVernet Offline OP
Member
JVernet  Offline OP
Member
J
Joined: Mar 2015
Posts: 3
FRANCE
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.
Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114380
12/02/18 06:27 PM
12/02/18 06:27 PM
Joined: Jan 2012
Posts: 950
Bavaria
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member
Joined: Jan 2012
Posts: 950
Bavaria
For a quick local fix of the 3.5" drive you need to add

Code
	device.option_add("35dd", FLOPPY_35_DD);


around line 1041

and change


Code
	MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, nullptr,    pc1512_base_state::floppy_formats)


to

Code
	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

Code
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
Re: CHD Explorer ? Adding files to CHD [Re: JVernet] #114382
12/02/18 06:49 PM
12/02/18 06:49 PM
Joined: Jan 2012
Posts: 950
Bavaria
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member
Joined: Jan 2012
Posts: 950
Bavaria
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]


NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20

Who's Online Now
2 registered members (Vas Crabb, 1 invisible), 118 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,606
Posts112,516
Members4,827
Most Online296
Dec 5th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.060s Queries: 14 (0.017s) Memory: 5.6446 MB (Peak: 5.8492 MB) Zlib enabled. Server Time: 2018-12-16 11:08:45 UTC