By default 'mounted volumes' are shown on the Ubuntu desktop. I usually disable this (gconf-editor or Ubuntu Tweak) because I don't want, for instance, my Windows partition on the Desktop.
However this would be a useful to display USB flash data sticks or memory cards, which are not permanently mounted volumes.
So is there some way to be selective about which volumes are shown on the Desktop?
(Image: three mounted volumes I don't want, and one USB flash data stick I do)
Where are "40GB Filesystem", "80gb" and "backup" mounted?
My guess is under /media.
This is something that used to really annoy me, that Windows shares from the file server would appear as removable storage in my Places menu.
So I changed the mount point from /media/S to /mnt/S and now it is handled correctly as non removeable storage. Now the remote windows share :
You can easily test this yourself by
I have just tested these steps and you wont have to log out to see the changes.
When you unmount the drives the icons will disappear and when you remount them under /mnt they wont reappear.
The transparent nautilus folder that is shown on the desktop shows all user mounts, so if you mount those partitions at boot they won't be shown on the desktop.
You can mount them by adding a line for them to /etc/fstab, but the best mount options depend on what they are used for (and whether or not multiple people need to access them).
By adding the volumes to
/etc/fstab
you can make sure that they don't show up on the desktop, here are a couple of lines from my fstabPart 1 of the line is what to mount, part 2 is where to mount it, part 3 is file-system type, part 4 is mount options (add
noauto
if you don't want it to be mounted automatically) make sure that theuser
andowner
options are not set!, part 5 is whather to dump the file-system if errors occur, and part 6 is the order in witch fsck will check the file systems.Part 5 is always 0 (unless you know what you are doing) and part 6 is 0 for non-native volumes (ie. ntfs, vfat etc.), 1 for root file-system and 2 for everything else (mainly ext2, ext3, ext4).
To find the UUID of a disk you can open a terminal.
So the UUID of sda1 is 7244DE9322DE5A05, sdb1 is f6245825-06dc-4c97-87d3-dbe3c943247d and so on..
Now to find out what volumes are the ones that you want to add you can just mount them (by double clicking on the desktop icon) and the type mount in a terminal, this will list what is currently mounted where.
sudo apt-get install pysdm
It's a GUI tool to edit fstab to tell the OS which drives you want mounted on bootup.
For a comprehensive guide on how to use it see this link.
To make a partition stop from auto-mounting on boot. Simply, click on the partition and hit the 'Remove' button. That way you won't have to disable auto-mounting for all drives in gconf.
To make the partition stop from showing up on your desktop, unmount it, change it's mount point to be /mnt instead of /media and re-mount or restart the OS.