jfs_mkfs(8)
π¦ NAME π¦
ok so bestie, meet jfs_mkfs β the icon, the moment, the tool that creates a JFS formatted partition. it's from the jfs_mkfs(8) manual, and she's here to make your disk beautiful (after obliterating literally everything on it, but we'll get to that π).
β¨ SYNOPSIS β¨
jfs_mkfs [options] device [ blocks ]
πΈ DESCRIPTION πΈ
jfs_mkfs is the girl who creates (formats) a JFS partition. and no cap, she has one requirement: you must run her as root. like, root. she does not play.
device is the special file name that points at the actual device (think /dev/hdb1) where your JFS file system and/or JFS journal is gonna live. blocks is how many blocks you want the file system to use. leave it out and jfs_mkfs just figures the file system size herself. main character energy, honestly.
the default block size is 4096. periodt.
π¨ WARNING π¨
jfs_mkfs will destroy all data on the specified device!
not exaggerating. not being dramatic. everything. gone. bye. πͺ¦ so please, for the love of everything, double-check that device name before you hit enter.
π OPTIONS π
-cβ check the device for bad blocks before building the file system. a little pre-flight vibe check. π©Ί-jjournal_deviceβ create the external JFS journal onjournal_device, create the JFS file system ondevice, and attach that external journal to the file system. π-Jjournal-optionsβ create the JFS journal on its own device, or attach an external JFS journal to the JFS file system, using whatever options you throw on the command line. here's what's supported:journal_devβ create an external JFS journal on the given device. β¨device=external-journalβ attach an existing external JFS journal living onexternal-journalto the JFS file system that's about to be created ondevice. that external journal has to already exist, and you make it with:
jfs_mkfs -J journal_dev external-journal
then you attach that external journal to the file system you're creating with:
jfs_mkfs -J device=external-journal device
and listen β instead of naming a device directly, external-journal can also be given as either LABEL=label or UUID=UUID, so it finds the external journal by its volume label or UUID stored in the JFS external log superblock at the start of the journal. use jfs_tune(8) to show a journal device's volume label and UUID. (peep the -l, -L, and -U options of jfs_tune(8).) π
heads up bestie: only one ofjournal_devordevice=can be given perjfs_mkfsissuance. pick a lane. π
-Lvolume_labelβ set the volume label for the newly formatted device. and if you use-Lvolume_labeltogether with-Jjournal_device, then the volume label of that specified external journal device gets set tovolume_label. otherwise, the volume label of the JFS file system gets set tovolume_label. π·οΈ-Oβ provide case-insensitive support for compatibility with OS/2. retro moment. π°οΈ-qβ quiet execution. do not ask for confirmation before creating the file system. no questions, just vibes. π€«-slog_sizeβ set the log size (in megabytes) of the inline log. if you don't use-s, the default log size is 0.4% of the aggregate size. π-Vβ print version information and exit. and she means exit regardless of any other chosen options. like, she's leaving, don't try to stop her. π
π EXAMPLES π
format the 3rd partition on the 2nd hard disk with the volume label "JFS_hdb3":
jfs_mkfs -L JFS_hdb3 /dev/hdb3
format the 5th partition on the 1st hard disk, verifying each block created:
jfs_mkfs -c /dev/hda5
format the 3rd partition on the 2nd hard disk as an external journal, format the 4th partition on the 1st hard disk as a JFS file system, and attach that external journal to the file system:
jfs_mkfs -j /dev/hdb3 /dev/hda4
π REPORTING BUGS π
if you find a bug in JFS or jfs_mkfs, pls report it via the bug tracking system (the "Report Bugs" section) of the JFS project web site:
http://jfs.sourceforge.net/
and send as much pertinent information as you possibly can, including any error messages that came out of running jfs_mkfs. the more tea, the better. π«
π SEE ALSO π
mkfs(8), jfs_fsck(8), jfs_fscklog(8), jfs_tune(8), jfs_logdump(8), jfs_debugfs(8)
π 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/
and that's the whole page, bestie!! πβ¨π this one's dated March 9, 2005, and it's page jfs_mkfs(8) from the JFS file system creation manual β she's been serving since '05 and she's still iconic. go forth, format responsibly, and don't forget to check that device name twice π¦π
π¦ where this page comes from
- debian bookworm: jfsutils 1.1.15-5
- debian trixie: jfsutils 1.1.15-6
- ubuntu jammy: jfsutils 1.1.15-5build3
- ubuntu noble: jfsutils 1.1.15-5build4
- ubuntu questing: jfsutils 1.1.15-6
- ubuntu resolute: jfsutils 1.1.15-7
- ubuntu stonking: jfsutils 1.1.15-7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms