Display available block devices as a tree and include filesystem type, label, UUID, free space, usage, and mount points.
Do not specify each device separately.
Which command is appropriate?
lsblk --fs provides a tree view with filesystem and mount information such as FSTYPE, LABEL, UUID, FSAVAIL, FSUSE%, and MOUNTPOINTS.
Detailed explanation
lsblk --fsCorrect. lsblk --fs displays block devices and filesystem attributes in a tree.
Correct. lsblk --fs displays block devices and filesystem attributes in a tree.
blkid --eraseIncorrect. blkid --erase would be a destructive attribute operation, not a read-only survey.
Incorrect. blkid --erase would be a destructive attribute operation, not a read-only survey.
mount --allIncorrect. mount --all mounts fstab entries rather than displaying a device tree.
Incorrect. mount --all mounts fstab entries rather than displaying a device tree.
umount --allIncorrect. umount --all detaches filesystems.
Incorrect. umount --all detaches filesystems.
Try it yourself
An example you can run in a temporary verification environment.
lsblk --fsExpected result
ブロックデバイスとファイルシステム属性のツリーKey points
- --fs shows filesystem data
- The tree shows parent-child relations
- Multiple mount points can be displayed
Notes
- Environment: util-linux lsblk 2.39以降
- 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.