Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Cactus

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 216 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

mformat




Note of warning

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


Description

       The mformat command is used to add an MS-DOS filesystem to
       a low-level formatted diskette. Its syntax is:

       mformat [-t cylinders] [-h heads] [-n sectors]
         [-f size] [-1] [-4] [-8]
         [-v volume_label]
         [-F] [-S sizecode] [-X]
         [-2 sectors_on_track_0] [-3]
         [-0 rate_on_track_0] [-A rate_on_other_tracks]
         [-M software_sector_size]
         [-N serial_number] [-a]
         [-C] [-H hidden_sectors] [-I fsVersion]
         [-r root_sectors] [-L fat_len]
         [-B boot_sector] [-k]
         [-m media_descriptor]
         drive:

       Mformat adds a minimal  MS-DOS  filesystem  (boot  sector,
       FAT,  and  root  directory) to a diskette that has already
       been formatted by a Unix low-level format.

       The following options are supported: (The S, 2,  1  and  M
       options may not exist if this copy of mtools has been com­
       piled without the USE_2M option)

       The following options are the same  as  for  Dos's  format
       command:


Options

       v      Specifies  the volume label. A volume label identi­
              fies the disk and can be a maximum  of  11  charac­
              ters. If you omit the -v switch, mlabel will assign
              no label to the disk.

       f      Specifies the size of the DOS filesystem to format.
              Only  a certain number of predefined sizes are sup­
              ported by this flag; for others  use  the  -h/-t/-n
              flags. The following sizes are supported:


              1200   1200K, double-sided, 15 sectors  per  track,
                     80 cylinders (for 5 1/4 HD)

              1440   1440K,  double-sided,  18 sectors per track,
                     80 cylinders (for 3 1/2 HD)

              2880   2880K, double-sided, 36 sectors  per  track,
                     80 cylinders (for 3 1/2 ED)

       t      Specifies the number of tracks on the disk.

       h      The number of heads (sides).

       n      Specifies  the  number of sectors per track. If the
              2m option  is  given,  number  of  512-byte  sector
              equivalents  on  generic  tracks  (i.e.  not head 0
              track 0).  If the 2m option is not given, number of
              physical  sectors  per  track  (which may be bigger
              than 512 bytes).

       1      Formats a single side (equivalent to -h 1)

       4      Formats a 360K double-sided disk (equivalent to  -f
              360).  When  used together with -the 1 switch, this
              switch formats a 180K disk

       8      Formats a disk with 8 sectors per track.

       MSDOS format's q, u and b options are not supported, and s
       has a different meaning.

       The following options are specific to mtools:

       F      Format the partition as FAT32.

       S      The  sizecode. The size of the sector is 2 ^ (size­
              code + 7).

       X      formats the disk as an XDF disk. See  section  XDF,
              for  more  details.  The  disk has first to be low-
              level formatted using the xdfcopy utility  included
              in  the  fdutils  package.  XDF  disks are used for
              instance for OS/2 install disks.

       2      2m format. The parameter to this  option  describes
              the  number  of  sectors  on  track 0, head 0. This
              option is recommended for sectors bigger than  nor­
              mal.

       3      don't use a 2m format, even if the current geometry
              ber is generated.  Ataris store their serial number
              in the OEM label.

       C      creates  the  disk image file to install the MS-DOS
              filesystem on it. Obviously,  this  is  useless  on
              physical  devices  such  as  floppies and hard disk
              partitions, but is interesting for image files.

       H      number of hidden sectors. This parameter is  useful
              for  formatting  hard disk partition, which are not
              aligned on track boundaries  (i.e.  first  head  of
              first  track  doesn't  belong to the partition, but
              contains a partition table). In that case the  num­
              ber  of  hidden sectors is in general the number of
              sectors per cylinder. This is untested.

       I      Sets the  fsVersion  id  when  formatting  a  FAT32
              drive.   In order to find this out, run minfo on an
              existing FAT32 drive, and mail me about  it,  so  I
              can include the correct value in future versions of
              mtools.

       c      Sets the size of a cluster (in sectors).   If  this
              cluster  size would generate a FAT that too big for
              its number of bits, mtools automatically  increases
              the cluster size, until the FAT is small enough.

       d      Sets  the  number of FAT copies. Default is 2. This
              setting   can   also   be   specified   using   the
              MTOOLS_NFATS environment variable.

       r      Sets  the  size of the root directory (in sectors).
              Only applicable to 12 and 16 bit FATs. This setting
              can  also  be  specified  using  the MTOOLS_DIR_LEN
              environment variable.

       L      Sets the length of the FAT.

       B      Use the bootsector stored  in  the  given  file  or
              device,  instead of using its own.  Only the geome­
              try fields are updated to match  the  target  disks
              parameters.

       k      Keep  the existing boot sector as much as possible.
              Only the geometry fields and other similar filesys­
              tem  data  are  updated  to  match the target disks
              parameters.

       m      Use a non-standard media descriptor byte  for  this
              disk. The media descriptor is stored at position 21
              of the boot sector, and as first byte in  each  FAT
              copy.  Using  this  option may confuse DOS or older

       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  crossrefer­
       ences,  footnotes and indices are lost in this translation
       process.  Indeed, these items have no  appropriate  repre­
       sentation in the manpage format.  Moreover, not all infor­
       mation 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://mtools.linux.lu'      and      also     at:
              `http://www.tux.org/pub/knaff/mtools'

       *      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.

mtools-3.9.9                 05Jun03                   mformat(1)
  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.28 Seconds