Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB Problems
Date: Sun, 12 Jun 2011 15:10:46
Message-Id: 20110612144538.GA3061@solfire
In Reply to: [gentoo-user] USB Problems by john
1 john <jdm@×××××××××××××××××××.uk> [11-06-12 16:36]:
2 > Gents
3 >
4 > Whenever I insert external USB device my machine locks and I have to do
5 > a hard reset (sys req does not even work). I have tried this in a
6 > graphical environment and without. Machine boots up fine with USB
7 > keyboard and mouse but will not boot up with usb storage (memory stick
8 > - tried several)
9 >
10 > I have recently upgrade kernel to 2.6.38-r6 when this error started
11 > (approx). Hav also tried 2.6.38-r7 (which according to bugzilla
12 > should fix an issue similar to this) the error still happens.
13 >
14 > Any suggestions on kernel config options, debugging would be
15 > appreciated. And how to trap full error message.
16 >
17 > Error message alongs these lines
18 >
19 > Kernel panic not syncing - fatal exception in iterrupt
20 > ksoftirqd/1 Not tainted
21 >
22 >
23 >
24 >
25 > --
26 > --------------
27 > --------------
28 > John D Maunder
29 > jdm@×××××××××××××××××××.uk
30 >
31
32 Hi John,
33
34 may be this could help to track th eerror more closely:
35 Recompile the kernel with CONFIG_USB_DEBUG set.
36 If not already done, enable CONFIG_MAGIC_SYSRQ and
37 read about the available commands in the according
38 docs under /usr/src/linux/Documentation/.
39 This is a overall life saver in many other cases too.
40 But it may be a security hole also -- you can disable
41 it in /proc/ later.
42 If possible change /etc/fstab to mount the partition
43 to which logging will go with the "sync" option so
44 every log entry will go directly onto the bare metal
45 instead of a RAM buffer.
46
47 Reboot into console mode (no X).
48 cd to the logging directory and
49 do a tail -f onto the logfile in question
50
51 Insert the "USB stick of death" ;) and
52 see, whether you can see anything in the
53 tailed log.
54
55 If not do the magic sysrq dance to sync hds,
56 remount readonly and finally reboot.
57
58 Take a closer look into the resulting logs.
59
60 Good luck!
61
62 Nevertheless have a nice weekend!
63 Best regards,
64 mcc

Replies

Subject Author
Re: [gentoo-user] USB Problems john <jdm@×××××××××××××××××××.uk>