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.
tune2fs -l /dev/vgdata/lvdocsCorrect. tune2fs -l displays the superblock settings.
mkfs.ext4 /dev/vgdata/lvdocsIncorrect. mkfs.ext4 recreates the filesystem.
mount -l /dev/vgdata/lvdocsIncorrect. 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 / ヘルプ表示のみ
- Prefer help or version output and a disposable device when testing storage commands.
- Formatting, repair, and mount changes can affect data or availability.
Foundation review
Place the operation
The same utility can inspect or modify metadata, so the option determines the side effect.
Check the side effect
Record current values before making an ext metadata change.