LX0-103 · Question #99
Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
The correct answer is A. ext2. When mkfs is invoked with only a block device and no filesystem type specified, it defaults to creating an ext2 filesystem.
Question
Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
Options
- Aext2
- Bext3
- Cext4
- DXFS
- EVFAT
How the community answered
(35 responses)- A89% (31)
- B3% (1)
- C6% (2)
- D3% (1)
Why each option
When mkfs is invoked with only a block device and no filesystem type specified, it defaults to creating an ext2 filesystem.
mkfs is a front-end that calls filesystem-specific creation tools. When no -t type argument is provided, the default filesystem type compiled into mkfs is ext2. This behavior is defined by the mkfs implementation on Linux systems, where ext2 is the historical default, and no journaling or extended features are added unless a type like ext3 or ext4 is explicitly requested.
ext3 includes a journal layer on top of ext2 and must be explicitly requested with mkfs -t ext3 or mkfs.ext3.
ext4 is a more modern journaling filesystem that must be explicitly specified with mkfs -t ext4 or mkfs.ext4.
XFS is a completely different filesystem that must be explicitly specified using mkfs -t xfs or mkfs.xfs.
VFAT is a FAT-based filesystem used for compatibility with Windows and must be explicitly specified using mkfs -t vfat or mkfs.vfat.
Concept tested: mkfs default filesystem type selection
Source: https://man7.org/linux/man-pages/man8/mkfs.8.html
Topics
Community Discussion
No community discussion yet for this question.