Finally found a command line disk image tool.

Page 1/2
| 2

Par Rastersoft

Supporter (7)

Portrait de Rastersoft

09-09-2020, 11:33

I found a program called fat12maker, on sourceforge. It is a command line tool that can make disk images compatible with the MSX. The tool supports common MSX image sizes and sector formats. It can also include a boot sector and add files to the image.

The program had a few problems. I've fixed the ones related to 720k and 360k disk images. I haven't tested any of the other formats. They do look correct.

The modified source code is available from:
https://github.com/cdoty/fat12maker

!login ou Inscrivez-vous pour poster

Par Giangiacomo Zaffini 2

Master (232)

Portrait de Giangiacomo Zaffini 2

09-09-2020, 12:06

I think many people, on Windows o.s., uses Disk-Manager by LexLechz.

Par Rastersoft

Supporter (7)

Portrait de Rastersoft

09-09-2020, 13:59

It's not quite working as expected.

The idea was to have a command line tool that could build the image, to include in a make file or a build script.

Par NYYRIKKI

Enlighted (5595)

Portrait de NYYRIKKI

09-09-2020, 14:33

If you need command line tool to other direction, you can use Extract

Par Manuel

Ascended (16970)

Portrait de Manuel

09-09-2020, 14:46

I've always used the good old wrdsk and rddsk, by Arnold Metselaar. 720kB only.

Par Briqunullus

Master (176)

Portrait de Briqunullus

09-09-2020, 14:48

If you want to make disk images of real disks in Windows 10 you can use this Floppy Drive Image tool by Alank2. It supports reading single sided disks as well.

Par gdx

Prophet (3749)

Portrait de gdx

09-09-2020, 15:11

Login is required to download.

Par pgimeno

Master (238)

Portrait de pgimeno

09-09-2020, 18:37

For Linux there's mformat from mtools.

dd if=/dev/zero of=<name of image file> bs=1024 count=160
mformat -i <name of image file> -f 160 ::

Par Pencioner

Scribe (1176)

Portrait de Pencioner

09-09-2020, 18:43

@Rastersoft too bad it is not cross-platform so including in Makefiles make the build process not-crossplatform too. Though, in Mac/Linux it is possible to work with such images without special tools, so maybe that's not a problem (just an inconvenience to maintain two builds)

@pgimeno also you can create raw image (using dd), create fat12 filesystem (using mkfs.vfat), loop mount it to folder and just copy files Smile

Par pgimeno

Master (238)

Portrait de pgimeno

09-09-2020, 19:55

Pencioner wrote:

@pgimeno also you can create raw image (using dd), create fat12 filesystem (using mkfs.vfat), loop mount it to folder and just copy files Smile

Yeah but when I tried with a 160K image, I got this:

Quote:

$ file mkdosfs.dsk
mkdosfs.dsk: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "mkfs.fat", sectors/cluster 4, root entries 512, sectors 320 (volumes <=32 MB) , Media descriptor 0xf8, sectors/FAT 1, sectors/track 32, heads 64, serial number 0x3c8b635d, unlabeled, FAT (12 bit)

Media descriptor F8, 4 sectors per cluster, 512 root entries, 32 sectors/track and 64 heads sounds pretty wrong for a 160K floppy.

However, the mformat data made sense:

Quote:

$ file mformat.dsk
mformat.dsk: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MTOO4018", root entries 64, sectors 320 (volumes <=32 MB) , Media descriptor 0xfe, sectors/FAT 1, sectors/track 8, heads 1, serial number 0x3094c273, unlabeled, FAT (12 bit), followed by FAT

Par jltursan

Prophet (2316)

Portrait de jltursan

09-09-2020, 20:10

You can also download sources for nataliapc's dsktool...

Page 1/2
| 2