Disks & Storage

Storage inspection & management

lsblk -f
Show filesystems and UUIDs
lsblk -f
storage
blkid
Probe block device attributes
sudo blkid
storage
mount / umount
Mount/umount filesystems
sudo mount /dev/sdb1 /mnt
sudo umount /mnt
storage
fdisk / parted
Partition disks (MBR/GPT)
sudo fdisk /dev/sdb  # interactive
sudo parted -l
storage
mkfs.*
Create filesystems
sudo mkfs.ext4 /dev/sdb1
storagedanger
smartctl / nvme
Drive health and NVMe info
sudo smartctl -a /dev/sda
sudo nvme list
health
iostat / dstat
I/O performance stats
iostat -xz 1
performance
btrfs / zfs
Advanced filesystems
btrfs filesystem df /pool
zpool status
advanced