
mkdosfs | 293
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Options
-m mode, --mode mode
Set the access mode for new directories. See chmod for an
explanation of acceptable formats for mode.
-p, --parents
Create intervening parent directories if they don’t exist.
-v, --verbose
Print a message for each directory created.
--help
Print help message and then exit.
--version
Print version number and then exit.
-Z context, --context=context
Set security context in SELinux.
Examples
Create a read-only directory named personal:
mkdir -m 444 personal
The following sequence:
mkdir work; cd work
mkdir junk; cd junk
mkdir questions; cd ../..
can be accomplished by typing this:
mkdir -p work/junk/questions
mkdosfs
mkdosfs [options] device [blocks]
mkfs.msdos [options] device [blocks]
System administration command. Format device as an MS-DOS
filesystem. You may specify the number of blocks on the device or
allow mkdosfs to guess.
Options
-A Create an Atari MS-DOS filesystem.
-b backup-sector
Specify sector for backup boot sector. The default value
depends on the number of reserved sectors, but is usually
sector 6.
-c Scan device for bad blocks before execution.
-C Create and format a file suitable for use on a floppy disk. The
device given on the command line should be a filename, and
the number of blocks must also be specified.
-f n
Specify number of