Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
mdoctorfat(1)		     General Commands Manual		   mdoctorfat(1)

Name
     mdoctorfat - doctors the allocation table of a file

Note of warning
     This  manpage  has been automatically generated from mtools's texinfo docu-
     mentation, and may not be entirely accurate or complete.  See  the  end  of
     this man page for details.

Description
     The  mdoctorfat command was initially intended as a test/debugging tool. It
     allows to flag FAT clusters as bad blocks, and also to change the	clusters
     allocated	to a file. No consistency check is done, clusters previously al-
     located to the file are not freed. Use at your own risk.

     Syntax:

     mdoctorfat [-o offset] -b drive clusters
     mdoctorfat [-o offset] [-s size] file clusters

     If flag -b is present, the command marks the clusters as bad blocks  rather
     than change the allocation of a file.

     If  flag  -b is not present, the commands sets the clusters to allocated to
     the file.

     If option -s is given in addition to the -b, this also changes the size  in
     bytes of the file.

     The  cluster  list  is  represented  as  a  sequence of clusters or cluster
     ranges. Example: 7-10 20 21-24. Each range needs to be a different  parame-
     ter.

     If  -o is given, this specifies an offset to be added to each cluster (off-
     set is expressed in number of clusters).

See Also
     Mtools' texinfo doc

Viewing the texi doc
     This manpage has been automatically generated from mtools's  texinfo  docu-
     mentation.  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/man-
     ual/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 con-
     ventions used in info.

mtools-4.0.49			     14Jun25			   mdoctorfat(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mdoctorfat&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help