2

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.

Nachiappan R
  • 55
  • 3
  • 9
  • Can we get the output of the commands mount and cat /etc/fstab? – Bobby Aug 18 '13 at 15:17
  • Somehow I feel this is a duplicate, but I can't find the other question. Something with 'device, nautilus, hide'? – don.joey Aug 18 '13 at 15:17
  • Just a mention: disks are not mounted automatically. You can see them in nautilus or launcher (not Explorer), but they are (automaticaly) mounted only when you try to open them first time. This being said, this is probably the answer that you need. – Radu Rădeanu Aug 18 '13 at 15:27
  • @Bobby, Do you need my output for mount and cat /etc/fstab? – Nachiappan R Aug 19 '13 at 00:29
  • @private, Sorry this not a duplicate question but some how having similarity. – Nachiappan R Aug 19 '13 at 00:29
  • @RaduRădeanu, Yes you right, I am little new to Ubuntu, so i am not forgetting the windows technical terms while typing. Sorry I will change to call it as nautilus. Now I am asking the query, When the drive is clicked means, its opening but i don`t want to display the available drives in nautilus. – Nachiappan R Aug 19 '13 at 00:33
  • Just out of curriosity, do you have an entry for that partition in /etc/fstab file ? Typically whatever partition is set to be automounted is in that file – Sergiy Kolodyazhnyy Aug 21 '15 at 20:11

2 Answers2

2

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.

don.joey
  • 28,662
0

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/

Fstab info

Jackson
  • 41
  • 1
  • 5