LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2005, 04:17 AM   #1
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Rep: Reputation: 30
Broken Hd Data recovering


I have had a bad experience with a broken hd.
So far i have been able to recover almost ( but not all ) data on the hd.
I report everything i did with the hope that it could be useful, my problem is with e2fsck and journal.

I haven't bought another hd to store the dd_rescue output because dd_rescue would take some months to recover the 150 gb home partition ( in 2 hours 20 MB... ), most of the data were backed up and hd is still in warranty.

In fact everything started with a grub 17 error.

I booted from another hd, then when i tried to mount the home partition ( ext3 ) i received the bad superblock error.

I found a way to discover where backup superblocks where ( be careful, and test it first to a floppy or a file before )

mkfs.ext2 -n /dev/hdb6

In the output there were superblock blocks.

Then it's possible to mount the filesystem, with the command ( as root )

mount -t ext2 -o ro,errors=continue,sb=163840 /dev/hdb6 /mnt/something

If it still gives error, you can try with something like

for i in $( cat Super.txt ) ; do mount -t ext2 -o ro,errors=continue,sb=$i /dev/hdb6 /mnt/something && break ; done

Where Super contains all the superblocks.

To copy files, i've used

cp -rpvf sourcedir destinationdir 2>>~/logfile.txt

With this i recovered almost every data, except quite new mails not yet backed up and other few things.
You can check reading logfile.txt what's still wrong.

So i have tried to check the filesystem with e2fsck, but i have been unable to do so

With

e2fsck -b superblock -c -C 0 /dev/hdb6

i obtain the following error concerning journal. I would like to skip journal check but i don't find a way to do so, and here is my problem.

e2fsck: Attempt to read block from filesystem resulted in short read controlland o il journal ext3 per /home
e2fsck 1.37 (21-Mar-2005)
/home: Attempt to read block from filesystem resulted in short read while readin g block 538

/home: Attempt to read block from filesystem resulted in short read lettura del superblocco del journal

Help is welcome.

Thank you in advance.
 
Old 09-29-2005, 10:56 AM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
You've done a lot so far and most of the below. Maybe look at this for other commands.
http://www.bellevuelinux.org/superblock
http://www.lib.hcmut.edu.vn/tldt/boo...ux/ch08_06.htm

This may not help in your case, but saved my HD problem before. Where you're at, I'd try anything.
http://www.stud.uni-hannover.de/user/76201/gpart/

good luck
 
Old 09-29-2005, 11:19 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
http://www.sleuthkit.org/
Let me give you this if it helps.
 
Old 09-29-2005, 01:28 PM   #4
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
I'll read them carefully looking for the right info and i'll try with the sleuthkit.

Thank you.
 
Old 09-30-2005, 03:00 PM   #5
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 295

Original Poster
Rep: Reputation: 30
Unfortunatly there's nothing interesting to my case .
 
  


Reply



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
recovering data from an old RAID -0 dominant Linux - Software 1 01-26-2005 02:42 AM
recovering data pirozzi Linux - General 5 11-30-2004 02:08 AM
recovering data... marsques Linux - General 18 09-01-2004 02:36 PM
Recovering Lost Data lawrencegoodman Linux - General 1 04-04-2004 12:57 PM
Recovering data CatSC Linux - Newbie 3 12-31-2003 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:28 PM.

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