Hi, When I boot up and no card is inserted in the card reader, the reader exists as /dev/sda, /dev/sda1 does not exist (if the card is inserted at boot if works) When I insert a card, /dev/sda1 is not created, so I cannot mount it. To get it to work (create /dev/sda1) I have to manually do an: /etc/init.d/hotplug restart (or reload one of the modules (usb-storage or sd_mod). I expect the system to automatically detect the card when I insert it, without restarting hotplug. I'm using the HP PSC 2410 printer/scanner/copier/fax/card-reader multifunction device.
You need to be more specific, as this might be an kernel issue - what kernel, and other related info please ...
Thanks for your help. $ emerge hotplug -p These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-apps/hotplug-20030805-r2 $ emerge info Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test10-gentoo-r1) ================================================================= System uname: 2.6.0-test10-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -ffast-math -mfpmath=sse,387 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -falign-functions=32" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -ffast-math -mfpmath=sse,387 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -falign-functions=32" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms zlib gtkhtml gdbm berkdb slang readline arts tetex nas bonobo ggi tcltk java guile sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif mozilla gphoto2 ldap cdr X gtk2 gnome gnome2 menu gstreamer mmx sse sse2 oss alsa dvd dvdr opengl icc dga cups scanner usb acpi aalib directfb fbcon gpm svga xv breakme -3dnow"
Try using udev (emerge udev && reboot). Note to add 'devfs=nomount' to kernel parameters.
This might be a timing issue. I used to have the same problem. Specifically, when inserting a USB Drive into the USB bus (using the usb-storage driver), the module sd_mod would not be inserted. Instead, I got a "how to add device type= at /sys/... ??" message in the logs. It was generated by the /etc/hotplug/scsi.agent script. I noticed also that, on a reboot (the USB drive already plugged in) the problem would not arise. It seems just shortly after the usb-storage driver is inserted, the "type" file in sysfs is not available yet. WORKAROUND: Insert a "sleep 1" into /etc/hotplug/scsi.agent (right before the "TYPE=$(cat /sys...)" line. => Works for me
For completeness: I'm using udev-017, hotplug-20040105, sysfsutils-0.4.0 and gentoo-dev-sources-2.6.3 with no devfs support. emerge info: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo) ================================================================= System uname: 2.6.3-gentoo i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage" USE="3dnow X acpi alsa arts avi berkdb cdr crypt cups dga dv dvd encode faad fam foomaticdb gdbm gif gtk gtk2 imlib java jpeg kde lcms libg++ libwww linguas_de mad matrox mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl pic png python qt quicktime readline samba scanner sdl slang spell ssl tcltk tcpd tetex tiff truetype usb video_cards_matrox x86 xinerama xml xml2 xmms xv zlib"
This is not a hotplug issue at all. If you are using udev you can add a rule using the NAME{all_partitions} style for this device in order to create all partition files for this device. See the udev man page for info on how to do this.