Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 /works

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)

share|improve this question
add comment

1 Answer 1

up vote 6 down vote accepted

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:

gksudo 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 /works ext4 defaults  0      2

For more info on fstab, this is a good resource.

share|improve this answer
    
I have to mount 2 partitions(sda5 and sda6). Both are ntfs. How can I do it ? –  TomJ Jun 4 at 14:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.