Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176735 - sys-apps/hal-0.5.7.1-r5 removable media detection breaks with 2.6.20 kernels
Summary: sys-apps/hal-0.5.7.1-r5 removable media detection breaks with 2.6.20 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Project Gentopia
URL: http://lists.freedesktop.org/archives...
Whiteboard:
Keywords:
: 176833 180416 (view as bug list)
Depends on:
Blocks: kernel-2.6.20
  Show dependency tree
 
Reported: 2007-05-01 22:24 UTC by Kevin Funk
Modified: 2007-06-22 19:07 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2007-05-01 22:24:01 UTC
Current stable hal, version 0.5.7-r5 dislikes current stable kernel 2.6.20. With hal-0.5.7* it's impossible to mount usb drives as removable media because they're identified as fixed disks when mounting them. Refer to the URL above which also states this problem.
It took me ages to find out that this problem is caused by HAL.
My solution: Upgrade to 0.5.9-r1
So this is also a version bump request; hal-0.5.9-r1 works fine for me.

Reproducible: Always
Comment 1 Kevin Funk 2007-05-01 22:29:46 UTC
> 24 Apr 2007; Doug Goldstein <cardoe@gentoo.org>
> files/0.5.9/97_ignore_fixed_drives.patch:
> Ignore /boot if possible.

The fix is already in testing... Why don't you mark it as stable if you know older versions break with 2.6.20?
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2007-05-02 03:17:01 UTC
Because, quite simply, it isn't stable, and it just came out of package.mask.  It needs a lot of testing, and doesn't work on many architectures that previous versions of hal did.
Comment 3 Kevin Funk 2007-05-02 05:05:48 UTC
I understand; at least I can say it works fine on x86 here.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-03 15:32:44 UTC
*** Bug 176833 has been marked as a duplicate of this bug. ***
Comment 5 François Bissey 2007-05-17 00:35:16 UTC
Hi,

I have the same sort of problem on ppc but my x86 machine is fine.
Enabling USE="dmi" for hal-0.5.7-r3, which pulls dmidecode, solve the 
problem on x86 (and probably amd64) I think.
However on ppc dmidecode is hard masked and the use flag is not available.
This is quite annoying
Comment 6 Steev Klimaszewski (RETIRED) gentoo-dev 2007-05-17 13:36:37 UTC
Francois, can you please try out hal 0.5.9-r1 on your ppc?  I've been running it on my Efika with no known issues (though I tend to run its X sessions through Xephyr on another machine) We do want to unmask hal-0.5.9-r1 however, it doesn't work on some other arches (off the top of my head, ppc64 and sparc)
Comment 7 François Bissey 2007-05-17 21:49:39 UTC
(In reply to comment #6)
> Francois, can you please try out hal 0.5.9-r1 on your ppc?  I've been running
> it on my Efika with no known issues (though I tend to run its X sessions
> through Xephyr on another machine) We do want to unmask hal-0.5.9-r1 however,
> it doesn't work on some other arches (off the top of my head, ppc64 and sparc)
> 
Done! All working surprisingly well.
List of things to do have things working for me:
*Added an entry in /etc/portage/package.use reading:
 sys-apps/pciutils -zlib 
hal requested this package to be compiled without zlib, if this is the way of 
the future the zlib flag should be disabled in pciutils.
*Added two entries in  /etc/portage/package.keywords
 app-misc/hal-info
 =sys-apps/hal-0.5.9-r1
hal-info was requested by kdebase-startkde once I keyworded the lastest hal.

Compile no trouble. run etc-update, stopped hald, started hald and it worked
correctly (my usb key is recognized as removable media) without even having 
to restart kde or rebuilding the ioslaves - I am impressed there.

emerge --info:
 Portage 2.1.2.2 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.5-r2, 2.6.20-gentoo-r5 ppc)
=================================================================
System uname: 2.6.20-gentoo-r5 ppc 7450, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 17 May 2007 20:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://ftp.vic.keypoint.com.au http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed"
LINGUAS="fr en_GB"
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/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec amr ao asf audiofile berkdb bitmap-fonts bzip2 cairo cdda cddb cdf cdparanoia cdr cli cracklib crypt cups curl dbus divx dri dts dv dvd dvdr dvdread encode expat f77 ffmpeg fftw flac foomaticdb fortran gdbm gif gmedia gmp gpm graphviz gs gstreamer gtk gtk2 hal iconv idn ieee1394 imagemagick imlib imlib2 ipv6 isdnlog java jbig jpeg jpeg2k kde kdehiddenvisibility kdexdeltas lame lcms libg++ lzo mad midi mikmod mjpeg mmap mng mp3 mp4 mpeg musepack musicbrainz ncurses netcdf network nls nptl nptlonly ogg openal openexr opengl pcre pdf perl png ppc ppds pppd python qt3 qt4 quicktime rdesktop readline reflection samba sdl sdl-image session slang slp sndfile spl ssl svg szip tcl tcltk tcpd tetex theora tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vidix vorbis wavpack wmf wmp x264 xcb xine xml xml2 xorg xv xvid zeroconf zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 hirakendu 2007-05-26 10:24:29 UTC
In my case (~x86, kernel 2.6.21) usb flash drives aren't automounted with hal 0.5.9-r1. It does work fine in 0.5.7. Now back to 0.5.9-r1, disabling the files/0.5.9/97_ignore_fixed_drives.patch helps me mount usb flash drives automagically again :).
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2007-05-26 19:39:22 UTC
Like all HAL related bug reports. please provide lshal output when the device is plugged in and give us some detailed description of the device so we can find it in the output.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-05-31 12:43:44 UTC
*** Bug 180416 has been marked as a duplicate of this bug. ***
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2007-06-22 19:07:17 UTC
With SYSFS_DEPRECATED disabled, you must be on hal-0.5.9-r1 or higher. If you wish to remain on an older version of HAL, you must enable SYSFS_DEPRECATED.