Previous Thread
Next Thread
Print Thread
imgtool: Doesn't work with PC-DOS 1 & 2 images? #115230 05/05/19 09:46 AM
Joined: Feb 2012
Posts: 62
T
Tinu Offline OP
Member
OP Offline
Member
T
Joined: Feb 2012
Posts: 62
It seems that imgtool can't work with PC-DOS 1 or PC-DOS 2 floppy disk images. Two examples:
  • Checking an existing floppy image (from rom-sl):
    Code
    imgtool identify "ibmdos 2 (disk 1).img"
    . Result:
    Code
    ibmdos 2 (disk 1).img: Unrecognized format
  • Make a floppy:
    Code
    imgtool create pc_dsk_fat test.img --heads=2 --tracks=40 --sectors=9
    . The resulting image file is seen by DOS 2.00 as a single side, 8 track per sector floppy with errors on it.


Ultimately I want to copy a few downloaded files to a DOS 2.00 floppy disk image. "imgtools put" doesn't work because of the above issue. Does anyone have an idea what to do?

Thanks! Martin

P.S. I am using imgtool from Mame 0.209, Windows version.

Re: imgtool: Doesn't work with PC-DOS 1 & 2 images? [Re: Tinu] #115232 05/05/19 11:49 AM
Joined: Mar 2001
Posts: 16,273
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,273
WinImage is your friend for FAT-format images. It works great under WINE/CrossOver if you don't have a copy of Windows.

Re: imgtool: Doesn't work with PC-DOS 1 & 2 images? [Re: R. Belmont] #115236 05/05/19 06:27 PM
Joined: Feb 2012
Posts: 62
T
Tinu Offline OP
Member
OP Offline
Member
T
Joined: Feb 2012
Posts: 62
Thanks for the hint! Winimage worked fine with the DOS 2.00 images, and I could copy the files into the image.

PC-DOS 1.x images can't be read by Winimage, though. DOS source code (https://github.com/Microsoft/MS-DOS/blob/master/v2.0/source/FORMAT.txt) gives a hint as to why this could be the case: "The third to the last switch, "O", causes FORMAT to produce an IBM Personal Computer DOS version 1.X compatible disk. Normally FORMAT causes a 0 byte to be placed in the first byte of each directory entry instead of the 0E5 Hex free entry designator."

I don't need to manipulate PC-DOS 1 images, though.


Who's Online Now
2 registered members (mixmaster, Dorando), 91 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,673
Posts113,788
Members4,852
Most Online418
Aug 14th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3