Hide partitions in Computer view

Asked by matsch

Hi,

my ThinkPad has this Service partition where the Windows Restore stuff is located. I don't want it shown in the Computer view or anywhere under Ubuntu.
How can I hide this one partition? Where is the config file of the automount used?

Thanks,
matsch

Your answer is here: http://ubuntuforums.org/showthread.php?t=428196&page=4 (Post #34)
Sorry for modifying the question, I couldn't add a response.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
matsch
Solved:
Last query:
Last reply:
Revision history for this message
Kemel Zaidan aka Legendario (kemelzaidan) said :
#1

on the terminal type:

sudo gedit /etc/fstab

comment (place a # on the beginning of the line) that states the partition you don't want ubuntu to mount.

Revision history for this message
matsch (scopsen) said :
#2

Hi Kemel,

thanks for your answer.
Unfortunately the partition is not listed in /etc/fstab. It is found automatically by the system. Do you know how this is done?

Regards,
matsch

Revision history for this message
Kemel Zaidan aka Legendario (kemelzaidan) said :
#3

try to find it on the /etc/mtab

make a backup of it before doing any changes.

Revision history for this message
matsch (scopsen) said :
#4

unfortunately, this doesn't do the trick either.
in /etc/mtab you only have the drives which are currently mounted.

what i am trying to achieve is to hide the existence of this windows recovery partition, so no one can fiddle around with it.

this particular partition should not be shown in the Computer View of nautilus - neither mounted nor unmounted.

i suspect Ubuntu is scanning for all existing partitions and then presenting them in Computer View. I want to prevent this. I hate when things go automatically and you can't control them....

thanks,
matsch

Revision history for this message
Kemel Zaidan aka Legendario (kemelzaidan) said :
#5

type on terminal: df

it will show all the mounted drives. See what is the name of partition you want to prevent ubuntu from mounting and where it is mounted. See if you can find the entry on the two tabs i indicated you. All the drives mounted by default must be listed there.

Revision history for this message
matsch (scopsen) said :
#6

*sigh*
Thanks for your help Kemel, much appreciated!

For once, I am not really a Linux beginner. I am using Debian for several years now.
I am just trying to make this laptop user-proof for a friend. And for this I would like to hide the partition completely. My problem is, it appears in the Computer View although it is not mounted and not in /etc/fstab.
Because it is not mounted obviously it is also not in /etc/mtab. If I mount it, it appears in /etc/mtab (as well as if I type mount) as /dev/sda2 and the corresponding mountpoint (/media/SYSTEM001 iirc).

But again, the partition is not listed in /etc/fstab at any time.

So, where does this partition get recognized in the first place. Where do the information appearing in mount originate from?

Regards,
matsch

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
matsch (scopsen) said :
#8

Thanks very much!!! This finally did the trick.
The answer is here: http://ubuntuforums.org/showthread.php?t=428196&page=4 (Post #34)

Revision history for this message
matsch (scopsen) said :
#9

See above.
Regards,
matsch