LinuxQuestions.org
Visit Jeremy's Blog.
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 05-31-2010, 04:13 PM   #1
the_ultimate_samurai
Member
 
Registered: Jan 2006
Distribution: debian-lenny
Posts: 37

Rep: Reputation: 15
Exclamation Attempt to read block from filesystem resulted in short read while trying to


so i pulled out a sata chord from my motherboard while it was still on (i know stupid right? i am normally religious about turning off my computer before removing a chord, often going so far as to completely unplug it and wait fro the light to go off, but i had always assumed it was just me being irrational...) well after doing so my computer locked up...i had to do a forced restart...after doing that my secondary HDD (/dev/hdb) not longer reads. fdisk /dev/hdb gives this:

Unable to read /dev/hdb
(there is more information in the actual console...):
Code:
May 31 17:01:15 debian kernel: [ 3009.176919]  hdb:<3>end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] __ratelimit: 22 messages suppressed
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] ldm_validate_partition_table(): Disk read failed.
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.176919] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.176919] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.196957] Dev hdb: unable to read RDB block 0
May 31 17:01:15 debian kernel: [ 3009.196969] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.197015] Buffer I/O error on device hdb, logical block 0
May 31 17:01:15 debian kernel: [ 3009.197068] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.197130] end_request: I/O error, dev hdb, sector 24
May 31 17:01:15 debian kernel: [ 3009.200945] end_request: I/O error, dev hdb, sector 24
May 31 17:01:15 debian kernel: [ 3009.200945] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.200945]  unable to read partition table
May 31 17:01:15 debian kernel: [ 3009.200945] end_request: I/O error, dev hdb, sector 0
May 31 17:01:15 debian kernel: [ 3009.200945] end_request: I/O error, dev hdb, sector 2615992
May 31 17:01:15 debian kernel: [ 3009.200945] end_request: I/O error, dev hdb, sector 2615992
fsck gives:

fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/hdb
Could this be a zero-length partition?
(again the same stuff as above shows up in the actual console...)

mke2fs -n /dev/hdb gives:
Code:
mke2fs 1.41.3 (12-Oct-2008)
/dev/hdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
81760 inodes, 327000 blocks
16350 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=335544320
10 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912
and e2fsck -b on all those backup superblocks gives:
Code:
e2fsck 1.41.3 (12-Oct-2008)
e2fsck: Invalid argument while trying to open /dev/hdb

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
please help me, thats some of my most important data i REALLY want to recover it (some of that data has survived the crash of 4+ hdds and is over 10 years old)
 
Old 05-31-2010, 04:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Was the "victim drive" part of a RAID setup or LVM or did it have encrypted partitions on it? How many partitions were on it aprox? Why do you run 'mke2fs -n /dev/hdb' on the whole disk? Do you have (file, any, whatever) backups? Can you boot a Live CD and run 'testdisk /log /debug /dev/hdb', quit it, then read (and post?) the log file contents testdisk created?
 
Old 05-31-2010, 04:54 PM   #3
the_ultimate_samurai
Member
 
Registered: Jan 2006
Distribution: debian-lenny
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
Was the "victim drive" part of a RAID setup or LVM or did it have encrypted partitions on it? How many partitions were on it aprox? Why do you run 'mke2fs -n /dev/hdb' on the whole disk? Do you have (file, any, whatever) backups? Can you boot a Live CD and run 'testdisk /log /debug /dev/hdb', quit it, then read (and post?) the log file contents testdisk created?
was not raid, probably not lvm(least i never explicitly told it to be...maybe implicit...)no ecrypted partitions aprox 2 partitions i believe (main partition and a swap partition which was roughly a gig or so i think) i ran mke2fs -n on the whole partition because i have no idea what im doing, running on /dev/hdb1 gives:

Could not stat /dev/hdb1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

hdb is the only one present in /dev neither hdb1 nor hdb5(the swap) are present in dev..
do i need a live cd for testdisk? the hdd is secondary so i can boot into linux just fine, or will it cause problems if i use it here?

as for backups...very little...just my music...the rest is all on that drive. it was a 500 gig so it was used for storing MOST my data. the only thing that could back it up is my 1tb which is also broken (due to WD being idiots)
 
Old 05-31-2010, 05:34 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by the_ultimate_samurai View Post
was not raid, probably not lvm (..) no encrypted partitions
Good.


Quote:
Originally Posted by the_ultimate_samurai View Post
hdb is the only one present in /dev neither hdb1 nor hdb5(the swap) are present in dev..
Once a drives partition table goes belly up don't expect it to show up in /dev...


Quote:
Originally Posted by the_ultimate_samurai View Post
do i need a live cd for testdisk? the hdd is secondary so i can boot into linux just fine, or will it cause problems if i use it here?
A Live CD might be easier as it frees the other disk as write target if necessary but if you can run testdisk fine that's OK.


Quote:
Originally Posted by the_ultimate_samurai View Post
my 1tb which is also broken
Cool. At least that'll stop you from breaking it further ;-p
 
Old 05-31-2010, 05:58 PM   #5
the_ultimate_samurai
Member
 
Registered: Jan 2006
Distribution: debian-lenny
Posts: 37

Original Poster
Rep: Reputation: 15
well i can run testdisk but the size given for the drive is wrong, first it said ~1 GB now it has :

Disk /dev/hdb - 12785069 TB / 11627953 TiB - X6ضضضضض ضض ضض ~Vضضض

in both cases there was gibberish after, this time it seems to be hebrew...i didnt continue...
 
Old 05-31-2010, 08:23 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You might want to try the the parted command (parted /dec/sdb) and see if you can use the "rescue" command (use help rescue for syntax) to recreate you disk partition(s). (You need to be "root" to run parted.)
 
Old 06-02-2010, 08:09 PM   #7
the_ultimate_samurai
Member
 
Registered: Jan 2006
Distribution: debian-lenny
Posts: 37

Original Poster
Rep: Reputation: 15
hmm it seems to have resolved itself. after i plugged the sata cable back in (as i had some work to do on another HDD, dont worry im fairly sure i didnt break it...) and turned it on, then turned it off again properly and removed the cable...it worked...bios musta gotten all confused by the sudden removal of a sata cable...
 
  


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
silo read error on block <number>... results in a short read peterlowrie Linux - Hardware 0 02-07-2010 07:39 PM
fsck.ext3: Attempt to read block from filesystem trouble dolphans1 Mandriva 12 10-07-2009 04:30 AM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
Error reading block ... resulted in short read shadowrise Linux - Hardware 1 12-29-2006 08:15 AM
fsck error (read from fs resulted in short read) NeoKaiserSigma Linux - General 0 04-05-2005 06:24 PM

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

All times are GMT -5. The time now is 12:58 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