Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Automounting of USB devices no longer working

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
mihochan
Apprentice
Apprentice
User avatar
Posts: 296
Joined: Tue Apr 16, 2002 1:40 am
Location: Melbourne again

Automounting of USB devices no longer working

  • Quote

Post by mihochan » Thu Apr 12, 2007 12:23 am

I recently upgraded the kernel to 2.6.20 and now my usb stick automount is not working.

I was using DBUS, HAL and IVMAN to automount USB devices but this has suddenly stopped working.

I upgraded all the packages and reinstalled them but still no joy.

The system logs are not very helpful. This appears when I plug in the device

Code: Select all

Apr 12 10:20:10 [kernel] usb 1-1: new full speed USB device using uhci_hcd and address 5
Apr 12 10:20:10 [kernel] usb 1-1: configuration #1 chosen from 1 choice
but nothing is logged by DBUS, HAL or IVMAN as I would have expected.

Also when I start hald I get these messages.

Code: Select all

* Stopping Automounter ...                                               [ ok ] 
* Stopping Hardware Abstraction Layer daemon ...               [ ok ] 
* Starting Hardware Abstraction Layer daemon ...                 [ ok ] 
* Starting Automounter ...
/bin/sh: /proc/sys/dev/cdrom/lock: No such file or directory              [ ok ]
Does anyone have any clues as to what might be going on?


Thanks
In the long run we are all dead - Keynes
Top
mihochan
Apprentice
Apprentice
User avatar
Posts: 296
Joined: Tue Apr 16, 2002 1:40 am
Location: Melbourne again

  • Quote

Post by mihochan » Thu Apr 12, 2007 10:57 pm

Switching back to the old kernel everything works fine.

Here is the system log when I plug in the USB device

Code: Select all

Apr 13 08:54:08 [kernel] usb 1-2: new full speed USB device using uhci_hcd and address 2
Apr 13 08:54:08 [kernel] usb 1-2: configuration #1 chosen from 1 choice
Apr 13 08:54:09 [kernel] Initializing USB Mass Storage driver...
Apr 13 08:54:09 [kernel] scsi0 : SCSI emulation for USB Mass Storage devices
Apr 13 08:54:09 [kernel] usbcore: registered new interface driver usb-storage
Apr 13 08:54:09 [kernel] USB Mass Storage support registered.
Apr 13 08:54:14 [kernel] usb 1-2: reset full speed USB device using uhci_hcd and address 2
Apr 13 08:54:14 [kernel] usb 1-2: device firmware changed
Apr 13 08:54:14 [kernel] usb 1-2: new full speed USB device using uhci_hcd and address 3
Apr 13 08:54:14 [kernel] usb 1-2: configuration #1 chosen from 1 choice
Apr 13 08:54:14 [kernel] scsi1 : SCSI emulation for USB Mass Storage devices
Apr 13 08:54:19 [kernel] scsi 1:0:0:0: Direct-Access     DSE      MICRO AV         1.00 PQ: 0 ANSI: 0 CCS
Apr 13 08:54:20 [kernel] SCSI device sda: 2024865 512-byte hdwr sectors (1037 MB)
Apr 13 08:54:20 [kernel] sda: Write Protect is off
Apr 13 08:54:20 [kernel] sda: assuming drive cache: write through
Apr 13 08:54:20 [kernel] SCSI device sda: 2024865 512-byte hdwr sectors (1037 MB)
Apr 13 08:54:20 [kernel] sda: Write Protect is off
Apr 13 08:54:20 [kernel] sd 1:0:0:0: Attached scsi removable disk sda
This is very strange as the new kernel was built with the same .config file
In the long run we are all dead - Keynes
Top
mihochan
Apprentice
Apprentice
User avatar
Posts: 296
Joined: Tue Apr 16, 2002 1:40 am
Location: Melbourne again

  • Quote

Post by mihochan » Fri Apr 13, 2007 5:42 am

Any ideas anyone why the SCSI emulation doesn't kick in? SCSI device support and SCSI disk support are both selected and loaded as modules.

I've got the machine to select USB 1-2 by dropping the OHCI module
In the long run we are all dead - Keynes
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Mon Apr 23, 2007 5:06 pm

Hi mihochan,

Same problem over here: 2.6.19-gentoo-r5 works fine, 2.6.20-gentoo-r6 does not.
But no idea what's going on.
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Fri Apr 27, 2007 12:22 pm

Hi.

Thought I'd bump this thread by saying that I'm getting a similar problem (USB HD not automounting with the 2.6.20-r6 kernel, but no problem with USB flash drive or internal USB card reader) with Gnome. See this thread.

Anyone any more ideas?
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Mon Apr 30, 2007 7:56 pm

With this KDE automount works for me: enable create sysfs files in the kernel .

