Skip to content

Instantly share code, notes, and snippets.

@kevin39
Last active September 21, 2016 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevin39/a186d335cd9e36c88e68b62ef34e301a to your computer and use it in GitHub Desktop.
Save kevin39/a186d335cd9e36c88e68b62ef34e301a to your computer and use it in GitHub Desktop.
DISK BY UUID
$ blkid /dev/sdg1
/dev/sdg1: LABEL="IPBXRECORDS" UUID="C4CD-C4FA" TYPE="exfat
$ ls /dev/disk/by-uuid -l
total 0
lrwxrwxrwx 1 root root 10 Jun 25 13:10 2d2fdee8-1307-4df4-b3d9-7e69c4e05bfc -> ../../sde1
lrwxrwxrwx 1 root root 10 Sep 21 05:18 2e21785b-b370-4e13-8449-6a5729ae3387 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 25 13:10 3655492c-fe05-4e5d-bd41-f9b85c86e884 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 25 13:11 36e9fd6f-bec6-4957-888c-c2d24b64f084 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 25 13:10 5122218b-1688-4412-b6c5-e72e79c68180 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 25 13:10 74f324c1-0418-494c-b730-c439531d834a -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 25 13:10 b1ee5e43-adf9-4f5b-8df7-cb36d4b1bdbb -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 25 13:10 b5c800e7-1272-4525-b191-6099a21ee052 -> ../../dm-1
lrwxrwxrwx 1 root root 9 Jun 25 13:10 b89d0837-688f-403d-8119-a7724e3e3bcb -> ../../sdc
lrwxrwxrwx 1 root root 10 Sep 21 06:12 C4CD-C4FA -> ../../sdg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment