List block devices
Tree of disks, partitions, loop devices with filesystem info
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID
- tool
- linux133 commands
- tags
- linuxdiskfilesystem
More linux commands
-
blkidPrint UUID, LABEL, and FSTYPE for all block devices
-
mount -t ext4 /dev/sdb1 /mnt/dataMount ext4 partition to /mnt/data
-
findmnt --realList all real (non-virtual) mounted filesystems in a tree
-
mount -o remount,rw /Remount the root filesystem as read-write (e.g. after rescue boot)
-
fsck -n /dev/sdb1Dry-run fsck check (no changes); unmount first for a live fix