Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb hd with error on logical block 0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
koho
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2005
Posts: 126
Location: In my room

PostPosted: Fri Jun 23, 2006 7:27 pm    Post subject: usb hd with error on logical block 0 Reply with quote

My external usb hd gives me this message
Code:

Buffer I/O error on device sda, logical block 0


Is there a way to tell the fs to avoid logical block 0 or must I buy a new hd?

Thank you
_________________
L'e' meio ber sforsa' che laorar de gusto
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55274
Location: 56N 3W

PostPosted: Fri Jun 23, 2006 8:28 pm    Post subject: Reply with quote

koho,

If the error is real, the drive is scrap. The partition table is stored there and cannot be moved.
The kernel reads that block to discover where the partitions are on the drive.

Is the error real though or do you have a software set up issue?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
koho
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2005
Posts: 126
Location: In my room

PostPosted: Fri Jun 23, 2006 10:19 pm    Post subject: Reply with quote

I think it's a real error, It was working hard all night long (amule+bittorrent) and probably it became too hot and something failed.
In the morning I found some errors and wasn't able to enter in it.
I had to save anything from lost+found after running fschk from an alternative superblock.
Actually I can open it with fdisk and write partitions, but I cannot do mke2fs since it gives me an error about not finding the block or something similar.
Then in dmesg I read this error.

How can I get to know if the error is fixable?

thank you
_________________
L'e' meio ber sforsa' che laorar de gusto
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55274
Location: 56N 3W

PostPosted: Fri Jun 23, 2006 11:14 pm    Post subject: Reply with quote

koho,

fdisk only reads and writes to sector 0. It would fail to read/write partition tables if sector 0 were bad.
Also you could not run fsck, since that is run on a filesystem contained on a parition and th find the partitions sector 0 must be read.

If you have recoverd all the data you need try the following
Code:
dd if=dev/sda of=dev/null
this reads the entire drive, to the first error.
It will use up a lot of the remaining life if the drive is bad.
If you need to make an image of the good bits of the drive google for dd_rhelp
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum