This is a how-to on how to add storage devices to /etc/fstab and have them mount on boot.
1. Create the directory for the partition and get the device id. If you already have a directory you would like to use as a mount point, you can skip this step.
The dirtectory can be created via:
Replace the directory destination with the directory you would like to make your device's mount point.
2. Add the fstab entry:
blkidand look for the device. The output could be:
/dev/sda2: UUID="32a4b76f-246e-486e-8495-31b8a781fb4c" TYPE="swap" /dev/sda1: UUID="31f39d50-16fa-4248-b396-0cba7cd6eff2" TYPE="ext4"
- Then open /etc/fstab in the editor of your choice and append the line:
UUID=31f39d50-16fa-4248-b396-0cba7cd6eff2 /your/directory/here auto rw,user,auto 0 0Be sure to add a newline after the entry to avoid any warnings.
To mount the partition, open a terminal and type:
mount /your/directory/hereBecause of the entry
autothe device should be mounted automatically on next boot.