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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2006, 04:27 AM
|
#1
|
Member
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362
Rep:
|
usb hd crash: causes?
Hi all,
An external USB harddisk of mine crashed yesterday while I was browsing some files on it in Gnome. I unmounted it and ran fsck which found and correct a ton of errors. When it was done, I remounted the disk and to my dismay all that was left was a hundred or so 0-byte files in the lost+found directory.
(Yes, I had backups)
In my two-plus years running Linux, I have never seen anything like this.
At this point, I am wondering what caused this failure. Is the drive dying? Is there something inherently unstable about heavy HD use via USB?
The disk is a two-year old 200 GB SATA drive (Maxtor) attached to an Acer laptop running Ubuntu 6.10.
|
|
|
11-23-2006, 05:03 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
Would be interesting to see what syslog had to say leading up to the time of crash.
|
|
|
11-23-2006, 03:48 PM
|
#3
|
Member
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362
Original Poster
Rep:
|
Ok, looking in syslog, here is the first sign of trouble (the usb drive was mounted as /dev/sda and I've removed many duplicate lines):
Code:
[...]
Nov 23 02:20:32 zeus kernel: [17972643.764000] usb 5-3: reset high speed USB device using ehci_hcd and address 5
Nov 23 02:21:04 zeus kernel: [17972675.252000] attempt to access beyond end of device
Nov 23 02:21:04 zeus kernel: [17972675.252000] sda1: rw=0, want=18444709592,
[...]
The second line is repeated many times, with different "want" values.
Then I see:
Code:
[...]
Nov 23 02:22:21 zeus kernel: [17972752.036000] Buffer I/O error on device sda1, logical block 2101352623
Nov 23 02:22:21 zeus kernel: [17972752.036000] lost page write due to I/O error on sda1
[...]
And further on:
Code:
[...]
Nov 23 02:22:26 zeus kernel: [17972757.028000] journal_bmap: journal block not found at offset 6681 on sda1
Nov 23 02:22:26 zeus kernel: [17972757.028000] Aborting journal on device sda1.
Nov 23 02:35:17 zeus kernel: [17973527.792000] EXT3-fs warning (device sda1): dx_probe: Unrecognised inode hash code 114
[...]
Then:
Code:
[...]
Nov 23 02:36:20 zeus kernel: [17973591.596000] EXT3-fs error (device sda1): ext3_readdir: bad entry in directory #2: directory entry across blocks - offset=0, inode=808593440, rec_len=12336, name_len=41
[...]
And finally at the end I dismount the drive:
Code:
[...]
Nov 23 02:36:20 zeus kernel: [17973591.596000] ext3_abort called.
Nov 23 02:36:20 zeus kernel: [17973591.596000] EXT3-fs error (device sda1): ext3_journal_start_sb: Detected aborted journal
Nov 23 02:36:20 zeus kernel: [17973591.596000] Remounting filesystem read-only
Nov 23 02:37:18 zeus kernel: [17973648.948000] EXT3-fs error (device sda1): ext3_readdir: bad entry in directory #2: directory entry across blocks - offset=0, inode=808593440, rec_len=12336, name_len=41
Nov 23 02:37:51 zeus kernel: [17973682.208000] __journal_remove_journal_head: freeing b_committed_data
Nov 23 02:37:58 zeus kernel: [17973689.176000] usb 5-3: USB disconnect, address 5
[...]
I have since reformatted the drive, and I am letting it run for a few days with some non-critical data while I decide what to do with it.
|
|
|
11-23-2006, 05:45 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,417
|
Ok, looking in syslog, here is the first sign of trouble
Code:
attempt to access beyond end of device
In short this line points to a corruption of the disks meta data at that point in time, so the trouble started before this line. Looking around some problems where in lower 2.6 versions (2.6.14 IIRC), some with particular chipsets (ALI?), some with really stressing the whole subsystem (tens of concurrent read and write procs), so it's nearly impossible to outline a specific situation in which it fails. The only things I could recommend is checking out newer kernel versions if possible / available, creating smaller partitions (spread risks?) and doing regular fscks (early warning).
|
|
|
11-23-2006, 08:27 PM
|
#5
|
Member
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362
Original Poster
Rep:
|
Thanks for your reply. I am running a fairly recent kernel. 2.6.17. As for your other suggestions, I'll take them into consideration.
|
|
|
11-24-2006, 02:02 PM
|
#6
|
Member
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362
Original Poster
Rep:
|
Damn, it just happened again.
Either the drive is dying or the external USB enclosure is flaky...
|
|
|
All times are GMT -5. The time now is 01:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|