Posted in Linux, Tutorials/Tips

Bodhi Linux: Hiding partition “System reserved”

I guess if you are looking at this post you are still using windows, well everybody has their weaknesses 🙂

When installing Windows 7 (Vista also I think) it created a small partition, which is not visible on Windows my computer, but on Linux it is displayed, and it is useless. It is good idea to hide, so it would not get in a way.

This partition is displayed in multiple places, in File Manager (PCmanFM for me), in menu section places, on gadget places. They do not use same configuration so here will by 2 separated steps to hide this partition from showing off. But do not worry it still will by accessible in /media/

1. Hiding it from PCmanFM, it should work also on other Gnome based FileManagers, but I can’t guarantee. First you need to know how your partition is called, it is showed as “System Reserved” but it should have partition number indicator, like /sda1. In order to check it go to /media and look for it, guide will show how to hide if it would by called sda1 (if it is called at you differently, use that name).

Locate directory /etc/udev/rules.d in there create new file and call it 95-hide-ntfs.rules    (in order to do that, you must by root)
Open file and paste code which is bellow ( do not forget to alter sda1 to your needed partition):

# 95-hide-ntfs.rules
# /dev/sda1 System_Reserved as hidden partition
# in /etc/udev/rules.d
##################################################

ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"

##################################################

# Partition sda1 hide from gnome
KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1"

##################################################

LABEL="hide_partitions_end"

Now you have two choices:

a) restart your system and check if partition is no more in file manager

b) go to step 2 and continue guide, in which it will by hidden partition also from places section in menu and in gadget and then restart.

2. This part covers guide how to hide partition from places in menu section and in places gadget.

Go to folder and open this file with text editor, leafpad for example:

/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

If for some reason you can’t find it type in terminal gksudo leafpad /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

Now concentrate and do not hurry, you need to find exactly needed line, and they all are similar:

<match key="volume.fstype" string_outof="ntfs;vfat">
<match key="volume.label" string="RECOVERY">
<merge key="volume.ignore" type="bool">true</merge>
</match>

And then replace whole it with (more likely to add) with this:

  <match key="volume.fstype" string_outof="ntfs;vfat">
<!-- Win7 ships some desktop with a System_Reserved partition -->
<match key="volume.label" string="System Reserved">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<!-- Win ships some desktop with a recovery partition -->
<match key="volume.label" string="RECOVERY">
<merge key="volume.ignore" type="bool">true</merge>
</match>[

Just do not include numbers which are displayed on left side, they are only for making text in line which they are needed. Line with   <match key=”volume.label” string=”System Reserved”> must match with name of partition.
It is not sda1, it is what it is displayed when opened.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s