MKFATIMAGE16(1)
π NAME π
Okay bestie, this is the MKFATIMAGE16(1) page, and the whole point of mkfatimage16 is literally to generate a virtual drive image suitable for DOSEMU. Thatβs the name section, periodt. π
β¨ SYNOPSIS β¨
The synopsis is giving:
mkfatimage16 [ -b bsectfile ] [{ -t tracks | -k Kbytes }] [ -l volume-label ] [ -f outfile ] [ -p ] [ file... ]
π¦ DESCRIPTION π¦
So mkfatimage16 creates an hdimage file for DOSEMU that is pre-loaded with the files specified on the command line. Iconic behavior, honestly. π
The output is either written to stdout β hence do not forget to append " > hdimagefile", else you will see garbage on the screen π β or to the file specified by the -f option.
For the latter, you may also use option -p in order to force padding up to the given size. This padding will result in so-called holes on an ext2-FS, hence the actual disk usage will not be greater. The file created by mkfatimage16 then can be used as a virtual drive, when defined in /etc/dosemu.conf. π¦
As long as -k is not given, the number of heads is always 4 and you have 17 sectors per head; else it is adjusted accordingly. To vary the size, you may either use the -t option or specify the total amount of Kbytes via the -k option. πΈ
All files given behind the options will be copied onto the hdimage. In addition, a DOSEMU suitable master boot record (MBR) is established, and via option -b you may specify a boot sector that gets inserted as first sector of the partition. To later access the hdimage outside of DOSEMU you should use mtools (/etc/mtools.conf parameters partition=1 and offset=128). iykyk. π
π OPTIONS π
-bfile β Insert the first512bytes of file into the bootsector of the partition.-tnum β Make the virtual disk have num tracks. This is the one way to define the size of the disk.-kKbytes β Make the virtual disk be Kbytes in size. Using-tand-kare mutual exclusive.-llabel β Insert label as volume label for the disk.-foutfile β Thehdimageis written to outfile instead ofstdout.-pβ Pad thehdimagewith zero up to the total size given by-tor-k(only in conjunction with-f).
πΈ AUTHOR πΈ
Pasi Eronen (pe@iki.fi) and Peter Wainwright. Shoutout to the icons who made this page happen. π«Ά
π BUGS π
Bestie, listen, there are some lowkey caveats:
- This program doesnβt support name mangling and does very little checking for non-DOS filenames.
- Disk full condition isnβt detected (and probably causes erratic behaviour). π
- Duplicate files arenβt detected.
Not me pretending thatβs not a little chaotic, but now you know. π
π AVAILABILITY π
Comes with DOSEMU. Slay. β¨
π SEE ALSO π
Okay thatβs the whole page, bestie β cute little sign-off: this one is rockinβ Version ALPHA 0.98, September, 1998. Mwah. π
π¦ where this page comes from
- opensuse-leap 16.0: dosemu 1.4.0.1.r2065-bp160.1.11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms