LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-26-2010, 09:35 AM   #1
vtbludgeon
Member
 
Registered: Sep 2002
Location: New Jersey, USA
Distribution: Ubuntu, Xubuntu, Debian
Posts: 62

Rep: Reputation: 18
since filesystem damage on SATA drive, USB support went away


I am running Ubuntu 9.04 on a Dell Optiplex SX280

Yesterday the system locked up, and when I rebooted I got stuff like this:

Code:
[  126.466459] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  126.466464] ata3.00: BMDMA stat 0x24
[  126.466471] ata3.00: cmd 25/00:20:bf:a2:21/00:01:00:00:00/e0 tag 0 dma 147456 in
[  126.466473]          res 51/40:41:00:a3:21/40:00:00:00:00/e0 Emask 0x9 (media error)
[  126.466476] ata3.00: status: { DRDY ERR }
[  126.466478] ata3.00: error: { UNC }
and was prompted to run fsck manually. So I stumbled my way through that, accepting the default (yes) when asked if we should force this and rewrite that, perhaps 30 or 40 times. Then I rebooted OK.

Some files got blown away, many of them in my .mozilla directory, sqlite databases containing stored website passwords and such. I think I remember seeing something containing "usb" in its name that was also damaged.

There may be other surprises lurking, but among the problems I have noticed is that when I insert a USB stick into a port, it is no longer automatically mounted, and there's nothing about in the output of lsusb, as far as I can tell:

Code:
Bus 004 Device 002: ID 413c:3200 Dell Computer Corp. Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
And I have not been able to mount it manually.

So, my questions are:

Doesn't this mean there are bad sectors on my drive?

Should the drive be replaced and the OS reinstalled?

Or should I just do an OS reinstall?

Or is there a way to restore the damaged system stuff like USB support, short of a reinstall?

Or is there something else I ought to do?

Many thanks in advance.
 
Old 03-27-2010, 03:18 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Code:
dmesg|tail && fdisk -l
Boot into single user mode. You can update the system.
Use apt-get to correct.
Usbutils and usbmount- if you had it- are what you need.
If the drive doesn't work with one distro or OS, doesn't mean it's shot.
 
Old 03-27-2010, 05:50 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I suggest booting from a live cdrom or dvd or any other media, then use smartmontools to do all the possible checks. This will bypass your fs, so it's more or less a reliable way to check for hardware errors, as long as your drives support SMART, that is.

The dmesg dump certainly looks like a hardware error, unless it's a bogus driver, and I assume that's not the case if the drive has been working for a long time on that same OS.
 
Old 04-01-2010, 11:50 AM   #4
vtbludgeon
Member
 
Registered: Sep 2002
Location: New Jersey, USA
Distribution: Ubuntu, Xubuntu, Debian
Posts: 62

Original Poster
Rep: Reputation: 18
Thumbs up

thanks for the advice. I didn't have quite enough clues to figure out how to repair in single-user mode, so I did something really foolish, that is, tried to remove and reinstall usbutils etc, and trashed everything royally. Could not boot X, had no network, etc. Nice move, Einstein!

So I booted from a rescue disk and manually mounted an external USB disk as well as the hard disk and copied everything essential from the latter to the former, then re-installed the OS, then restored my stuff (And took the opportunity to go from Ubuntu 9.04 to 9.10 -- so far, no complaints.)

Ubuntu immediately warned me that the drive had "many bad sectors," so I replaced the drive, rinsed and repeated.

All told, the whole operation cost hours, but all is well.

Thanks again.
 
Old 04-07-2010, 11:10 AM   #5
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Rep: Reputation: 16
This EXACT same thing happened with me when I was having hard drive failure. As soon as I realized something was wrong with it, I zeroed out the drive with seatools. After that, I was restoring my operating system image, (stored on a usb backup drive). But, it came to a bad spot on the disk. After that, my machine froze. After I rebooted, the USB would fail after transfering aproximately 100 mb of data. I unplugged the system from the wall and removed the CMOS battery. I got nothing. I then did the same thing letting it sit for a week, and still nothing. So, I moved to another pc I had around (much slower). Finally, after 2 months I decided to plug in the PC again, and low and behold it WORKED! Now, I am back on my computer. USB now works no problems. Many people online who have USB problems have said that if they let their computer stay unplugged for a half hour it clears up. I guess mine had a capacitor somewhere that took awhile to clear. Try unplugging your PC and see if that helps the USB. I think in my case, the southbridge got confused as it handles my all bus communications. EDIT: Nevermind looks like you fixed it. COOL!

Last edited by Super TWiT; 04-07-2010 at 11:12 AM.
 
  


Reply



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
Kernel panic when trying to create filesystem on SATA drive. joe_huddleston Linux - Software 4 01-08-2010 05:10 PM
kernel accessing pata cd rom drive instead of sata OS hard drive for filesystem elaps2007 Linux - Kernel 0 03-19-2008 09:39 AM
Can mounting a usb flash drive with the sync option damage it ? electronpusher Linux - General 4 03-04-2008 11:46 AM
Support for SATA Hard Drive Dodon Linux - Hardware 2 09-08-2006 04:54 AM
lack of usb & filesystem support in 9.3 duff SUSE / openSUSE 6 10-02-2005 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration