I have a dual boot Windows 7, Ubuntu 11.10 system. Ubuntu was pretty much a vanilla installation and it was able to automount my two Win partitions.

I used to see them in Nautilus. To recover this problem I manipulated the /etc/fstab which is operated under roots and that I am not able to unmount from Nautilus as Admin (unless I sudo from terminal)

How can I restore the original behavior (from my admin non-root account)? Thank you

  • 1
    Has your question been answered? I ask in case there is something that has been missed – Crimbo Nov 6 '13 at 23:32
  • Many answers but indeed I could not make it work – ray Nov 29 '13 at 22:41
  • 1
    possible duplicate of How to automount a partition on login? – Lucio May 25 '14 at 16:21

The visual way

(if you are using version Ubuntu 12.10 Quantal Quetza or higher)

Make sure the drive/partition you would like to attach is attached to your system and is turned on.

This guide is referenced from here.

Click on the "Dash" icon on your Unity taskbar (Ubuntu icon) and enter:


Click on "Disks" to open up the program.

Once opened, on its main window, "Disks" graphically shows you your current partition layout.

Now simply choose the NTFS partition that you want to automatically mount on boot, then click on the small gears icon slightly below it. From the menu choose:

‘Edit Mount Options…’

From the next window that is shown, move the slider button to the left, next to the ‘Automatic Mount Options’ label, to gain access to the settings.

Keep the check-marked option ‘Mount at startup’.

Select/Fill the next four options if you wish. "Display Name" is a handy visual aid in Nautilus (file manager).

If you wish to have the drive as read-only



...to the end of the field that says "nosuid,nodev,nofail,x-gvfs-show" (without a space).

Once done, click on the ‘OK’ button at the bottom. When asked, enter your administrative password.

If you have more than one NTFS partition, then follow the same steps for each one individually.

Restart your computer and enjoy!

| improve this answer | |

The command-line way

Make sure the drive/partition you would like to attach is attached to your system and is turned on.

This guide is taken from here (it is for 12.04, but should work for other versions of Ubuntu) and bits from here.

Press Ctrl + Alt + T on your keyboard to open Terminal and type:

sudo blkid

This will list the drives on your system, with handle labels, where available.

Take note of the UUID of the drive you wish to automatically mount.

Now the "fstab" file needs editing:

sudo gedit /etc/fstab


sudo nano /etc/fstab

Add this line to the bottom of the file, replacing the UUID with your noted UUID and choose a mount point name (the space character is created by using "\040" in the fstab):

UUID=xxxxxxxxxxx /mnt/Your\040Chosen\040Name ntfs-3g defaults,windows_names,locale=en_US.utf8  0 0

Also replace the local to one suitable for your location and language if you are not in the USA. You can find your locale by typing in the terminal:


The "ntfs-3g" (a Kernel module) is a lower level software tool in almost all GNU/Linux distributions.

Save the file and close it.

Now type this into the terminal:

sudo mkdir "/mnt/Your Chosen Name"

Next, make yourself the owner of the mount point by typing:

sudo chown <username> "/mnt/Your Chosen Name"

Replacing with your username (your username is always lower-case). This will prevent other users from touching it.

Restart your computer and enjoy!

| improve this answer | |

Try this program.

sudo apt-get install pysdm
sudo pysdm

This will help you configure your drives that are mounted at startup.

In the program, select your windows partition. When it asks you to configure, click 'Ok'. Then click on the assistant. It's pretty clear from there.

| improve this answer | |
  • I tried but what it does it is just to edit /etc/fstab. So the final effect is the same: I can unmount it from nautilus – ray Apr 19 '12 at 7:42
  • Okay, that's pretty weird. One final thing: I've had some trouble with windows drives when I haven't install ntfs-3g. Try installing that if it isn't already. – A. Hayes Apr 19 '12 at 23:53

In the "options" field in /etc/fstab (fourth space-delimited field) add the "user" option. So

/dev/sda5    /windows    ntfs-3g    defaults    0 0


/dev/sda5    /windows    ntfs-3g    defaults,user    0 0

This extra parameter will "allow a user to mount".

Source: man fstab.

| improve this answer | |
  • I didn't put the user option and this is allowing nautilus as mounted "devices". Nevertheless I cannot unmount them as this would require root. I could do in terminal with sudo but actually at the first boot I didn't need to do that (I could unmount directly from nautilus) – ray Apr 18 '12 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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