Code: Select all

 Kernel Configuration
     General setup  --->  
        ....
        [*] Create deprecated sysfs files
        .....    
Why does automount not work without sysfs?
When you read the subject kernel help

Code: Select all

 If you are using a distro that was released in 2006 or later, 
 it should be safe to say N here. 
My make.conf does not use the sysfs use-flag.

Any idea?

[edit]The kernel I used is gentoo-2.6.21, but 2.6.20 has the same option for sysfs [/edit]
Top
urcindalo
l33t
l33t
Posts: 623
Joined: Tue Feb 08, 2005 2:58 pm
Location: Almeria, Spain

  • Quote

Post by urcindalo » Wed May 02, 2007 12:42 pm

aries wrote:With this KDE automount works for me: enable create sysfs files in the kernel .

Code: Select all

 Kernel Configuration
     General setup  --->  
        ....
        [*] Create deprecated sysfs files
        .....    
Why does automount not work without sysfs?
I have also a problem with USB sticks since I upgraded to kernel 2.6.20-r7 (stable gentoo-sources on AMD64). I didn't activate the option you mention when cinfiguring the new kernel:

Code: Select all

/usr/src/linux $ cat .config | grep SYSFS
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_PM_SYSFS_DEPRECATED is not set
CONFIG_RTC_INTF_SYSFS=m
CONFIG_SYSFS=y
As a consequence, it is not that my USB sticks are not recognized. It is that they are considered regular hard disks. Let me explain.
I use KDE. When I boot with my old kernel (2.6.19-r5) and insert a USB stick, KDE informs me a new device type has been found, with three options: open a new folder, download photos with digiKam and do nothing. If I open it, I see a USB stick icon appearing in the Media Applet.

But if I boot with the new kernel, KDE tells me an unmounted hard disk volume has been found when I plug in the USB stick, and shows me only two options (the 'digiKam' one is missing). If I mount it, no USB stick icon appears in the Media Applet. However, if I configure the Media Applet to show also the mounted hard drives, then an icon representing the USB sticks appears.

So, the question is: why does the new kernel consider a USB stick is a regular hard disk? :?
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Wed May 02, 2007 3:09 pm

have a look at the lshal output for your usb harddisks - whats the value of storage.bus?
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Wed May 02, 2007 5:24 pm

1. The KDE automount + kernel >2.6.20 problem:

The reason for this problem is the HAL version:
This works for me / solved the problem:
- hal-0.5.9-r1
- kernel: gentoo-2.6.21 with the deprecated sysfs not enabled

Code: Select all

 Kernel Configuration 
     General setup  --->  
        .... 
        [ ] Create deprecated sysfs files 
2. USB disk as regular harddisks:
Sorry urcindalo, I have not seen this problem on my x86.
Top
urcindalo
l33t
l33t
Posts: 623
Joined: Tue Feb 08, 2005 2:58 pm
Location: Almeria, Spain

  • Quote

Post by urcindalo » Thu May 03, 2007 9:36 am

TheCoop wrote:have a look at the lshal output for your usb harddisks - whats the value of storage.bus?

Code: Select all

  storage.bus = 'scsi'  (string)  storage.bus = 'scsi'  (string)
It is recognized as a SCSI device. I think it's OK, isn't it?

When I got the chance I'll try updating my hal from stable 0.5.7.1-r3 to ~0.5.9-r1, as aries suggests.
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Thu May 03, 2007 9:55 am

Thanks, aries. Unmasking and merging hal-0.5.9-r1 solves my (slightly different) automount problem in Gnome with both the 2.6.20-gentoo-r6 and 2.6.21-gentoo kernels.
Top
urcindalo
l33t
l33t
Posts: 623
Joined: Tue Feb 08, 2005 2:58 pm
Location: Almeria, Spain

  • Quote

Post by urcindalo » Thu May 03, 2007 11:55 am

urcindalo wrote:When I got the chance I'll try updating my hal from stable 0.5.7.1-r3 to ~0.5.9-r1, as aries suggests.
I just updated also to hal-0.5.9-r1 (~AMD64) and everything's back to normal :D
Thanks, aries.
Top
fb
l33t
l33t
User avatar
Posts: 636
Joined: Mon Dec 08, 2003 1:45 am
Location: New Zealand

  • Quote

Post by fb » Thu May 17, 2007 12:29 am

I kind of have a similar issue. I have two machine a x86 one and a ppc one.
I have the problem on the ppc machine but not on x86. They are configured
in the way as much as possible. Both have a kernel 2.6.20 and hal-0.5.7-r3.

The difference is that on x86 hal is compiled with USE="dmi" which pulls dmidecode,
I don't have it enabled on ppc - in fact it is hard masked on ppc so I cannot 100%
check that just including that flag solve the problem.
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic