Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113724 - USB Mass Storage devices don't get mounted automatically - system tries to mount device instead of partition
Summary: USB Mass Storage devices don't get mounted automatically - system tries to mo...
Status: RESOLVED DUPLICATE of bug 113825
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 91928 92025
Blocks:
  Show dependency tree
 
Reported: 2005-11-27 10:35 UTC by Alexander Skwar
Modified: 2005-11-29 05:40 UTC (History)
6 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 Alexander Skwar 2005-11-27 10:35:47 UTC
Since quite some time now, my system is no longer able to automatically mount
USB Mass Storage devices (eg. Camera, Memory Sticks) upon plug in. "Back then"
(I suppose July?), this worked like a charm: Plug the device into USB slot, wait
a few seconds, get icon on KDE/Gnome desktop.

gnome-base/gnome-volume-manager-1.5.4
sys-apps/dbus-0.50-r1
sys-apps/hal-0.5.5.1
sys-apps/pmount-0.9.6

When I plugin the device, I get the following in my syslog:

Nov 27 19:22:11 blatt usb 2-1: new full speed USB device using uhci_hcd and
address 3
Nov 27 19:22:12 blatt SCSI subsystem initialized
Nov 27 19:22:12 blatt Initializing USB Mass Storage driver...
Nov 27 19:22:12 blatt scsi0 : SCSI emulation for USB Mass Storage devices
Nov 27 19:22:12 blatt usbcore: registered new driver usb-storage
Nov 27 19:22:12 blatt USB Mass Storage support registered.
Nov 27 19:22:12 blatt usb-storage: device found at 3
Nov 27 19:22:12 blatt usb-storage: waiting for device to settle before scanning
Nov 27 19:22:17 blatt Vendor: NIKON     Model: NIKON DSC E4300   Rev: 1.00
Nov 27 19:22:17 blatt Type:   Direct-Access                      ANSI SCSI
revision: 02
Nov 27 19:22:17 blatt usb-storage: device scan complete
Nov 27 19:22:17 blatt scsi.agent[31990]: disk at
/devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0
Nov 27 19:22:17 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Nov 27 19:22:17 blatt sda: Write Protect is off
Nov 27 19:22:17 blatt sda: Mode Sense: 18 00 00 08
Nov 27 19:22:17 blatt sda: assuming drive cache: write through
Nov 27 19:22:17 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Nov 27 19:22:17 blatt sda: Write Protect is off
Nov 27 19:22:17 blatt sda: Mode Sense: 18 00 00 08
Nov 27 19:22:17 blatt sda: assuming drive cache: write through
Nov 27 19:22:17 blatt sda: sda1
Nov 27 19:22:17 blatt Attached scsi removable disk sda at scsi0, channel 0, id
0, lun 0


In Nautilus computer:/// I then get an entry "NIKON NIKON DSC E4300". When I
double click it, I get the following error:

mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I don't get access to the contents of my USB device. That's so, because the
system tried to mount /dev/sda. The filesystem is on /dev/sda1, however. I
cannot create a filesystem on /dev/sda, as my camera needs a partition. 

Why does the system try to mount /dev/sda instead of /dev/sda1? How do I
configure the system so, that it behaves correctly?

I think this bug is related to bug #92025, in so far, as everything used to work
fine "back then", when hal was compiled with fstab-sync.

Would it be possible to either have hal be compiled with fstab-sync or at least
ship the related packages with working default configuration?

