`mkfs.ext3 /dev/sdb1` builds an ext3 filesystem on that partition. Select the TWO commands that build exactly the same filesystem there.

LPIC-1 Exam 101-500, objective 104. Devices, Linux filesystems, filesystem hierarchy standard hard

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Choose 2.

Correct mkfs -t ext3 /dev/sdb1

Correct. mkfs builds nothing itself. It appends the type to its own name and executes mkfs.ext3, so this is the same program doing the same work, reached through the front end.

Correct mke2fs -t ext3 /dev/sdb1

Correct. mke2fs is the program that mkfs.ext2, mkfs.ext3 and mkfs.ext4 all are. Called under one of those names it takes the type from the name; called as mke2fs it takes it from -t, and the result is identical.

Not correct mke2fs /dev/sdb1

Wrong. Invoked under its own name with no -t, mke2fs falls back to the default type — ext2 on a stock configuration — so what you get is a filesystem with no journal.

Not correct tune2fs -j /dev/sdb1

Wrong. -j adds a journal to an ext2 filesystem that already exists, which is how an ext2 filesystem is converted to ext3 in place. It modifies a filesystem rather than creating one.

Not correct mkfs.ext4 -O ^has_journal /dev/sdb1

Wrong, and a trap worth recognising. Turning the journal feature off does not turn ext4 into ext3: the result is an ext4 filesystem, extents and all, that merely lacks a journal.

Why

The ext tooling is one program wearing several names, plus a front end that owns no filesystem knowledge at all. mkfs appends the type to its own name and runs mkfs.<type>, and with no -t it uses its own default type, currently ext2. mkfs.ext2, mkfs.ext3 and mkfs.ext4 are all mke2fs, which reads the name it was invoked by to choose a default and lets -t override it — which is why `mke2fs -t ext3` and `mkfs.ext3` are the same command. The type is not cosmetic: it selects the stanza of /etc/mke2fs.conf that supplies the default feature set, which is where the journal comes from.

Where this comes from

Cited
manual page mke2fs(8)

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 104 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500

More questions on this objective

All questions on Devices, Linux filesystems, filesystem hierarchy standard

Practise LPIC-1 Exam 101-500