mbadblocks(1)
β¨ mbadblocks β the girlies' guide to flagging bad blocks on ur floppy β¨
okay so bestie, welcome to mbadblocks(1) from the General Commands Manual π this is the mtools girlie that tests a floppy disk and marks the bad blocks in the FAT. she's giving disk-detective energy and honestly? iconic π΅οΈβοΈβ¨
β οΈ Note of warning (read this first fr fr) β οΈ
ngl this manpage has been automatically generated from mtools's texinfo documentation, and it may not be entirely accurate or complete π so don't come for her if something's off. peep the end of this man page for the deets π
πΈ Description πΈ
the mbadblocks command is used to mark some clusters on an MS-DOS filesystem bad π she's got the following syntax:
mbadblocks [-s sectorlist|-c clusterlist|-w] drive:
if no command line flags are supplied, Mbadblocks scans an MS-DOS filesystem for bad blocks by simply trying to read them and flag them if read fails π«Ά all blocks that are unused are scanned, and if detected bad are marked as such in the FAT. no cap, that's the whole vibe.
this command is intended to be used right after mformat β¨ like, literally immediately. she is not intended to salvage data from bad disks β so do not expect her to rescue ur precious files, she's not that kind of main character π
π Command line options π
-cfile β use a list of bad clusters, rather than scanning for bad clusters itself. she'll trust ur list bestie π-sfile β use a list of bad sectors (counted from beginning of filesystem), rather than trying for bad clusters itself. note the counting-from-the-beginning-of-the-filesystem thing, that part matters β-wβ write a random pattern to each cluster, then read it back and flag cluster as bad if mismatch π₯ only free clusters are tested in such a way, so any file data is preserved π«Ά slay, safe queen.
π Bugs π
Mbadblocks should (but doesn't yet :-( ) also try to salvage bad blocks which are in use by reading them repeatedly, and then mark them bad. so basically she's a work in progress, and the :-( is literally in the original, so we're all feeling that together π
π See Also π
Mtools' texinfo doc π
π Viewing the texi doc π
this manpage has been automatically generated from mtools's texinfo documentation. however, this process is only approximative, and some items, such as crossreferences, footnotes and indices are lost in this translation process π indeed, these items have no appropriate representation in the manpage format. moreover, not all information has been translated into the manpage version. thus I strongly advise you to use the original texinfo doc. see the end of this manpage for instructions how to view the texinfo doc.
- to generate a printable copy from the texinfo doc, run the following commands:
./configure; make dvi; dvips mtools.dvi
- to generate a html copy, run:
./configure; make html
a premade html can be found at http://www.gnu.org/software/mtools/manual/mtools.html
- to generate an info copy (browsable using emacs' info mode), run:
./configure; make info
the texinfo doc looks most pretty when printed or as html β¨ indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. so if u want the pretty version, go print or html, periodt π
mtools-4.0.49 π¦ 14Jun25 π¦ and that's the whole page bestie, mwah π go forth and mark those bad blocks, u absolute icon πβ¨
π¦ where this page comes from
- alpine 3.23: mtools-doc 4.0.49-r0 Β· GPL-3.0-or-later
- alpine 3.24: mtools-doc 4.0.49-r0 Β· GPL-3.0-or-later
- fedora 43: mtools 4.0.49-2.fc43 Β· GPL-3.0-or-later
- fedora 44: mtools 4.0.49-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: mtools 4.0.49
- nixpkgs unstable: mtools 4.0.49
- ubuntu resolute: mtools 4.0.49-1 Β· GPL-3.0-only
- ubuntu stonking: mtools 4.0.49-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms