6/14/2016

How to automount Linux drives

# Use 'blkid' to print the universally unique identifier for a
# device;
# Or sudo fdisk -l

Find the UUID, it may look like this UUID="9210-C510"

sudo gedit /etc/fstab

UUID=3e7208a2-670c-4c33-846f-50fc4e75c340 /mnt/wd0 ext4 defaults,errors=remount-ro 0 0

UUID=7d0ddfee-ec78-4425-805d-dee5b9ef7cf8 /mnt/wd1 ext4 defaults,errors=remount-ro 0 0

Then, run
sudo mount -a to execute the file


Bonus: how to manually mount a drive
sudo mount -t ext4

/mnt/wd0

No comments: