hal doesn't detect that the root partition is mounted and so it always shows in the list of devices that can be mounted as a user. This bug has been around for a very long time since hal 0.5.8. Also devices that are not mounted in /mnt or /media probably shouldn't be mountable by users. The users can't mount unless there is a group flag, or user flag anyway, because my /boot partition also shows unless it has been mounted. Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r4 x86_64) ================================================================= System uname: 2.6.20-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System version 1.12.9 Timestamp of tree: Sun, 01 Apr 2007 14:00:08 +0000 dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/armagetron /usr/portage/local/layman/gnome-experimental" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi aiglx alsa amd64 apache2 asf beagle berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdr cli cracklib crypt cups curl dba dbus dri dts dv dvd dvdr dvdread eds encode esd evo exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm gif gimp glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imap imlib ipv6 isdnlog java joystick jpeg kqemu lame lcms ldap libg++ libnotify libsamplerate mad mhash midi mng mono mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl pam pcre pda pdf perl plotutils png ppds pppd python quicktime readline reflection samba scanner sdl session slang snmp spamassassin speex spell spl ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vorbis x264 xine xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
please attach or paste your /etc/fstab file
Created attachment 115203 [details] fstab
What desktop are you running in? Using Gnome, I don't see this issue at all, and I have a similar fstab equilibrium package.keywords # cat /etc/fstab /dev/hda1 /boot ext2 defaults 1 2 /dev/hda2 none swap sw 0 0 /dev/hda3 / reiserfs defaults 0 1 /dev/hdb1 /home reiserfs defaults 0 1
I am using gnome 2.18 right now. The problem isn't just there, but in hal itself. I'm currently having this problem on two computers. Here is what hal says: 8: udi = '/org/freedesktop/Hal/devices/volume_uuid_8f684969_f163_4fef_a178_717c1 7102a76' block.minor = 3 (0x3) (int) volume.label = '' (string) volume.ignore = false (bool) org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } (string list) info.capabilities = { 'volume', 'block' } (string list) volume.partition.flags = { } (string list) volume.is_partition = true (bool) volume.mount_point = '' (string) info.category = 'volume' (string) info.product = 'Volume (ext3)' (string) volume.is_disc = false (bool) volume.is_mounted = false (bool) volume.partition.type = '0x83' (string) block.is_volume = true (bool) volume.linux.is_device_mapper = false (bool) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST320 0827AS_5ND3F3LZ' (string) info.parent = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST3200827AS_5N D3F3LZ' (string) volume.block_size = 512 (0x200) (int) volume.partition.number = 3 (0x3) (int) volume.num_blocks = 386620290 (0x170b5b82) (int) volume.fsversion = '1.0' (string) block.device = '/dev/sda3' (string) volume.uuid = '8f684969-f163-4fef-a178-717c17102a76' (string) volume.partition.label = '' (string) volume.partition.scheme = 'mbr' (string) volume.partition.media_size = 200049647616 (0x2e93e36000) (uint64) volume.partition.uuid = '' (string) volume.fsusage = 'filesystem' (string) volume.is_mounted_read_only = false (bool) org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extr a_options', 'extra_options', 'extra_options' } (string list) info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } (string list) storage.model = '' (string) volume.size = 197949588480 (0x2e16b70400) (uint64) info.udi = '/org/freedesktop/Hal/devices/volume_uuid_8f684969_f163_4fef_a178_7 17c17102a76' (string) volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime ', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr', 'data=' } (string list) org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } ( string list) block.major = 8 (0x8) (int) volume.fstype = 'ext3' (string) org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'h al-storage-unmount', 'hal-storage-eject' } (string list) volume.unmount.valid_options = { 'lazy' } (string list) linux.hotplug_type = 3 (0x3) (int) volume.partition.start = 2097446400 (0x7d047e00) (uint64) linux.sysfs_path = '/sys/block/sda/sda3' (string) This volume.is_mounted = false (bool) should be volume.is_mounted = true (bool) and volume.ignore = false (bool) should be volume.ignore = true (bool). Also it isn't seeing it's mount point, but sda3 is my root partition.
I'm having the same issue here. Anything greater than HAL 0.5.7.1 (0.5.9-rc3 currently) results in bonage, take a look at how volumes on my internal SATA drive are being detected by HAL (and shown in Gnome): http://img110.imageshack.us/img110/8458/volumespl5.png "25.0 GB Volume" is an NTFS partition (/dev/sda3) "25.0 GB Volume (2)" is my ext3 / partition (/dev/sda2) "25.0 GB Volume (3): 25.0 GB Volume (2)" is another NTFS partition (/dev/sda1) Both of the NTFS volumes are declared in /etc/fstab as ntfs3g mounts, as is my / partition, obviously. Double clicking "25.0 GB Volume (2)" (the ext3 partition) does nothing but the other two are accessible at the proper fstab mounts points. Shouldn't these 2 ntfs volumes also be hidden?
The good news is, hal 0.5.9 final release is out. The bad news is, now I can replicate. We were previously patching for this, so I need to glance through those again. Unfortunately, I am at work for the next 8 hours. If I get some spare time though, I'll start looking.
Another issue has to do with partitions that are in fstab that are mounting in different locations such as /boot that shouldn't be showing in the devices that are mountable by a user. Other than this bug; this is a good release that appears to just work.
My last comment can be ignored because since my sata supports hotplug it is considered a hotplug device and so the /boot and other partitions will still show. SATA2 with hotplug.
Someone might want to check this again by re-emerging hal-0.5.9. A patch was added on April 24th (files/0.5.9/16_dev_root_is_mounted.patch), which might have solved this bug. It was related to HAL not seeing / as being mounted because it read /proc/mounts which referenced /dev/root as being the block device for /, instead of whatever the real device was. The patch should have solved this problem as well (since I think this is actually the same problem as the other bug was).
I did re-emerge hal a few days back after the patch was added. What has to be done now is the symlink /dev/root has to point to /dev/'real root device' and it will show up as being mounted. I'm not sure if this bug should be closed on that, but the script doesn't create the symlink, nor does udev create the symlink automatically.
Brian, the that is not the change in that patch. There have been other changes. The issue is that it's a mixed kernel bug and HAL is relying on the kernel to behave properly. Since we can't rely on that, we need a workaround. It's been worked around. Issue is resolved.