alexander@blatt /var/db/pkg $ emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-suspend2-r5.037 i686)
=================================================================
System uname: 2.6.14-suspend2-r5.037 i686 Intel(R) Celeron(R) M processor      
  1.50GHz
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distcc distlocks sandbox
sfperms strict"
GENTOO_MIRRORS="        http://server.bei.digitalprojects.com/gentoo/  
http://stuff.alexander.skwar.name/gentoo/  
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo        
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/        
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/  
http://distro.ibiblio.org/pub/linux/distributions/gentoo/  
http://distfiles.gentoo.org/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acl acpi alsa amd apm arts artswrappersuid async
audiofile avi bash-completion bdf berkdb bitmap-fonts bluetooth bootsplash
browserplugin bzip2 cardbus ccache cdb cdda cddb cdio cdparanoia cdr cdrom
cle266 crypt css cups curl curlwrappers dbus devmap dillo divx4linux dlloader
dvd dvdread emoticon esd exif expat fam fbcon fbdev fbsplash ffmpeg firefox
fping freetype gd gdbm gif glut gnokii gnome gstreamer gtk gtk2 hal hpn icc id3
idn imagemagick imap imlib imlib2 insecure-drivers insecure-savers java
javascript jikes jpeg kde kdeenablefinal lcms libedit libwww linuxthreads-tls
logrotate lua lynxkeymap mad madwifi maildir matroska mbox ming mmx mmxext mng
mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot
network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils
nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch nojython
nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl nsplugin
offensive ogg oggvorbis openal opengl openssh pam_console pam_timestamp passfile
password patented pccts pcmcia pcre perl perlsuid pic player png pnp qt
quicktime rar readline real recode reiserfs ruby samba sdl sendfile sensord sftp
slang sms spell spf sse sse2 ssl startup-notification stream subp subtitles suid
symlink sysfs syslog transcode truetype truetype-fonts trusted type1-fonts udev
underscores unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis
wifi win32codecs wma123 wmf x11vnc xine xinetd xml xml2 xmms xpm xscreensaver xv
xvid xvmc zlib video_cards_via linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL
Comment 1 Giacomo Perale 2005-11-27 10:51:28 UTC
is your user in the group "plugdev"?
Comment 2 Alexander Skwar 2005-11-27 11:36:34 UTC
(In reply to comment #1)
> is your user in the group "plugdev"?

Yes:

alexander@blatt ~ $ id
uid=1000(alexander) gid=100(users)
Gruppen=4(adm),10(wheel),16(cron),17(console),18(audio),19(cdrom),35(games),80(cdrw),100(users),250(portage),410(plugdev)
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-11-27 12:21:11 UTC
are you using udev-073?

If so, please downgrade to 072 or earlier.
Comment 4 John N. Laliberte (RETIRED) gentoo-dev 2005-11-27 12:24:15 UTC

*** This bug has been marked as a duplicate of 111890 ***
Comment 5 Alexander Skwar 2005-11-28 11:01:03 UTC
(In reply to comment #3)
> are you using udev-073?

Yes, I am (or rather: was...).

> If so, please downgrade to 072 or earlier.

I did so. Devices get mounted automatically and show up in Gnome just fine (I
yet have to double check KDE). 

So, what's broken? gnome-volume-manager? Is gvm not udev 073 compatible? Does
upstream know about this issue?
Comment 6 Mike Auty (RETIRED) gentoo-dev 2005-11-28 11:09:16 UTC
As I mentioned in the bug that this has been marked a duplicate of:

This looks as though it is because the internal event reordering that udev used
to do was taken out in version 073 (see the snippet of ChangeLog) below.  I'm
not certain however that this is in anyway related to the various and sundry
problems people have been having under bug #107784 (which the other bug was
marked as a duplicate of), which involved versions below 073, and kernel
pre-emption neither of which seem to be the issue here.

Summary of changes from v72 to v073
============================================

Kay Sievers:
      udevd: depend on netlink and remove all sequence reorder logic
      print useconds in udevmonitor
      add RELEASE-NOTES, update TODO

Unfortunately none of the further udev versions up to 076 (none of which are in
portage yet) seem to have any mention of putting this ordering back into udev.

Is this something that gnome-volume-manager must fix, or is it udev's fault? 
It's hard to tell exactly where the problem lies, does anyone else have any ideas?
Comment 7 Alexander Skwar 2005-11-28 11:48:01 UTC
(In reply to comment #5)

> I did so. Devices get mounted automatically and show up in Gnome just fine (I
> yet have to double check KDE). 

In KDE, the camera doesn't get mounted automatically. It doesn't show up at all
- also not under Konquerors media:/. I think it used to - or did it not?

I'm REOPENING this bug, as bug #111890 only deals with Gnome. I'm also
interested in getting auto mount of USB stuff to work in KDE again. Are there
any KDE related bugs wrt. this?

(In reply to comment #6)

> As I mentioned in the bug that this has been marked a duplicate of:

Yep, I read that - after I wrote, what I wrote :)

> Is this something that gnome-volume-manager must fix, or is it udev's fault? 

That's the question, waiting to be answered...
Comment 8 Alexander Skwar 2005-11-28 11:50:17 UTC
Could somebody from KDE please have a look? In this bug, I'm describing the
issue, that for some time now, USB mass storage devices don't get mounted
automatically and (thus?) no icon appears on the desktop.
Comment 9 Alexander Skwar 2005-11-28 11:51:35 UTC
Could somebody from KDE please have a look? In this bug, I'm describing the
issue, that for some time now, USB mass storage devices don't get mounted
automatically and (thus?) no icon appears on the desktop.
Comment 10 John N. Laliberte (RETIRED) gentoo-dev 2005-11-28 12:01:35 UTC
i opened a bug with the udev maintainer to see what he says about this.

see:
http://bugs.gentoo.org/113825
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2005-11-29 03:46:27 UTC
(In reply to comment #9) 
> Could somebody from KDE please have a look? 
 
I can only say that I can reproduce this issue with a usb stick and that 
udev-072 or udev-076 fix this issue (both sda and sda1 appear in media:/ and 
sda1 can be mounted by clicking on it with pmount installed). 
 

*** This bug has been marked as a duplicate of 113825 ***
Comment 12 Mike Auty (RETIRED) gentoo-dev 2005-11-29 05:40:07 UTC
If this is fixed by udev-076 or udev-072, would it be possible to either mask
off 073 so people revert, or perhaps bump the udev ebuild up to 076?