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.
Question
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)- A2% (1)
- B93% (55)
- D5% (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.
The `-d` option is not a standard `mke2fs` option for specifying filesystem type or journaling.
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`.
The `-m` option sets the percentage of reserved blocks for the superuser, not the filesystem type.
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
Community Discussion
No community discussion yet for this question.