Automount hard drive on linux
<p>First, let's find out the available disks:</p>
<pre class="codehilite"><code class="language-bash">sudo fdisk -l
</code></pre>
<p>Then we can find the UUID of each disk:</p>
<pre class="codehilite"><code class="language-bash">sudo blkid
</code></pre>
<p>And we finally edit fstab to automount based on UUID:</p>
<pre class="codehilite"><code>UUID=14D82C19D82BF81E /data auto nosuid,nodev,nofail,x-gvfs-show 0 0
</code></pre>
<p>See also: <a class="wikilink" href="/encrypt_and_automount_hard_drives_on_linux/">encrypt and automount hard drives on linux</a></p>
Backlinks
These are the other notes that link to this one.
Comment
Share your thoughts on this note. Comments are not public, they are
messages sent directly to my inbox.