The Windows partitions I wanted to hide were sda1 ans sda2, which initially didn't show in fstab. After I declared entries for the partitions in a specific manner the partitions were gone from the places menu!
Code:
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=ac83da58-6e80-4602-bffa-9d6b4b30e34f / ext4 errors=remount-ro 0 1
# Entry for /dev/sda6 :
UUID=013e3395-57a2-4c4d-92ea-663f02043a14 none swap sw 0
/dev/sda7 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
in which sda7 is a mounted NTFS partition that I want to use with ubuntu, created it with 'ntfs-config'. I added two entries for ignoring the two partitions sda1 and sda2, with filesystem defined as 'ignore', so the /etc/fstab looked like this:
Code:
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=ac83da58-6e80-4602-bffa-9d6b4b30e34f / ext4 errors=remount-ro 0 1
# Entry for /dev/sda6 :
UUID=013e3395-57a2-4c4d-92ea-663f02043a14 none swap sw 0 0
/dev/sda1 /mnt/SDA1 ignore defaults,locale=en_US.UTF-8 0 0
/dev/sda2 /mnt/SDA2 ignore defaults,locale=en_US.UTF-8 0 0
/dev/sda7 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
I'm not sure if the specified mount point or other options really matter and the directories /mnt/SDA1 and /mnt/SDA2 don't even exist.. but it seems to work this way. I think I did
to update the places menu.
Please note that this is kind of an 'empirical' solution, not based on real knowledge. I found the ignore option in the fstab manual (type 'man fstab' in terminal).
Bookmarks