Inspect the UUID, label, mount count, check interval, and feature flags for /dev/sdb1.
Display the superblock values without changing them.
Which command is appropriate?
tune2fs -l displays ext2/3/4 superblock tuning values, including UUID, labels, and check conditions, without changing them.
Detailed explanation
e2fsck -l /dev/sdb1Incorrect. e2fsck -l is not the standard superblock-parameter listing command.
Incorrect. e2fsck -l is not the standard superblock-parameter listing command.
tune2fs -l /dev/sdb1Correct. tune2fs -l /dev/sdb1 lists ext4 superblock and tuning values.
Correct. tune2fs -l /dev/sdb1 lists ext4 superblock and tuning values.
df -l /dev/sdb1Incorrect. df -l is not the ext4 tuning report requested.
Incorrect. df -l is not the ext4 tuning report requested.
xfs_db -l /dev/sdb1Incorrect. xfs_db is for XFS, not ext4.
Incorrect. xfs_db is for XFS, not ext4.
Try it yourself
An example you can run in a temporary verification environment.
tune2fs -l /tmp/ext4-test.img | headExpected result
一時ext4イメージのスーパーブロック情報Key points
- tune2fs handles ext filesystems
- -l means list
- Inspect UUID and check settings
Notes
- Environment: e2fsprogs 1.47
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.