Where to start First steps track · 15 stages
Linux Labs

lsblk — block devices

cheat sheet · util-linux https://lab.dimsanych.ru/en/wiki/lsblk/

Cheat sheet

  • lsblk tree: disks → partitions → LVM/RAID
  • lsblk -f + filesystem, UUID, mountpoint
  • lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT custom columns
  • lsblk -d disks only, no partitions
  • lsblk -p /dev/sdb one device, full path
  • lsblk -e 7 skip loop devices (major 7)

Options

Below are the main flags; the full list is in man lsblk.

Loading…