Automount hard drive on linux

First published:

Last Edited:

Number of edits:

First, let's find out the available disks:

sudo fdisk -l

Then we can find the UUID of each disk:

sudo blkid

And we finally edit fstab to automount based on UUID:

UUID=14D82C19D82BF81E /data    auto nosuid,nodev,nofail,x-gvfs-show 0 0

See also: encrypt and automount hard drives on linux


Backlinks

These are the other notes that link to this one.

Comment

Share your thoughts on this note
Aquiles Carattino
Aquiles Carattino
This note you are reading is part of my digital garden. Follow the links to learn more, and remember that these notes evolve over time. After all, this website is not a blog.
© 2021 Aquiles Carattino
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
Privacy Policy