nerdexam
Linux_Foundation

LFCS · Question #719

Which command will create an ext3 filesystem on /dev/hda2?

The correct answer is B. /sbin/mke2fs -j /dev/hda2. To create an ext3 filesystem, the mke2fs command is used with the -j option, which adds an ext3 journal to the specified device.

Submitted by stefanr· Apr 18, 2026Storage Management

Question

Which command will create an ext3 filesystem on /dev/hda2?

Options

  • A/sbin/mke2fs -d /dev/hda2
  • B/sbin/mke2fs -j /dev/hda2
  • C/sbin/mke2fs -m 3 /dev/hda2
  • D/sbin/mke2fs -c ext3 /dev/hda2

How the community answered

(59 responses)
  • A
    2% (1)
  • B
    93% (55)
  • D
    5% (3)

Why each option

To create an ext3 filesystem, the `mke2fs` command is used with the `-j` option, which adds an ext3 journal to the specified device.

A/sbin/mke2fs -d /dev/hda2

The `-d` option is not a standard `mke2fs` option for specifying filesystem type or journaling.

B/sbin/mke2fs -j /dev/hda2Correct

The `mke2fs` command is used to create ext2, ext3, or ext4 filesystems. The `-j` option specifically instructs `mke2fs` to add an ext3 journal to the filesystem, thereby creating an ext3 filesystem directly on the specified device, `/dev/hda2`.

C/sbin/mke2fs -m 3 /dev/hda2

The `-m` option sets the percentage of reserved blocks for the superuser, not the filesystem type.

D/sbin/mke2fs -c ext3 /dev/hda2

The `-c` option instructs `mke2fs` to check the device for bad blocks before creating the filesystem; it does not specify the filesystem type as `ext3`.

Concept tested: Creating ext3 filesystem (mke2fs)

Source: https://man7.org/linux/man-pages/man8/mke2fs.8.html

Topics

#mke2fs command#ext3 filesystem#filesystem creation#journaling

Community Discussion

No community discussion yet for this question.

Full LFCS Practice