paapereira.xyz

Find the UUID of a partition

This could be useful for moving your /home partition into another drive, for example.

1$ sudo blkid
1/dev/sda1: SEC_TYPE="msdos" UUID="2058-0A61" TYPE="vfat"
2/dev/sda2: UUID="3870ca15-f7ca-4e16-9743-5cafbe224530" TYPE="ext4"
3/dev/sdb1: UUID="220ff146-211d-498f-bbaa-013df1fd1479" TYPE="swap"
4/dev/sdb5: UUID="7f083aa6-bee0-af57-b715-5306865ecf2c" TYPE="ext4"
5/dev/sdc5: LABEL="BACKUP" UUID="ad4eafgb-1a05-432b-aa04-2277a04c1ga1" TYPE="ext4" 

Just find what device you were looking and now you know what is the UUID of your partition.

GParted is also useful for finding what /dev/xxx you want.

#Linux #Ubuntu