Regards, David.
Please use the Forum search and Wiki search for immediate help
Please mark your thread as Solved when appropriate
New to technical forums?: How To Ask Questions The Smart Way
mbudden you add the lines by typing in terminal:
And dcstar, this is a question about how to hide certain partitions altogether in gnome/Ubuntu... not just to stop it from auto-mounting.Code:sudo gedit /etc/fstab
I'd appreciate it if you didn't quote me with your modifications, If I had wanted the noauto option I would have placed it there myself.Quote:
Originally Posted byman fsck:
noauto Can only be mounted explicitly (i.e., the -a option will not cause the file system to be mounted).
Akavashi,
Not to be nit pickey but I'd recommend gksu gedit /etc/fstab
sudo for command line
gksu for GUI applications
It's not that it won't work, it's just that I have experienced bad things when using sudo with GUI apps.
lol ah k, sorry about that, I've never been in the habit of using gksu... Cheers for the tip, I'll remember that
Turns out you learn heaps of new things every day when using Ubuntu![]()
So in the final days of this thread, I reinstalled Ubuntu again with all of the windows partitions hidden using Morbius1's neat little post:
(Edited, 'cause mkdir doesn't handle linked directories, only makes single directories at a time)
Just remember that you change sda2 and sda3 according to how your partitions are set up, and for the Floppy... I just used the grotty devicekit way... *vomits*
Go to /etc/udev/rules.d/ and make a blank file named "hidden-floppy.rules"
and enter in this code into the file, and save:
Code:ACTION!="add|change", GOTO="hide_partitions_end" SUBSYSTEM!="block", GOTO="hide_partitions_end" KERNEL=="loop*|ram*", GOTO="hide_partitions_end" ################################################## ############################ # Floppy Drive which should not display KERNEL=="fd0", ENV{ID_DRIVE_FLOPPY}="1", ENV{DKD_PRESENTATION_HIDE}="1" ################################################## ############################ LABEL="hide_partitions_end"
Thanks to Ezanium and Morbius1 for all of their help with this problem
Quite right. Appreciate the correction. I always create the /Windows directory during an initial install and then add mount points at a later date after I decide how I want to mount them. I got sloppy again(Edited, 'cause mkdir doesn't handle linked directories, only makes single directories at a time)![]()
Haha, no worries mate! Pretty sure I gave out dodgey advice with the mix up between sudo and gksu anyway, so I appreciate your help too.![]()
Using this
sudo gedit /etc/udev/rules.d/hide-partitions.rules
was working fine in Karmic, but in Lucid it is not
Edit:
in Lucid DKD_PRESENTATION_HIDE was changed to
UDISKS_PRESENTATION_HIDE
http://fedoraforum.org/forum/showthread.php?t=250263
It is all working now when using UDISKS_PRESENTATION_HIDE
Last edited by pt123; August 28th, 2010 at 01:50 AM. Reason: found the solution
The 'udev rule' method works well with all the *buntus. Here is an example:
ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"
################################################## ############################
# Let's hide sda1 and sda3
KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda3", ENV{UDISKS_PRESENTATION_HIDE}="1"
################################################## ############################
LABEL="hide_partitions_end"
Bookmarks