nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • A
    89% (31)
  • B
    3% (1)
  • C
    6% (2)
  • D
    3% (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.

Aext2Correct

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.

Bext3

ext3 includes a journal layer on top of ext2 and must be explicitly requested with mkfs -t ext3 or mkfs.ext3.

Cext4

ext4 is a more modern journaling filesystem that must be explicitly specified with mkfs -t ext4 or mkfs.ext4.

DXFS

XFS is a completely different filesystem that must be explicitly specified using mkfs -t xfs or mkfs.xfs.

EVFAT

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

#mkfs#ext2#filesystem creation#default filesystem

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice