Section: JFS file system creation (8)
Updated: March 9, 2005
- create a JFS formatted partition
[ blocks ]
is used to create (format) a JFS partition.
must be run as root.
is the special file name corresponding to the actual device
on which a JFS file system and/or JFS journal will be created.
is the number of blocks to be used for the file system. If omitted,
automatically figures the file system size.
The default block size is
will destroy all data on the specified device!
Check the device for bad blocks before building the file system.
- -j journal_device
Create the external JFS journal on
, create the JFS file system on
, and attach the external journal to the file system.
- -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:
Create an external JFS journal on the given device.
Attach an existing external JFS journal located on
to the JFS file system that will be created on
journal must already have been created using the command
jfs_mkfs -J journal_dev
Attach the external journal to the file system being created by using the command
jfs_mkfs -J device=external-journal
Instead of specifying a device name directly,
can also be specified by either
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
to display a journal device's volume label and UUID. (See the
Only one of the
journal_dev or device=
options can be given per
- -L volume_label
Set the volume label for the newly formatted device.
is used along with
the volume label of the specified external journal device
will be set to
Otherwise, the volume label of the JFS file system will be set to
Provide case-insensitive support for compatibility with OS/2.
Quiet execution - do not ask for confirmation before creating the file system.
- -s log_size
Set the log size (in megabytes) of the inline log. If the
option is not used, the default log size is 0.4% of the aggregate size.
Print version information and exit (regardless of any other chosen options).
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
If you find a bug in
please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site:
Please send as much pertinent information as possible including any error messages resulting from running
Barry Arndt (firstname.lastname@example.org)
William Braswell, Jr.
is maintained by IBM.
See the JFS project web site for more details: