You are not logged in.

#1 2011-06-10 18:14:33

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Kernel Panic when Pluggin USB devices

Folks I'm having kernel panic issues when plugin USB devices on my machine. It hapens both in kde and terminal alike. My kernel info

Linux mordor 2.6.38-ARCH #1 SMP PREEMPT Mon Jun 6 22:49:29 CEST 2011 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux

I "fixed" it for the momment adding the usb ports to fstab

/dev/sdd1               /mnt/usb    vfat   rw,noauto,async,user,nofail  0         0
/dev/sdd2               /mnt/usb2   vfat   rw,noauto,async,user,nofail  0     0

This is far from ideal. What could I do what elses info can I provide you?
In errors.log I've found:

Jun  6 22:34:13 localhost kernel: [  259.994731] FAT: bogus number of reserved sectors
Jun  6 22:43:40 localhost kernel: [  827.830713] FAT: bogus number of reserved sectors
Jun  6 22:43:43 localhost kernel: [  830.974857] FAT: bogus number of reserved sectors

Any ideas or more info I can provide you?

Regards.

Offline

#2 2011-06-10 18:16:32

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Kernel Panic when Pluggin USB devices

Re-format the drives with gparted and see if it still keeps doing that.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-06-10 18:19:43

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Re: Kernel Panic when Pluggin USB devices

The problem seems related to a given usb port not to a given usbdisk. Sorry I forgot to mkention. Thou ports work fine in windows. And pendrives work fine in other linux machines.

Offline

#4 2011-06-10 19:14:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Kernel Panic when Pluggin USB devices

Offline

#5 2011-06-10 19:18:04

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Re: Kernel Panic when Pluggin USB devices

I'm also using amd64, behavior described there was happening some while ago on my machine. Maybe the issues was not 110% fixed?

Offline

#6 2011-06-16 20:06:33

badfish
Member
Registered: 2011-06-16
Posts: 4

Re: Kernel Panic when Pluggin USB devices

I've got the same problem: I've narrowed it down to something that changed between kernel versions 2.6.38.5-1 and 2.6.38.6-2.
I'm trying to track down the exact kernel patch that has caused this.

Offline

#7 2011-06-16 21:11:09

wah
Member
Registered: 2006-07-24
Posts: 11

Re: Kernel Panic when Pluggin USB devices

I'm experiencing kernel panics intermittently as well. Seems like I have about a 50/50 chance of a kernel panic when inserting a usb device. Using a ASUS P8P67 Pro mobo. I will try to submit some more relevant info when I have time.

Offline

#8 2011-06-17 21:27:21

HTL2001
Member
Registered: 2011-06-16
Posts: 5

Re: Kernel Panic when Pluggin USB devices

badfish wrote:

I've got the same problem: I've narrowed it down to something that changed between kernel versions 2.6.38.5-1 and 2.6.38.6-2.
I'm trying to track down the exact kernel patch that has caused this.

I am experiencing this same problem on kernel-lts which is at version 2.6.32
I think the problem is more likely with udev... but if you've isolated and only updated the kernel then I have no idea

Offline

#9 2011-06-17 21:31:14

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Re: Kernel Panic when Pluggin USB devices

HTL2001 wrote:
badfish wrote:

I've got the same problem: I've narrowed it down to something that changed between kernel versions 2.6.38.5-1 and 2.6.38.6-2.
I'm trying to track down the exact kernel patch that has caused this.

I am experiencing this same problem on kernel-lts which is at version 2.6.32
I think the problem is more likely with udev... but if you've isolated and only updated the kernel then I have no idea


My question, cant we fix it tweaking hall configs in our machines and removing the entries to the disks from fstab?

Offline

#10 2011-06-18 08:23:34

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Kernel Panic when Pluggin USB devices

Same here for the past few months, stock and custom kernel builds...

Linux WhoAmI 2.6.39.1-CUSTOM #1 SMP PREEMPT Sun Jun 5 01:33:53 PDT 2011 x86_64 AMD Phenom(tm) II X6 1100T Processor AuthenticAMD GNU/Linux

It has been 25/75 pass/fail since everything was humming along early .38-ARCH...I too feel as if it is udev-kernel interaction as fault...
I have to mount Win7 x64 before copying torrented media over and then transferring what I need to a USB drive..What a major hassle...
Adding the expected USB mount points to fstab failed as a workaround on my box. YMMV. Here is part of the panic messsage:

5844927160_b6835d70d7_m.jpg

All USB 2.0 and 3.0 ports and USB 2.0 and 3.0 drive devices (STT Express Drive USB 3.0) were working flawlessly before...
And it goes without saying that all USB drives were reformatted multiple times under both Arch and Win7 x64...

Last edited by adamlau (2011-06-18 09:37:44)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#11 2011-06-18 09:05:34

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Re: Kernel Panic when Pluggin USB devices

I seem to have fixed the issues on my PC. I followed https://wiki.archlinux.org/index.php/HAL and removed all USB mentions from fstab. Hope this pointer helps you.

Offline

#12 2011-06-18 09:08:04

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Kernel Panic when Pluggin USB devices

Thanks, vfbsilva. HAL is not installed and there are no USB devices listed in my fstab.

devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nosuid,nodev 0 0
tmp /tmp tmpfs defaults,noatime,size=2G,mode=1777 0 0

LABEL=BOOT /boot ext2 defaults 0 1
LABEL=ROOT / ext4 defaults,noatime 0 1
LABEL=HOME /home ext4 defaults,noatime 0 1
LABEL=DOCS /doc ext4 defaults,noatime 0 1
LABEL=PROG /prog ext4 defaults,noatime 0 1
LABEL=MULTI /multi ext4 defaults,noatime 0 1
LABEL=SWAP swap swap defaults 0 0

Last edited by adamlau (2011-06-18 09:13:44)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#13 2011-06-18 09:29:43

crabman
Member
Registered: 2010-08-12
Posts: 30

Re: Kernel Panic when Pluggin USB devices

ive got the same problem since i upgraded to 2.6.39
Once i plug in my usb pen drive i my kernel panics. No usb entries in entries and hal isnt installed

Offline

#14 2011-06-18 14:15:04

badfish
Member
Registered: 2011-06-16
Posts: 4

Re: Kernel Panic when Pluggin USB devices

I've traced the problem on my machine to a patch to scsi_sysfs.c that was introduced between 2.6.38-5 and 2.6.38-6.

There's another patch to the same file in kernel 3.0.0-rc3, and I can't reproduce the problem with that version of the kernel.

So I would suggest that people with this problem should try downgrading to 2.6.38-5, and then wait for 3.0.0 before upgrading the kernel again.

Offline

#15 2011-06-30 00:56:33

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Kernel Panic when Pluggin USB devices

Zero issues with USB-related kernel panics under 2.6.39.2 so far (noticed quite a few USB patches)...Udisks and devmon working as expected.....

Last edited by adamlau (2011-06-30 01:31:56)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB