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

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


On 27 November 2015 at 17:53, Simon Quigley <sqawesome99 at gmail.com> 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:
> https://help.ubuntu.com/community/Fstab
> https://wiki.archlinux.org/index.php/Fstab


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.

https://en.wikipedia.org/wiki/Mtab

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: http://lproven.livejournal.com/profile
Email: lproven at cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)



More information about the ubuntu-users mailing list