mkfs.jfs command not found

In this troubleshooting guide we learn how to fix mkfs.jfs command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mkfs.jfs: command not found

or when using sudo you get the following error message

sudo: mkfs.jfs: command not found

Solutions to mkfs.jfs: command not found

How To Fix mkfs.jfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mkfs.jfs is provided by jfsutils package.

jfsutils is:

Utilities for managing IBM’s Journaled File System (JFS) under Linux.

IBM’s journaled file system technology, currently used in IBM enterprise servers, is designed for high-throughput server environments, key to running intranet and other high-performance e-business file servers.

The following utilities are available:

  • fsck.jfs - initiate replay of the JFS transaction log, and check and repair a JFS formatted device.
  • logdump - dump a JFS formatted device’s journal log.
  • logredo - “replay” a JFS formatted device’s journal log.
  • mkfs.jfs - create a JFS formatted partition.
  • xchkdmp - dump the contents of a JFS fsck log file created with xchklog.
  • xchklog - extract a log from the JFS fsck workspace into a file.
  • xpeek - shell-type JFS file system editor.

To fix this problem, we can install more using the command below.

sudo apt-get -y install jfsutils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install jfsutils.

sudo apt -y install jfsutils

Or if you have aptitude installed you can use the following command.

sudo aptitude install jfsutils

Summary

In this tutorial we learn how to fix mkfs.jfs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.