Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 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, 57 guest(s) and 0 member(s) that are online.

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

  

mkfs.msdos



SYNOPSIS

       mkdosfs  [  -A ] [ -b sector-of-backup ] [ -c ] [ -l file­
       name ] [ -C ] [ -f number-of-FATs ] [ -F FAT-size ]  [  -i
       volume-id  ] [ -I ] [ -m message-file ] [ -n volume-name ]
       [ -r root-dir-entries ] [ -R number-of-reserved-sectors  ]
       [ -s sectors-per-cluster ] [ -S logical-sector-size ] [ -v
       ] device [ block-count ]


DESCRIPTION

       mkdosfs is used to create  an  MS-DOS  file  system  under
       Linux  on  a device (usually a disk partition).  device is
       the  special  file  corresponding  to  the   device   (e.g
       /dev/hdXX).   block-count  is  the number of blocks on the
       device.  If omitted, mkdosfs automatically determiness the
       file system size.


OPTIONS

       -A     Use  Atari variation of the MS-DOS filesystem. This
              is default if mkdosfs is run on an Atari, then this
              option  turns off Atari format. There are some dif­
              ferences when using Atari format: If  not  directed
              otherwise  by  the  user, mkdosfs will always use 2
              sectors per  cluster,  since  GEMDOS  doesn't  like
              other values very much.  It will also obey the max­
              imum number of sectors GEMDOS can  handle.   Larger
              filesystems are managed by raising the logical sec­
              tor size.  Under Atari format, an  Atari-compatible
              serial  number for the filesystem is generated, and
              a 12 bit FAT is used only for filesystems that have
              one  of  the usual floppy sizes (720k, 1.2M, 1.44M,
              2.88M), a 16 bit FAT otherwise. This can  be  over­
              ridden  with  the  -F option. Some PC-specific boot
              sector fields aren't written, and  a  boot  message
              (option -m) is ignored.

       -b sector-of-backup
              Selects  the location of the backup boot sector for
              FAT32. Default depends on number of  reserved  sec­
              tors,  but  usually is sector 6. The backup must be
              within the range of reserved sectors.

       -c     Check the device for bad blocks before creating the
              file system.

       -C     Create  the  file  given  as  device on the command
              line, and write the to-be-created  file  system  to
              it.  This can be used to create the new file system
              in a file instead of on a real device, and to avoid
              using dd in advance to create a file of appropriate
              size. With this option,  the  block-count  must  be
              given,  because  otherwise the intended size of the
              file system wouldn't be known. The file created  is

       -F FAT-size
              Specifies the type of file allocation  tables  used
              (12,  16  or  32  bit).   If  nothing is specified,
              mkdosfs will automatically select between 12 and 16
              bit,  whatever fits better for the filesystem size.
              32 bit FAT (FAT32 format) must (still) be  selected
              explicitly if you want it.

       -i volume-id
              Sets the volume ID of the newly created filesystem;
              volume-id is a 32-bit hexadecimal number (for exam­
              ple,  2e24ec82).   The  default  is  a number which
              depends on the filesystem creation time.

       -I     Normally you are not  allowed  to  use  any  'full'
              fixed disk devices.  mkdosfs will complain and tell
              you that it refuses to  work.   This  is  different
              when  usind MO disks.  One doesn't always need par­
              titions on MO disks.  The filesytem can go directly
              to  the whole disk.  Under other OSes this is known
              as the 'superfloppy' format.

              This switch will force mkdosfs to work properly.

       -l filename
              Read the bad blocks list from filename.

       -m message-file
              Sets the message the user receives on  attempts  to
              boot   this   filesystem  without  having  properly
              installed an operating system.   The  message  file
              must not exceed 418 bytes once line feeds have been
              converted to  carriage  return-line  feed  combina­
              tions,  and  tabs have been expanded.  If the file­
              name is a hyphen (-), the text is taken from  stan­
              dard input.

       -n volume-name
              Sets  the  volume  name  (label) of the filesystem.
              The volume name can be up to  11  characters  long.
              The default is no label.

       -r root-dir-entries
              Select  the number of entries available in the root
              directory.  The default is 112 or 224 for  floppies
              and 512 for hard disks.

       -R number-of-reserved-sectors
              Select  the  number  of reserved sectos. With FAT32
              format at least 2 reserved sectors are needed,  the
              default is 32. Otherwise the default is 1 (only the
              boot sector).

       mkdosfs can not create bootable filesystems. This isn't as
       easy  as  you might think at first glance for various rea­
       sons and has been discussed a lot already.  mkdosfs simply
       will not support it ;)


AUTHOR

       Dave Hudson - <dave@humbug.demon.co.uk>; modified by Peter
       Anvin <hpa@yggdrasil.com>. Fixes and  additions  by  Roman
       Hodek     <Roman.Hodek@informatik.uni-erlangen.de>     for
       Debian/GNU Linux.


ACKNOWLEDGEMENTS

       mkdosfs is based on code from mke2fs (written by Remy Card
       - <card@masi.ibp.fr>) which is itself based on mkfs (writ­
       ten by Linus Torvalds - <torvalds@cs.helsinki.fi>).


SEE ALSO

       dosfsck(8), mkfs(8)

Version 2.x                 5 May 1995                 MKDOSFS(8)

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =


  
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 choose larger fonts by selecting a different themes.


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.09 Seconds