1 min read

Finding out which disk is which on Ubuntu

My file server often has various disks swapped in and out. It can get confusing which /dev/sd? corresponds to which drive. While reading the man page of findfs, I stumbled on this:

The complete overview about filesystems and partitions you can get for example by:
  lsblk —fs
  partx —show
  blkid

These three things (along with judicious use of e2label and the other *label commands) is going to make my life a lot easier!