LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-24-2006, 03:46 AM   #1
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Rep: Reputation: 0
USB devises crash system


OK please bare with me, although I'm not totally new to the whole Linux thing this is the first time I have chosen to ditch windows and do a full install.

I have just installed Slackware 10.2 and after getting every thing else working (Wi-Fi cards etc) I came to plugging in my USB GPS, that caused the system to freeze. The only way that I can restart the system is to remove the battery. (laptop)

Now the same thing happens when I plug in any USB device either before or after boot up. If someone could give me a few pointers as to how to fix this it would be very much appreciated.

BTW: The laptop is a Medion Sim2000, 1.3 Celeron m processor, 768MB of ram, Im not quite sure of the motherboard but most of the stuff on it (including USB) is SIS.
 
Old 01-24-2006, 04:54 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Gah, that's weird. Can you have a look through /var/log/kernel and see if there are any errors that you can see? It might help to cause the system to crash out and then reboot and immediately check the log file as there shouldn't be too much between the end of the file and the crash data (if any).
 
Old 01-24-2006, 05:24 AM   #3
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cs-cam
Gah, that's weird. Can you have a look through /var/log/kernel and see if there are any errors that you can see? It might help to cause the system to crash out and then reboot and immediately check the log file as there shouldn't be too much between the end of the file and the crash data (if any).
Mmmmm, Well I get as far as /var/log but kernel doesn't seem to exist. Should it be there? Or is it created in the event of a system failure?

OK, it's getting worse now after a reboot there seems to be a force check of the root file system that gives me, /dev/hda1: UNEXPECTED INCONSISTANCY; RUN fsck MANUALLY
 
Old 01-24-2006, 05:34 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
It could be /var/log/messages, varies depending on the logger daemon you're using. System crashed create havoc in filesystems, if you're using ext2 I suggest running fsck on it then mkefs -j /dev/hda1 to convert it to ext3 (no data loss) which uses a journal to help protect against the damage hard resets can cause.
 
Old 01-24-2006, 01:05 PM   #5
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
OK, I have now installed v10.1 to see if that made any difference, it didnt. Reinstalled v10.2 and am back to where I started from .

The log from /var/log/messages is:
Code:
Jan 24 18:48:16 lappy kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Jan 24 18:48:16 lappy kernel: pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Jan 24 18:48:16 lappy kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Jan 24 18:48:16 lappy kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Jan 24 18:48:16 lappy kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Jan 24 18:48:16 lappy kernel: pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Jan 24 18:48:16 lappy kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Jan 24 18:48:16 lappy kernel: usb-uhci.c: $Revision: 1.275 $ time 18:53:41 Jun  5 2005
Jan 24 18:48:16 lappy kernel: usb-uhci.c: High bandwidth mode enabled
Jan 24 18:48:16 lappy kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 24 18:48:27 lappy logger: /etc/rc.d/rc.hotplug start (exiting script)
Jan 24 18:48:45 lappy sshd[2749]: Server listening on 0.0.0.0 port 22.
Jan 24 18:52:11 lappy syslogd 1.4.1: restart.
Jan 24 18:52:12 lappy kernel: klogd 1.4.1, log source = /proc/kmsg started.
Jan 24 18:52:12 lappy kernel: kmod: failed to exec /sbin/modprobe -s -k parport_lowlevel, errno = 2
Jan 24 18:52:12 lappy kernel: loop: loaded (max 8 devices)
Jan 24 18:52:12 lappy kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
Jan 24 18:52:12 lappy kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Jan 24 18:52:12 lappy kernel: SIS5513: IDE controller at PCI slot 00:02.5
Jan 24 18:52:12 lappy kernel: SIS5513: chipset revision 0
Jan 24 18:52:12 lappy kernel: SIS5513: not 100%% native mode: will probe irqs later
Jan 24 18:52:12 lappy kernel: SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller
Jan 24 18:52:12 lappy kernel:     ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
Jan 24 18:52:12 lappy kernel:     ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
Jan 24 18:52:12 lappy kernel: hda: 78140160 sectors (40008 MB), CHS=4864/255/63, UDMA(33)
Jan 24 18:52:12 lappy kernel: hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Jan 24 18:52:12 lappy kernel: Uniform CD-ROM driver Revision: 3.12
The USB device was inserted at 18:51 so as far as I can see it has not been logged.
 
