Previous Thread
Next Thread
Print Thread
imgtool: Doesn't work with PC-DOS 1 & 2 images? #115230
05/05/19 09:46 AM
05/05/19 09:46 AM
Joined: Feb 2012
Posts: 62
Switzerland
T
Tinu Offline OP
Member
Tinu  Offline OP
Member
T
Joined: Feb 2012
Posts: 62
Switzerland
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
05/05/19 11:49 AM
Joined: Mar 2001
Posts: 16,206
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,206
USA
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
05/05/19 06:27 PM
Joined: Feb 2012
Posts: 62
Switzerland
T
Tinu Offline OP
Member
Tinu  Offline OP
Member
T
Joined: Feb 2012
Posts: 62
Switzerland
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 (Dam0, reenigne), 28 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,654
Posts113,414
Members4,846
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.045s Queries: 14 (0.013s) Memory: 5.5953 MB (Peak: 5.7591 MB) Zlib enabled. Server Time: 2019-05-26 06:59:06 UTC