Aquiles Carattino logo

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.

Newsletter

Join my experiment of better thinking and interesting discussions
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
Privacy Policy
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.