View previous topic :: View next topic |
Author |
Message |
koho Tux's lil' helper

Joined: 29 Jan 2005 Posts: 126 Location: In my room
|
Posted: Fri Jun 23, 2006 7:27 pm Post subject: usb hd with error on logical block 0 |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55274 Location: 56N 3W
|
Posted: Fri Jun 23, 2006 8:28 pm Post subject: |
|
|
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 |
|
 |
koho Tux's lil' helper

Joined: 29 Jan 2005 Posts: 126 Location: In my room
|
Posted: Fri Jun 23, 2006 10:19 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55274 Location: 56N 3W
|
Posted: Fri Jun 23, 2006 11:14 pm Post subject: |
|
|
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 |
|
 |
|