Get the UUID of partitions in Debian
$ ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 Oct 16 10:27 2d781b26-0285-421a-b9d0-d4a0d3b55680 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 16 10:27 31f8eb0d-612b-4805-835e-0e6d8b8c5591 -> ../../sda7 lrwxrwxrwx 1 root root 10 Oct 16 10:27 3FC2-3DDB -> ../../sda6 lrwxrwxrwx 1 root root 10 Oct 16 10:27 5090093f-e023-4a93-b2b6-8a9568dd23dc -> ../../sda2 lrwxrwxrwx 1 root root 10 Oct 16 10:27 912c7844-5430-4eea-b55c-e23f8959a8ee -> ../../sda5 lrwxrwxrwx 1 root root 10 Oct 16 10:27 B0DC1977DC193954 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Oct 16 10:27 bae98338-ec29-4beb-aacf-107e44599b2e -> ../../sdb2
Cleaner fstab
This is useful if you want to write a solid /etc/fstab partition mounter based on unique UUID of partitions and not just their SATA connection which can change when you plug / unplug new hard drives.
Edit fstab
sudo mkdir /igloo
sudo nano /etc/fstab
UUID=313069f4-8c0d-42a4-b68b-5e18bf3f878a /igloo ext4 defaults 1 3
Remount fstab without rebooting
$> mount -a
Recent Comments