How to find partition UUID on Arch Linux

Using UUID to identify you partitions is better then using kernel device names .i.e /dev/sd?. Mainly on systems where drives get move around frequently. Dev names change when the physical order of the drives are change but the UUID always remains the same.

You can use the “lsblk” or “blkid” command to get the UUID of your partitions. In this case I’m running it on my Arch Linux box.

[root@r2d2 ~]# lsblk -no NAME,UUID /dev/sdb1
sdb1 eb2cb768-7306-4fe5-a981-14d27d0c25fa

[root@r2d2 ~]# lsblk -no NAME,UUID
sda1 05df7ca0-4af7-4e0a-ae1b-72518966847c
sda2 8ad2ec57-2d62-482b-96ff-253fa402c786
sdb1 eb2cb768-7306-4fe5-a981-14d27d0c25fa
sdc1 cba2f94f-3eb4-4d6b-af7d-5d947eec2209

[root@r2d2 ~]# lsblk -f
sda1 ext4 05df7ca0-4af7-4e0a-ae1b-72518966847c /
sda2 swap 8ad2ec57-2d62-482b-96ff-253fa402c786 [SWAP]
sdb1 ext4 eb2cb768-7306-4fe5-a981-14d27d0c25fa /vm
sdc1 ext4 cba2f94f-3eb4-4d6b-af7d-5d947eec2209

[root@r2d2 ~]# blkid -o list
device fs_type label mount point UUID
/dev/sdb1 ext4 /vm eb2cb768-7306-4fe5-a981-14d27d0c25fa
/dev/sdc1 ext4 (not mounted) cba2f94f-3eb4-4d6b-af7d-5d947eec2209
/dev/sda1 ext4 / 05df7ca0-4af7-4e0a-ae1b-72518966847c
/dev/sda2 swap 8ad2ec57-2d62-482b-96ff-253fa402c786
/dev/sda3 (not mounted)