Permanently and Automatically Mount HD in Ubuntu Linux

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

If you have a secondary hard drive that you have to manually mount in Ubuntu/Linux everytime you boot up and you are not too comfortable with the syntax for fstab, this is a possible easy shortcut for you.

You can view the currently mounted partitions by looking at mtap


cat /etc/mtab

If you do this after you have mounted the drive, you can see the full mount command that has been used, eg


/dev/sdc1 /media/BigDrive ext4 rw,nosuid,nodev,uhelper=udisks 0 0

You can copy that line and paste it into your fstab and from then on when you boot up the drive will be mounted automatically.


sudo gedit /etc/fstab

I have no idea what all that stuff means and to be honest I don’t care I just want to use my hard drive.

ALWAYS back up your fstab before making changes!

Hope that helps ;)


Tags: ubuntulinuxautomountftabmtabdrivehardautomatically