ufiformat(8)
π ufiformat β the USB floppy glow-up page π
ok so bestie, welcome to ufiformat(8) from the System Manager's Manual π this is the tool that gives your dusty lil USB floppy disk a whole new life. raw format energy only. let's go π¦
β¨ NAME β¨
ufiformat β Format a USB floppy disk. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
ufiformat [ -hiqvV ] [ -f|--format [size]] [ devicepath ]
like, look at her. so compact. so powerful. devicepath is optional and honestly she'll figure it out π
β¨ OPTIONS β¨
-f,--format [size]β tell her the format capacity you want, SIZE in KB. no-f? then she just uses whatever format the current media is already rocking. lowkey convenient fr fr β¨-V,--verifyβ double-checks the medium after formatting, like a vibe check for your data π«Ά only meaningful when you're not using the-ioption, just so u know.-F,--forceβ skips ALL the safety checks. no net, no helmet, no cap π¨ do not be casual about this one bestie.-i,--inquireβ shows you the device info instead of formatting anything. and if you don't give her a devicepath argument? she lists every single USB floppy disk device attached to the system. main character roll call π-v,--verboseβ be verbose. she will simply tell you more things π¬-q,--quietβ suppress the minor diagnostics. she's being demure, she's being mindful π-h,--helpβ shows the help message. the classic. the icon π
β¨ DESCRIPTION β¨
okay so. ufiformat is a raw level formatting disk utility for USB floppy devices πΎ
now let's talk about what "raw level format" actually means, because it is NOT what you think it is. raw level format writes gap, index, sectors to the unformatted disk using special commands that are specific to the disk controller β the whole point is turning that plain magneto-sensitive film into an actual sector-addressable medium. it's giving β¨material girlβ¨
π¨ IMPORTANT: raw level format is NOT about creating filesystems (fs(5)) on the disk. different thing entirely, don't mix them up bestie.
after the mid-1990's, floppy disks are sold generally pre-formatted in MS-DOS 2HD format: 80 cylinder, 2 heads, 18 sectors/track, 512 bytes/sector. so like, raw formatting is seldom needed. BUT β and this is the tea β β raw formatting could cure some disk and drive mismatchings. sometimes the relationship just needs a hard reset πβ‘οΈπ
β οΈ WARNING: You will NOT raw format an LS-120 disks or (removable) hard disks; they are precision formatted in factory and cannot be raw reformatted. periodt. do not try it. she said what she said.
ufiformat supports only the following format capacities:
1440/1232/1200 (for 2HD disk)
720/640 (for 2DD disk)
the device should support the capacities too, otherwise ufiformat shows an error message π it's a two-way street, no cap.
the above format capacities are predefined in the program, but each USB floppy device also has a limited set of formats (defined internally) that it can format media to. the allowed format capacities are obtained by querying (-i) the device, but this only returns the total format capacity and not CHS (cylinder, heads and sectors), hence a mapping is required in the program. iykyk π§ β¨
β¨ EXAMPLES β¨
Inquiry the device for available format:
# modprobe sg
# ufiformat -i /dev/sda
vendor: Y-E DATA
product: USB-FDU
write protect: off
media type: 2HD
status block size kb
formatted 2880 512 1440
formattable 2880 512 1440
formattable 1232 1024 1232
formattable 2400 512 1200
look at all those formattable rows bestie, she's thriving πΈ
Format the floppy disk in 1.44MB, and create a FAT filesystem:
# ufiformat -f 1440 /dev/sda
# mkdosfs -I /dev/sda
two commands. that's the whole arc. ate π π₯
β¨ PREREQUISTES β¨
ufiformat needs /dev/sg* SCSI pass-thru device to operate π«Ά if the device does not exist, add the driver by invoking modprobe sg.
and yeah β you often need to be root to do anything with /dev/sd*. it's giving permission slip energy π
β¨ SEE ALSO β¨
fdformat(8)floppy(8)sg(4)
and also, for the lore girlies π:
"Universal Serial Bus Mass Storage Class - UFI Command Specification" Revision 1.0 December 14 1998 http://www.usb.org/developers/devclass_docs/usbmass-ufi10.pdf
and that's the whole page!! this was ufiformat(8) from the System Manager's Manual, and honestly? iconic π go format something (safely, bestie, don't use -F unless you mean it π) πβ¨ππ¦π
π¦ where this page comes from
- debian bookworm: ufiformat 0.9.9-1.1
- debian trixie: ufiformat 0.9.9-1.2 Β· GPL-2.0-or-later
- fedora 43: ufiformat 0.9.8-30.fc43 Β· GPL-2.0-or-later
- fedora 44: ufiformat 0.9.8-31.fc44 Β· GPL-2.0-or-later
- nixos 26.05: ufiformat 0.9.9
- nixpkgs unstable: ufiformat 0.9.9
- ubuntu jammy: ufiformat 0.9.9-1.1
- ubuntu noble: ufiformat 0.9.9-1.1build2
- ubuntu questing: ufiformat 0.9.9-1.2
- ubuntu resolute: ufiformat 0.9.9-1.2build1 Β· GPL-2.0-or-later
- ubuntu stonking: ufiformat 0.9.9-1.3 Β· 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