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 would like to stop Ubuntu from mounting my other (Windows') partitions automatically (since I do not need it really often - and especially I would like not to automount "System reserved" partition for Windows.

There is a similar question here

How can I stop Ubuntu 12.04 from mounting Fedora 16's Swap Partition? but!

I do not have these partitions added in /etc/fstab.

How can I do it ?

For proof, my /etc/fstab

proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda7 during installation
UUID=1384cee0-6a71-4b83-b0d3-1338db925168 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=e3729117-b936-4c1d-9883-aee73dab6729 none            swap    sw              0       0
#------ MY WINDOWS D DRIVE---------- I WANT TO KEP IT
UUID=98E8B14DE8B12A80                   /media/d            ntfs    defaults,errors=remount-ro  0   0
share|improve this question

1 Answer 1

up vote 5 down vote accepted

I believe the solution is to add them to /etc/fstab, but with options to prevent them from being automatically mounted. I think the option you want is noauto rather than auto. I would suggest using ... ntfs defaults,noauto 0 0 for the entries you don't want to automount.

A good explanation of fstab options can be found on the ArchWiki

share|improve this answer

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.