How to NOT automount in Gnome

I have many partitions and all of them appear automounted on Desktop. I don't need all of them mounted all the time.
From my point of view it's much more convenient to have them unmounted but shown in Computer/Removable media as available for mounting.
Is any trick to achieve such a goal?
 
Add them to /etc/fstab and set them to noauto?
Code:
/dev/ad0s1    /media/C    ntfs    ro,noauto    0    0

I think it can also be done with HAL, but I have no idea how.
 
Thank you. I am on 8.0-beta2. On my desktop I have:
21 GB Media (Elive linux)
1.9GB Media (7-stable, /var partition)
22GB Media (SUSE)
536.9MB Media (7-stable / partition)
33GB Media (7-stable, /usr partition)
536,9MB Media (7-stable /tmp)
47.2GB Media (Ubuntu)
Debian-5.0.0


Code:
# df -h
Filesystem                     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a                    [color="Red"]496M[/color]    133M    323M    29%    /
devfs                          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e                    [color="Red"]496M[/color]     74K    456M     0%    /tmp
/dev/ad0s1f                     24G    5.7G     16G    26%    /usr
/dev/ad0s1d                    2.9G    135M    2.5G     5%    /var
procfs                         4.0K    4.0K      0B   100%    /proc
/dev/ad0s8                      20G    4.1G     15G    21%    /media/disk
/dev/ufsid/4a7e12e55a63160a    [color="Red"]496M[/color]    281M    175M    62%    /media/disk-1
/dev/ad0s6                      44G     31G     11G    74%    /media/disk-2
/dev/ufsid/4a7e12e5512ff00d     30G    6.7G     21G    25%    /media/disk-3
/dev/ufsid/4a7e12e7613e570e    [color="Red"]1.7G[/color]    217M    1.3G    14%    /media/disk-4
/dev/ext2fs/Debian-5.0.0        20G    2.4G     17G    13%    /media/Debian-5.0.0
/dev/ad0s9                      19G    2.0G     16G    11%    /media/disk-5
/dev/ufsid/4a7e12e5dba037d5    [color="Red"]496M[/color]    112K    456M     0%    /media/disk-6
#

Would it be correct in fstab for example:
1. For 7-stable:
Code:
dev/ufsid/4a7e12e5dba037d5  /media/disk-6 ufs rw,noauto  0  0
2. For Linux:
Code:
dev/ad0s9  /media/disk-5  ext3fs   rw,noauto 0  0
?
 
No. That made mess. Possibly it works without hal.
So my problem is not solved yet. Am I the only one?
 
Have a look here:
http://www.freebsd.org/gnome/docs/halfaq.html#q2

If you use something like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
        <device>
                <match key="block.device" string="/dev/ad4s2">
                        <merge key="info.ignore" type="bool">true</merge>
                </match>
        </device>
        <device>
                <match key="block.device" string="/dev/ad4s3">
                        <merge key="info.ignore" type="bool">true</merge>
                </match>
        </device>
        <device>
                <match key="block.device" string="/dev/ad4s4">
                        <merge key="info.ignore" type="bool">true</merge>
                </match>
        </device>
</deviceinfo>

It will ignore ad4s2, ad4s3 and ad4s4.
 
Sorry I was out of town.

Thanks, indeed icons disappeared from desktop but they disappeared from Computer too. Also "Removable media" disappeared from menu.
The goal was to just not automount those partitions but have them presented in Computer and/or Removable media as ready for mounting.
Any other ideas?
 
Back
Top