Inspect ext4 UUID, label, block counts, reserved blocks, and check intervals without changing /dev/vgdata/lvdocs.
Which command is appropriate?
tune2fs -l lists ext2/3/4 superblock parameters. Change options such as -L must be distinguished from the read-only list operation.
Detailed explanation
tune2fs -L docs /dev/vgdata/lvdocsIncorrect. -L changes the filesystem label.
Incorrect. -L changes the filesystem label.
tune2fs -l /dev/vgdata/lvdocsCorrect. tune2fs -l displays the superblock settings.
Correct. tune2fs -l displays the superblock settings.
mkfs.ext4 /dev/vgdata/lvdocsIncorrect. mkfs.ext4 recreates the filesystem.
Incorrect. mkfs.ext4 recreates the filesystem.
mount -l /dev/vgdata/lvdocsIncorrect. mount -l concerns mount listings rather than detailed superblock data.
Incorrect. mount -l concerns mount listings rather than detailed superblock data.
Try it yourself
An example you can run in a temporary verification environment.
tune2fs -h 2>&1 | sed -n '1,14p'Expected result
-lを含むtune2fsの使用法Key points
- tune2fs handles ext attributes
- -l means list
- Other options can modify state
Notes
- Environment: e2fsprogs tune2fs / ヘルプ表示のみ
- 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.