Q . How to mount partition permanently?

Dev Singh. asked, Mar 06 ' 2017

I am using Ubuntu Minimal + LXDE. I am wondering how can I auto-mount a partition (internal) on boot automatically. Currently I do something like

mount /dev/sda3 /media/newHD

But I want it to be permanent. Also I have GParted, but the Partition > UnMount is greyed out (yes, unmount, even though I haven't mounted it)

  • ubuntu
  • disk-partition
  • mount
  • gparted

1 Answers

Unmount is greyed out because the partition isn't there to be unmounted. You haven't mounted it yet.

To make the partition auto-mount, first find out the UUID of /dev/sda3 by doing:

sudo blkid

I'll assume you're using ext4 on /dev/sda3. Open up gedit like so:

sudo gedit /etc/fstab

Now you want to add a line to the bottom of that file. It should look something like this (UUID will be different):

UUID=03ec5dd3-45c0-4f95-a363-61ff321a09ff /media/newHD ext4 defaults  0      2

For more info on fstab, https://wiki.archlinux.org/index.php/Fstab

Leave a Ansewer