I have dual OS (Windows 8 and Ubuntu), when I using Ubuntu, Windows partition Disks are automatically mounted in Explorer. I need to unmount permanently on every boot or permanently. I tried this in Gparted but when reboot it again mounted. Kindly Share your views.
2 Answers
If you want to do it nicely (i.e. really not mount the disks rather than mount them somewhere strange) it is a bit more complicated than what is suggested in the other answer. The best guide to follow is:
Hide your disks or partitions from Nautilus
I followed the guide just the other day and it worked well. Essentially you create a file /etc/udev/rules.d/99-hide-disks.rules
in which you put the line
KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1"
where sda1 is the name of the partition you want to hide. In some systems (12.10?) it can also be
KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
Then you reboot.
-
Thanks for your help and i have a doubt, there is no possible way to unmounted the unnecessary partition after boot instead of hiding it in somewhere. Anyway i try and get back to you once if face any issue. – Nachiappan R Aug 19 '13 at 00:39
-
With the above solution, the partition will not be shown and not be mounted. I think it is what you are looking for. – don.joey Aug 19 '13 at 07:43
-
Yes you are right, I will try once and get back to you if i found any issue. Thanks for your support – Nachiappan R Aug 19 '13 at 14:31
-
-
-
The provided link no longer works. It would be great to update the answer when you can! – Soutzikevich Jul 16 '20 at 10:55
-
This is just a possible workaround: The issue seems to be you don't want it mounted, I am assuming because it mounts in a certain spot that you don't want?
In this case you could go into fstab and have it auto mount on boot in a completely different location.
/~/donttouchdrive/

- 41
- 1
- 5
-
Thanks for your help and i have a doubt, i try and get back to you once if face any issue. – Nachiappan R Aug 19 '13 at 00:40
mount
andcat /etc/fstab
? – Bobby Aug 18 '13 at 15:17/etc/fstab
file ? Typically whatever partition is set to be automounted is in that file – Sergiy Kolodyazhnyy Aug 21 '15 at 20:11