...
Copy the resultant UUID (for your disk) and then open fstab for editing (note I'm using vim here but use whatever editor you prefer):
Code Block | ||
---|---|---|
| ||
sudo nanovim /etc/fstab |
You want to add an entry for the UUID and mount point. Below is an example of an fstab file with an entry added for the mount above:
...
We always want to test the fstab before rebooting (an incorrect fstab can render a disk unbootable). To test do:
Code Block | ||
---|---|---|
| ||
sudofindmnt mount --averify |
check the last line for errors. Warnings can help in improving your fstabIf nothing is returned (e.g. no errors) then you should be good to go.
Unmounting drive with umount
...