Re: Kernel Panic on removing usb storage

From: Robert Heller (heller_at_deepsoft.com)
Date: 05/20/04


Date: Thu, 20 May 2004 21:46:32 +0200


  "T. G" <tgahnstr@cern.ch>,
  In a message on Thu, 20 May 2004 16:29:04 +0200, wrote :

"G> Every time I remove a USB storage device (camera, mp3 player, hd etc) I get
"G> a Kernel Panic and have to plug out the power to reboot my computer.
"G> It is not an X thing, even if I go to runlevel 1 before I unplug it I get
"G> the same Kernel Panic.
"G> I have no idea about where to look for a solution. The message I get in
"G> dmesg when I plug it in looks as follows:
"G>
"G> > usb.c: USB device 2 (vend/prod 0x4b0/0x116) is not claimed by any
"G> > active driver. Starting timer : 0 0
"G> > Vendor: Nikon Model: NIKON DSC E2100 Rev 1.00
"G> > Type: Direct-Access ANSI SCSI
"G> > revision: 02
"G> > Starting timer : 0 0
"G> > Attached scsi removable disk sda at scsi 1, chanel 0, id 0, lun 0
"G> > SCSI device sda 503808 512-byte hdwr sectors (258 MB)
"G> > sda: Write Protect is off
"G>
"G> It doesn't look too good I think but I am a linux newbie so I am not sure.
"G> The "is not claimed by any active driver" part is what looks a little bit
"G> bad to me. When I plug in another usb-device (scanner) it attaches itself to
"G> scanner0 after a sec or so which seems like a good thing.
"G> Do I maybe need to ad a device for my usb-storage to attach to? Or to I just
"G> need to tell it where to attach itself?
"G> If I put the camera on ptp instead of mass storage it works without a
"G> problem. And there are no problems mounting any of the devices and reading
"G> or writing from them and I get no errors when I umount the device. It is not
"G> until I unplug them I get kernel panic. Maybe I need to "turn of the usb
"G> connection"?
"G> I use a redhat enterprise 3 derivate on a new Thinkpad. W hi boot the
"G> computer it initializes 2 USB controllers I think, at least it says
"G>
"G> usb-uhci ok
"G> ehci-hcd ok
"G>
"G> Any pointers would be appreciated
"G> The actual Kenrel Panic message I get look something like this, I had to
"G> retype it so everything is not there but it starts with the call stack
"G>
"G> > .rodata.str1.32
"G> > print_req_sense
"G> > ..
"G> > ..
"G> > dentry_open
"G> > filp_open
"G> > sys_open
"G> > Code: 8b 43 50 89 .. .. ..
"G>
"G> > Kernel Panic: Fatal exception

Are you leaving the USB storage device *mounted* when you 'remove' it?
It is seriously bad news to do that. *Always* unmount removable filesystems
before removing them.

"G>
"G> Tim
"G>
"G>
"G>

                                     \/
Robert Heller ||InterNet: heller@cs.umass.edu
http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
http://www.deepsoft.com /\FidoNet: 1:321/153

                             



Relevant Pages

  • Kernel Panic on removing usb storage
    ... Every time I remove a USB storage device (camera, mp3 player, hd etc) I get ... a Kernel Panic and have to plug out the power to reboot my computer. ...
    (comp.os.linux.misc)
  • Re: Missing dev entries
    ... >> created when you plug in a USB storage device. ... How do I check which /dev entry is created when I plug a ... Let the computer edit fstab for you. ...
    (comp.os.linux.misc)
  • Re: Missing dev entries
    ... >> created when you plug in a USB storage device. ... > Yes, I use udev. ... How do I check which /dev entry is created when I plug a ...
    (comp.os.linux.misc)
  • USB Removale storage and drive letters
    ... Plug in a USB storage device, hardware is recognized a drive letter ... being used by a mapped network share, ...
    (microsoft.public.windowsxp.general)
  • USB access problems
    ... When I plug my camera into the pc, the device manager says it is working properly but I can never access the USB storage device. ...
    (microsoft.public.windowsxp.hardware)