nerdexam
LPI

010-100 · Question #84

The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?

The correct answer is B. 1 megabyte. The mke2fs/mkfs usage type 'largefile' sets the bytes-per-inode ratio to 1 megabyte, meaning one inode is allocated per 1 MB of filesystem space.

The Linux Operating System

Question

The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?

Options

  • A4 kilobyte
  • B1 megabyte
  • C2 megabyte
  • D4 megabyte

How the community answered

(18 responses)
  • A
    11% (2)
  • B
    83% (15)
  • D
    6% (1)

Why each option

The mke2fs/mkfs usage type 'largefile' sets the bytes-per-inode ratio to 1 megabyte, meaning one inode is allocated per 1 MB of filesystem space.

A4 kilobyte

A 4 KB bytes-per-inode ratio is typical of the default or 'small' usage type, not 'largefile'.

B1 megabyteCorrect

When mkfs.ext3 (mke2fs) is invoked with '-T largefile', it applies the 'largefile' usage type defined in /etc/mke2fs.conf, which sets the bytes-per-inode ratio to 1,048,576 bytes (1 MB). This reduces inode density for filesystems expected to store large files, allocating roughly one inode per megabyte of disk space.

C2 megabyte

2 MB per inode is not a standard mke2fs usage type value; 'largefile' specifically maps to 1 MB.

D4 megabyte

4 MB per inode corresponds to the 'largefile4' usage type in mke2fs, not 'largefile'.

Concept tested: mkfs ext3 inode ratio with -T largefile option

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

Topics

#mkfs#ext3 filesystem#inode size#filesystem creation

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice