Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
About Me Member Deviously Deviant SkullamortisMale/Brazil Recent Activity Deviant for 1 Year
Needs Premium Membership
Statistics 5 Deviations
2 Comments
206 Pageviews

Dying Hard-Disk

Wed May 6, 2009, 6:17 AM
Do you have a backup of your data ? No ? If you are emotionally attached to what's on your hard disk , you should have one.

My fucking hard-disk is fucking dying !! Shit ! I wasnt expecting for this !

I was on MSN , firefox , audacious , bla bla bla , 4chan (lulz). So I got I/O errors and every command would not respond properly (A.K.A. I/O ERROR). I tried to soft-reboot... error ---> hard-reset.

OK. All partitions were recovered , except the /home !
Except the directory that all my personal stuff were in ! FUCK !

So. I tried :
fsck.ext3 /dev/sda7 ---> "blablabla zero lenght partition ?"
fsck.ext3 -y -b 32768 /dev/sda7 ---> "blablabla short write on block 1"
then tried to mount:
mount /dev/sda7 /home ---> "wrong partition ,option blablabla"
mount -t ext3 /dev/sda7 /home ---> "wrong partition ,option blablabla"

OK.
Decided to check dmesg:
...
[ 2120.684070] ata1.00: status: { DRDY ERR }
[ 2120.684071] ata1.00: error: { UNC }
...
[ 2120.687056] sd 0 0 [sda] Sense Key : Medium Error [current] [descriptor]
[ 2120.687060] Descriptor sense data with sense descriptors (in hex):
[ 2120.687061] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ 2120.687066] 01 17 f1 37
[ 2120.687069] sd 0 0 [sda] Add. Sense: Unrecovered read error - auto reallocate failed
[ 2120.687073] end_request: I/O error, dev sda, sector 18346295
...

Nice huh ? xD I was happy when I read that shit.

So. I tried compiling another kernel , as I thought that was a problem with the current kernel(2.6.28-r5) as I upgraded recently ( Kernel Regession )
No results...
So...
mkfs.ext3 -n /dev/sda7 OBS: DONT EVER FORGET THE "-n" OR YOUR PARTITION WILL BE ERASED !!!
to see the superblocks.
I tried 3 more superblocks with "fsck.ext3 -y -b [superblock] /dev/sda7"
didnt work.
Rebooted a dozen times and nothing.

Hard-Drive EPIC FAIL

SOLUTION:
BACKING UP WHILE STILL HAVE TIME. Thats why I recommend having another hd for some sort of backup...
So , if you are in the same trouble , try this.

mkfs.[type] -n /dev/[device]
See the list of superblocks.
In case you use a 4096k allocation, then you must multiply the number of superblocks by 4. So a 32768 superblock will be 131072.

then "mount -o sb=131072 -t [type] /dev/[device] [mount point]"
In my case was "mount -o sb=131072 -t ext3 /dev/sda7 /home"
TADA !
Now you can do your backup.

S.M.A.R.T didnt help.
S.M.A.R.T was completely useless.
I just tried smartd when the problem was already there... so the tests didnt match the current state of the hard-drive. (short , long)

But , I recommend usind smartd on older hard-drives , as smartd could detect these problems when they occur , giving certainty that it is a hardware problem.

Hard-drives usualy have a 3-year guarantee.
I have some old hds here , like 10+ yrs old and no errors.
But dont expect your hd to be immortal and flawless... even if its new.

So... Good luck on your backups ! ^^

  • Listening to: Solitary Experiments - The edge of Life
  • Reading: Battle Angel Alita
  • Watching: FLCL
  • Playing: THE GAME. You just lost THE GAME.
  • Eating: Ramen
  • Drinking: Green Tea

deviantID

No deviantID yet.

Devious Info

  • Interests: All.
  • Favourite style of art: Traditional
  • Operating System: Optimized Linux Kernel 2.6.27-r8
  • Shell of choice: Bash, Korn
  • Skin of choice: Pale White lol.
  • Favourite game: Baldur's Gate 2
  • Favourite cartoon character: Victor Von Doom

deviantART Community Board

[x]

Comments


:iconpegorini:
Será que João continuará no DA por mais que um mês?

To be continued...

--
The bard ~~
:iconakalilith:
Thanks for the watch!! I really appreciate it.:flirty:

--
************************************
'In pencil we trust:pencil:':community:

Site Map