MKDISKIMAGE(1)
πΎ MKDISKIMAGE(1) πΎ
okay bestie, buckle up β this is mkdiskimage from the Syslinux Project, and it's literally the girlboss of blank disk images. No cap. π«Ά
β¨ NAME β¨
mkdiskimage β creates a blank, MS-DOS formatted hard disk image. That's the whole job. She does one thing and she ate. π
πΈ SYNOPSIS πΈ
mkdiskimage [-doFMz4] [-i id] file cyl head sect
π¦ DESCRIPTION π¦
So here's the vibe: this is a convenient lil tool that generates a hard disk image for you, already pre-formatted according to the MS-DOS specification, and it's got all the properties you asked for. Iconic, honestly.
A disk image named file gets created, and it'll be big enough to hold cyl cylinders, head heads, and sect sectors. But wait β if you use -M, then cyl doesn't mean cylinders anymore, it gets interpreted as size in MBytes instead. The way that one letter flips the whole meaning?? π
Other stuff you can do: ZIP type disks, FAT32 formatting, and adding an emulation header. Little extras, big energy. β¨
π OPTIONS π
-4β uses the fourth partition table entry. This is the standard for ZIP-disks, so if you're doing ZIP-disk things, this is your girl. π-Fβ formats the partition using a FAT32 file system. FAT32 era, we love to see it.-Mβ the argument cyl is given in Megabytes. She recalculates it to get the count in cylinders. Math? On my watch? Apparently yes. π§-dβ adds a DOSEMU header. Cute lil header, just for you.-iid β specifies the MBR identity field as id. Give her a name, she'll wear it. π-oβ prints to stdout the file system offset. Very "here's where it actually starts, bestie". π-zβ uses a ZIP-disk geometry. Heads up though: this one needsheads=64andsect=32. It's not a suggestion, it's a requirement, fr fr. β οΈ
π₯ SEE ALSO π₯
π HOMEPAGE π
Want more tea about the Syslinux project? All the info lives on the homepage at <http://www.syslinux.org/>. Go look, iykyk. π¦
π AUTHOR π
mkdiskimage was written by H. Peter Anvin <hpa@zytor.com>.
This manual page was written by Mats Erik Andersson <debian@gisladisker.se>.
shoutout to the authors for real, they carried this whole page on their backs π
and that's the whole page, bestie!! version 5.00, dated 2014-06-14 β a true classic that still serves. mwah π
β¨
π¦ where this page comes from
- debian bookworm: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3+b1 Β· GPL-2.0-or-later
- debian trixie: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3.1 Β· GPL-2.0-or-later
- ubuntu jammy: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3 Β· GPL-2.0-or-later
- ubuntu questing: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3.1ubuntu1
- ubuntu resolute: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3.2ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: syslinux-utils 3:6.04~git20190206.bf6db5b4+dfsg1-3.2ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms