Skip to content

Instantly share code, notes, and snippets.

@maietta
Created July 2, 2016 18:37
Show Gist options
  • Save maietta/96ae53b3cb369207cece58f65f14d9dc to your computer and use it in GitHub Desktop.
Save maietta/96ae53b3cb369207cece58f65f14d9dc to your computer and use it in GitHub Desktop.
To list drives by UUIDs
sudo blkid
/dev/sda1: UUID="38159b38-18fc-4511-81eb-a0e0fbf35f84" TYPE="ext2" PARTUUID="23c65b5b-01"
/dev/sda5: UUID="Afr241-YeaV-VvzI-KwGm-TFDv-pC2s-bIAuRy" TYPE="LVM2_member" PARTUUID="23c65b5b-05"
/dev/sdb: UUID="92604d6f-b523-46e7-9b42-0e36946d299f" SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/bigfoot--1--vg-root: UUID="12747bcd-ce80-46be-a511-776150125d23" TYPE="ext4"
/dev/mapper/bigfoot--1--vg-swap_1: UUID="fa7cd8db-4abc-4654-832e-1c31863db2c3" TYPE="swap"
Make a mountpoint directory using
mkdir -p /data
Then, edit /etc/fstab to include the following at the end of the file
UUID=92604d6f-b523-46e7-9b42-0e36946d299f /data ext3 defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment