How do I Automount an Hard dRive in my Computer in Ubuntu?

Liam Proven lproven at
Fri Nov 27 17:16:35 UTC 2015

On 27 November 2015 at 17:53, Simon Quigley <sqawesome99 at> wrote:
> You would be looking to edit your /etc/fstab file. As this is not my expertise, I am going to point
> you to two helpful guides:

The most helpful thing I found was mtab, which people tend not to mention.

/etc/mtab lists all your currently-mounted drives and volumes, but
what's useful is that it lists them in a format that is compatible
with /etc/fstab entries.

What you do is mount the drives manually, the way you want, then:

[1] IMPORTANT! Make a backup copy of /etc/fstab, e.g. as /etc/fstab.old
[2] Copy the lines for the drives you want automounted from /etc/mtab
[3] Paste them into /etc/fstab
[4] Save, reboot

You should leave the existing drives' entries alone, and just add the
new lines for the drives you want to be mounted at boot.

Be careful. Muck up fstab and your computer might not boot!

Liam Proven • Profile:
Email: lproven at • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

More information about the ubuntu-users mailing list