Old 01-24-2006, 04:54 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Sorry, tag me out. I've got no idea Never heard of that happening before. If you're not on dial-up I'd suggest downloading Knoppix and see if you experience the problems under that. It could be that Slack is incorrectly detecting your motherboard and loading the wrong modules for it that are crapping out or something
 
Old 01-24-2006, 05:02 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,022

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
I had a similar issue on a barebones system I built up. Plug something into the front USB ports, INSTANT POWERDOWN! A very ungraceful shutdown. Plug it into one of the rear ports, everything worked fine.

It turned out that the barebones system was shipped to me with a jumper incorrectly set on the motherboard. I checked all the jumpers before initially powering on the system, but obviously missed this one.

Probably not an issue for your laptop however. I doubt you built the thing yourself. Did USB work when you used to have Windows installed on this same laptop?
 
Old 01-24-2006, 05:48 PM   #8
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by haertig
Probably not an issue for your laptop however. I doubt you built the thing yourself. Did USB work when you used to have Windows installed on this same laptop?
Yep, and just to confuse things even more they work on the Whoppix live CD and every other live CD I have tried. (there have been a few)

Just to confuse things a bit more I have installed Debian and they work in that. But I refuse to give up and want to use Slackware. I'm sure that there is an incompatible module or driver loading its self somewhere, now it's just a case of finding what one. Any ideas anyone?
 
Old 01-24-2006, 06:01 PM   #9
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
have you tried plugging it in and turning the computer on? see if it will boot up? then maybe take a look at dmesg
 
Old 01-24-2006, 06:08 PM   #10
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bosewicht
have you tried plugging it in and turning the computer on? see if it will boot up? then maybe take a look at dmesg
Yep, if I do that it will not boot past the hardware detection stage.
 
Old 01-24-2006, 06:12 PM   #11
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
It sounds like hotplug is loading an incorrect module. just outta curiosity. open up /etc/hotplug/blacklist and add hw_random to blacklist and try rebooting with the unit plugged in.
 
Old 01-24-2006, 06:42 PM   #12
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Still crashing in the same place. Im guessing that I have entered it in the right place.
Code:
# uhci ... usb-uhci handles the same pci class, so one of the two
# needs to be listed below.
usb-uhci
hw_random
# usbcore ... module is loaded implicitly, ignore it otherwise
usbcore
hw_random
# tulip ... de4x5, xircom_tulip_cb, dmfe (...) handle same devices
de4x5

# At least 2.4.3 and later xircom_tulip doesn't have that conflict
# xircom_tulip_cb
dmfe
 
Old 01-24-2006, 06:49 PM   #13
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
ok, I doubted if that would work, it was a stab in the dark. that module has given a lot of people probs before. You have it in the right place. Another thing to try is disable hotplug. boot the computer up with the unit plugged in. After its booted up. run hotplug. I don't know for sure in slack where it would be either /etc/init.d/hotplug start or /etc/rc.d/hotplug start. you get the point. Now if the unit is plugged in, it should lock your computer up. Thats ok, then maybe you can see what module hotplug is trying to load when it freezes and add that one to the blacklist.

Edit:
actually you could have just stopped hotplug and plugged it in then started hotplug...oh well

Last edited by bosewicht; 01-24-2006 at 06:59 PM.
 
Old 01-24-2006, 07:08 PM   #14
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
I like the way you are thinking, but when I run /etc/rc.d/rc.hotpulg I get a system beep and every thing freezes. (Damm I'm getting quick at pulling the battery out.)
 
Old 01-24-2006, 07:13 PM   #15
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
now check the logs see what was the last module to load or the module that was loading when it froze.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System crash!!!! hacinn Linux - Hardware 2 09-15-2004 06:55 PM
System crash Dauer Linux - Hardware 1 09-14-2004 03:06 PM
System Crash??? cstovall Linux - General 2 10-04-2003 09:31 AM
system crash buttnutt Linux - General 2 09-17-2003 08:02 PM
System Crash!! need help please infected Linux - Software 0 07-30-2003 08:58 AM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration