NAME
jfs_mkfs
- create a JFS formatted partition
SYNOPSIS
jfs_mkfs
[options]
device
[ blocks ]
DESCRIPTION
jfs_mkfs
is used to create (format) a JFS partition.
jfs_mkfs
must be run as root.
device
is the special file name corresponding to the actual device
(e.g. /dev/hdb1)
on which a JFS file system and/or JFS journal will be created.
blocks
is the number of blocks to be used for the file system. If omitted,
jfs_mkfs
automatically figures the file system size.
The default block size is
R 4096 .
WARNING
jfs_mkfs
will destroy all data on the specified device!
OPTIONS
./"*********************************************
./"* block size has not been implemented yet *
./"*********************************************
./".TP
./".BI -b " block_size"
./"Set the block size for a new JFS partition
./".RS
./"
./"Options for
./".I block_size
./"are:
./".BR 512 ","
./".BR 1024 ","
./".BR 2048 ", or"
./".BR 4096 "."
./"
./"Using small blocks (rather than large blocks) is more space efficient because it
./"reduces the amount of internal fragmentation within files and directories.
./"However, using large blocks (rather than small blocks) is more performance efficient
./"because block allocation activities may occur less often .
./"
./"If the
./".B -b
./"option is not used, the default block size is
./".BR 4096 "."
./".RE
I -c
Check the device for bad blocks before building the file system.
./"**********************************
./"* use -q (quiet) instead of -f *
./"**********************************
./".TP
./".BI -f
./"Force - do not ask for confirmation before creating the file system.
I -j journal_device
Create the external JFS journal on
journal_device
, create the JFS file system on
device
, and attach the external journal to the file system.
I -J journal-options
Create the JFS journal on its own device or attach an external JFS journal
to the JFS file system using options specified on the command-line.
The following journal options are supported:
I journal_dev
Create an external JFS journal on the given device.
I device= external-journal
Attach an existing external JFS journal located on
external-journal
to the JFS file system that will be created on
R device .
The external
journal must already have been created using the command
jfs_mkfs -J journal_dev
external-journal
Attach the external journal to the file system being created by using the command
I jfs_mkfs -J device=external-journal
device
Instead of specifying a device name directly,
external-journal
can also be specified by either
I LABEL= label
or
I UUID= UUID
to locate the external journal by either the volume label or UUID
stored in the JFS external log superblock at the start of the journal. Use
jfs_tune(8)
to display a journal device's volume label and UUID. (See the
R -l ,
R -L ,
and
-U
options of
jfs_tune(8).)
Only one of the
R journal_dev or device=
options can be given per
jfs_mkfs
issuance.
I -L volume_label
Set the volume label for the newly formatted device.
If
I -L volume_label
is used along with
R -J journal_device ,
the volume label of the specified external journal device
will be set to
R volume_label .
Otherwise, the volume label of the JFS file system will be set to
R volume_label .
-O
Provide case-insensitive support for compatibility with OS/2.
I -q
Quiet execution - do not ask for confirmation before creating the file system.
I -s log_size
Set the log size (in megabytes) of the inline log. If the
-s
option is not used, the default log size is 0.4% of the aggregate size.
I -V
Print version information and exit (regardless of any other chosen options).
EXAMPLES
Format 3rd partition on 2nd hard disk with the volume label "JFS_hdb3":
jfs_mkfs -L JFS_hdb3 /dev/hdb3
Format 5th partition on 1st hard disk, verifying each block created:
jfs_mkfs -c /dev/hda5
Format 3rd partition on 2nd hard disk as external journal, format 4th
partition on 1st hard disk as JFS file system, and attach the external
journal to the file system:
jfs_mkfs -j /dev/hdb3 /dev/hda4
REPORTING BUGS
If you find a bug in
JFS
or
R jfs_mkfs ,
please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site:
http://jfs.sourceforge.net/
Please send as much pertinent information as possible including any error messages resulting from running
R jfs_mkfs .
SEE ALSO
AUTHORS
Barry Arndt (barndt@us.ibm.com)
William Braswell, Jr.
jfs_mkfs
is maintained by IBM.
See the JFS project web site for more details:
http://jfs.sourceforge.net/