Disable auto-mount for particular partitions on usb drives
Posted
by
nealmcb
on Ask Ubuntu
See other posts from Ask Ubuntu
or by nealmcb
Published on 2011-02-07T05:22:04Z
Indexed on
2011/02/07
7:34 UTC
Read the original article
Hit count: 311
I have a big USB disk with 3 partitions: one for backup and two other bootable ones for installing and testing new distros. I want the backup partition automounted on boot. But I don't want the two test partitions automounted. Despite my use of "noauto" in /etc/fstab, something (gnome?) seems to be mounting them when I plug the drive it.
LABEL=mybook /srv/backup ext4 defaults 0 2
LABEL=mybook-root /media/mybook-root ext4 user,noauto 0 2
LABEL=mybook-spare /media/mybook-spare ext4 user,noauto 0 2
In previous Ubuntu distributions it seems that it was possible to configure gnome so it would avoid mounting particular partitions on removable drives like USB:
gnome-mount --write-settings --mount-options noauto --device /dev/sda1
This is no longer available in Lucid (when did it go away?)
Is there another way to do this now?
© Ask Ubuntu or respective owner