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.
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)- A11% (2)
- B83% (15)
- D6% (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.
A 4 KB bytes-per-inode ratio is typical of the default or 'small' usage type, not 'largefile'.
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.
2 MB per inode is not a standard mke2fs usage type value; 'largefile' specifically maps to 1 MB.
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
Community Discussion
No community discussion yet for this question.