Installing the JFS Utilities
The JFS utilities let administrators create and manage JFS partitions. Download the utility archive that matches the JFS version you applied to your kernel from http://www.ibm.com/developerworks/oss/jfs/. In my case, I’ve downloaded jfsutils-1.0.21.tar.gz. Configure and build the JFS utilities as you would any standard GNU package:
#tar xzvf jfsutils-1.0.21.tar.gz#cd jfsutils-1.0.21#./configure#make && make install
Alternatively, an RPM containing the JFS utilities can be built using the command:
# rpm -ta jfsutils-1.0.21.tar.gzYou can also grab an RPM directly from your Linux distributor—many now provide one for jfsutils. Debian users may issue the command apt-get install jfsutils.
Always use a version of the utilities that matches the JFS kernel version. RPM and .deb users must double-check their utilities to ensure that they are up-to-date. Use mkfs.jfs -V to determine the current version.
Creating a filesystem
Use mkfs.jfs to create a new JFS filesystem:
#mkfs.jfs /dev/sdb1mkfs.jfs version 1.0.21, 12-Aug-2002 Warning! All data on device /dev/sdb1 will be lost! Continue? (Y/N)yFormat completed successfully. 17920476 kilobytes total disk space.
The default block size, and the only one that is currently usable, is 4 KB. There are a few options for mkfs.jfs that are outlined in detail in its manual page. Mount the new JFS partition normally, using the -t flag to specify the filesystem type:
# mount -t jfs /dev/sdb1 /mnt/jfsSeveral other utilities are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access