Summary: | Hard drive partitions are always automounted by g-v-m | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcos González <mgtroyas> |
Component: | [OLD] GNOME | Assignee: | Project Gentopia <gentopia> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | gnome |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://forums.gentoo.org/viewtopic.php?p=1655990#1655990 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
HAL policy file to stop automount of USB hard disk
HAL policy file to stop automount of extra partitions |
Description
Marcos González
2004-10-16 03:14:27 UTC
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: https://bugs.gentoo.org/show_bug.cgi?id=85564 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. |