Nokia N900 conected to a PC via USB cable in mass storage mode exports two partitions - one from internal flash, the other from microsd card. WindowsXP sees them both as H: and I: removable discs. However, in gentoo I see only /dev/sdb, no /dev/sdc at all. Reproducible: Always Steps to Reproduce: 1. buy N900 2. connect it to a gentoo system via USB cable and select "mass storage mode" on the phone 3.ls -l /dev/sd[bc]* Actual Results: brw-rw---- 1 root disk 8, 16 Jan 25 21:37 /dev/sdb Expected Results: brw-rw---- 1 root disk 8, 16 Jan 25 21:37 /dev/sdb ..... /dev/sdc ....../dev/sdc1 dmesg log: hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001002 POWER sig=se0 CSC hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s usb 1-1: USB disconnect, address 5 usb 1-1: unregistering device usb 1-1: usb_disable_device nuking all URBs usb 1-1: unregistering interface 1-1:1.0 usb 1-1:1.0: uevent usb 1-1: uevent hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001002 POWER sig=se0 CSC hub 1-0:1.0: debounce: port 1: total 150ms stable 100ms status 0x100 hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501 ehci_hcd 0000:00:1d.7: port 1 high speed ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNECT usb 1-1: new high speed USB device using ehci_hcd and address 6 ehci_hcd 0000:00:1d.7: port 1 high speed ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNECT usb 1-1: default language 0x0409 usb 1-1: udev 6, busnum 1, minor = 5 usb 1-1: New USB device found, idVendor=0421, idProduct=01c7 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: Product: N900 (Storage Mode) usb 1-1: Manufacturer: Nokia usb 1-1: SerialNumber: 372041756775 usb 1-1: uevent usb 1-1: usb_probe_device usb 1-1: configuration #1 chosen from 2 choices usb 1-1: adding 1-1:1.0 (config #1, interface 0) usb 1-1:1.0: uevent usb-storage 1-1:1.0: usb_probe_interface usb-storage 1-1:1.0: usb_probe_interface - got id usb 1-1: uevent scsi3 : SCSI emulation for USB Mass Storage devices drivers/usb/core/inode.c: creating file '006' usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning scsi 3:0:0:0: Direct-Access Nokia N900 031 PQ: 0 ANSI: 2 sd 3:0:0:0: Attached scsi generic sg2 type 0 usb-storage: device scan complete usb 1-1:1.0: uevent usb 1-1: uevent sd 3:0:0:0: [sdb] Attached SCSI removable disk usb 1-1:1.0: uevent uname -a Linux jp 2.6.32-gentoo-r2 #1 SMP PREEMPT Mon Jan 25 14:15:27 CET 2010 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux /bash: 4.0_p35 dev-java/java-config: 1.3.7-r1, 2.1.10 dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.1.0_beta1 dev-util/cmake: 2.8.0-r1 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 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.2 sys-devel/binutils: 2.16.1-r3, 2.17-r1, 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4m -msse2 -pipe -fno-omit-frame-pointer" CHOST="i686-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 /var/li b/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox .d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4m -msse2 -pipe -fno-omit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfet ch" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo ftp://mirror.switch.ch/mirror/gentoo/ htt p://gentoo.supp.name/ " LANG="C" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclud e=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/scratch/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac aalib ac3 acl acpi alsa amr berkdb blas bluetooth bonobo branding bzip2 cairo cddb cdparanoia cdr cli consolekit crackl ib crypt cxx dbus dri dts dv dvb dvd dvdnav dvdr dvdread eds emboss encode evo exif extra fam ffmpeg firefox flac fortran ftp gcj gd gdbm gi f gnome gphoto2 gpm gps graphics gsm gstreamer gtk hal http hwac3 icc iconv ieee1394 imagemagick imap ipv6 jabber java javascript jpeg jpeg2 k kde kpathsea lapack ldap lesstif libnotify libwww lirc lm_sensors lprng mad mbox mikmod mime mmap mmx mng modules mozilla mp3 mp4 mpeg mpi mudflap music mysql nas ncurses nls nptl nptlonly nsplugin obex ogg opengl openmp paste64 pcmcia pcre pdf perl plotutils png posix ppds ppp d pstricks publishers python qt3support qt4 quicktime readline reflection samba scanner science sdl session sharedmem smartcard sndfile sock ets socks5 sox spell spl sse sse2 ssl startup-notification svg svga sysfs tcl tcltk tcpd tetex threads thunar tiff tk truetype unicode usb u srp v4l v4l2 vcd vorbis wifi win32codecs wxwindows x264 x86 xine xml xmms xorg xpm xv xvid zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp ati ixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio v ia82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_ lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotia tion rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="lin ux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ra deon radeon-hd vesa sc fbdev v4l vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSY NC_EXTRA_OPTS
Looks like some kernel options are missed. Also you get better chances to resolve this problem on support forums on in gentoo-user mailing list. Have you tried to ask there?
Post your .config, please. Do you have SCSI_MULTI_LUN enabled in your kernel? If not, can you enable and rebuild your kernel and test, please. Symbol: SCSI_MULTI_LUN Location: Device Drivers -> SCSI device support
Thanks, SCSI_MULTI_LUN was it. Sorry, I was not aware of this option, N900 was the first multi-LUN device I met. Perhaps this option should be Y by default, or would that cause some problems? I am sure I was not the only ignorant user...
No need to apologize, that's why we're here. We actually don't set anything in .config, we go with upstreams defaults as we try to keep things as close to them as possible.