The problem is, although I have the "noauto" option added in my fstab entries, all partitions in my HD get mounted by hald at boot. I cannot see a way of telling hald not to mount those partitions automatically.
"noauto" does that if no media is present in the drive, hald won't try to mount it. It works with empty CD-ROM drives on boot, but as the partitions are "always inserted", hald just mounts them thinking it's a CD inserted in his drive.
Is there a way of making hald treat those units as partitions as opposite to removable media?
Mutsumi root # emerge info
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-188.8.131.5240808-r1, 2.6.8-gentoo-r8)
System uname: 2.6.8-gentoo-r8 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/bmg-main /usr/local/overlays/bmg-gnome-current"
well it's actually a g-v-m bug more likely, it takes care of actually mounting the devices.
Don't think this is supported at this point.
looking at this again, for me it only mounts if it is user mountable and it's definatly gvm which does the mounting.
Here is an extract of my fstab file:
/dev/hda9 /mnt/desvan vfat rw,noauto,users,gid=users,umask=002,utf8=true 0 0
/dev/hdb1 /mnt/backup vfat rw,noauto,users,gid=users,umask=002,utf8=true 0 0
I've tested some things.
- If i remove the "users" option from fstab, the partions aren't mounted automatically, as we want, but neither appear in the nautilus "Computer" directory as unmounted. Also they can only be mounted as root, and then belong to root, not the regular user.
- What I want is partitions behave as my removable usb pendrive and digital camera do: appear as unmounted and only be mounted on user demand.
I understand my camera mounts because udev creates the device, but as partitions are "always plugged" they can't behave the same (they are detected "plugged" just after opening the gnome session).
So I think my bug request could be summarized as this:
Ask upstream an option to start a device not mounted, but with the icon in the "Computer" appearing, so the user can mount it when he want, not forcing the device to be mounted on startup. I think people having network partitions would like this feature, too.
Found a partial fix: enabling "automount removable devices" but disabling "automount removable media" mounts my usb pen but not the partitions, as it should be. The problem is inserting a CD doesn't make it to mount, either.
A per-mountpoint option would be the final solution. I'm missing something?
It's a problem of Hal. Look here:
Well, not so much a problem, as just the default behavior applied by the default
policy file (/usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi). The other
directories under /usr/share/hal/fdi are there (I assume) for additional policy
files; I put mine under 95userpolicy:
~ $ ls /usr/share/hal/fdi/95userpolicy/
fat_no_sync.fdi local-ide-drives.fdi sharp-pc-mm10-cradle.fdi
Since HAL processes the directories in order, user-specified stuff goes last. It
also seems very Gentoo-ish (to me anyway) in that you are free to modify it on
your own. See the attached examples and hack away; search the forums as well.
Created attachment 65244 [details]
HAL policy file to stop automount of USB hard disk
Use volume names and add device to fstab:
LABEL=mm10_hd2 /mnt/mm10 ext3 noauto,noatime,user 0 0
Created attachment 65245 [details]
HAL policy file to stop automount of extra partitions
Keep your Gentoo partitions in fstab like usual, and this policy file will stop
the automounting of any extra (non-Gentoo or whatever) partitions.
This is the default, and can be user over-ridden.