Finally found a command line disk image tool.

Page 1/2
| 2

By Rastersoft

Supporter (7)

Rastersoft's picture

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 or register to post comments

By Giangiacomo Zaffini 2

Champion (284)

Giangiacomo Zaffini 2's picture

09-09-2020, 12:06

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

By Rastersoft

Supporter (7)

Rastersoft's picture

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.

By NYYRIKKI

Enlighted (6041)

NYYRIKKI's picture

09-09-2020, 14:33

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

By Manuel

Ascended (19333)

Manuel's picture

09-09-2020, 14:46

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

By Briqunullus

Hero (647)

Briqunullus's picture

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.

By gdx

Enlighted (6127)

gdx's picture

09-09-2020, 15:11

Login is required to download.

By pgimeno

Champion (328)

pgimeno's picture

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 ::

By Pencioner

Scribe (1549)

Pencioner's picture

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

By pgimeno

Champion (328)

pgimeno's picture

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

By jltursan

Prophet (2619)

jltursan's picture

09-09-2020, 20:10

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

Page 1/2
| 2