LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-26-2008, 02:25 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Powerful Linux Data Recovery, whcih program??


Hello,
To fix a hdd ext3 crash, I tried testdisk but it cannot do deep job or much actually.

Is there any non free programs or opensources programs to fix our harddisk crashes, when it happens ??

The testdisk program after deep searching gives me two possibilities of my crashed (ext3-20gb ext3-140gb swap-855mb) ; the testdisk after depe seeking tells me :

/dev/hdi 160GB / 149 Gib CHS 19457 255 63

linux 0 1 1 2331 254 63 37463517
hpfs ntfs 0 1 1 19456 254 63 312576642
linux swap 2332 2 1 2435 254 63 1670634
linux 2436 1 1 19456 254 63 273442302

happy tux

Last edited by frenchn00b; 04-27-2008 at 07:08 AM.
 
Old 04-26-2008, 03:25 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Use fsck.ext3. See:

man fsck

--------------------
Steve Stites
 
Old 04-26-2008, 03:27 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by jailbait View Post
Use fsck.ext3. See:

man fsck

--------------------
Steve Stites
thanks, but well the thing is that the headers of the harddisk are totally crashed. the harddisk is partitionned in 3 partitions : ext3 ext3 and a swap, but the linux cannot see them at all...

would fsck work in such case ?

it says:
Quote:
SYNOPSIS
fsck [ -sAVRTNP ] [ -C [ fd ] ] [ -t fstype ] [filesys ... ] [--] [ fs-specific-options ]

DESCRIPTION
fsck is used to check and optionally repair one or more Linux file systems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr,
/home), or an ext2 label or UUID specifier (e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Normally, the fsck program will try to handle filesystems on
different physical disk drives in parallel to reduce the total amount of time needed to check all of the filesystems.
 
Old 04-26-2008, 03:38 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by frenchn00b View Post
thanks, but well the thing is that the headers of the harddisk are totally crashed. the harddisk is partitionned in 3 partitions : ext3 ext3 and a swap, but the linux cannot see them at all...

would fsck work in such case ?

it says:
Use testdisk to get the partition table straightened out and then use fsck to fix the file systems once the partitions are OK.

If you can't get testdisk to fix the partition table then you are probably out of luck.

-------------------
Steve Stites
 
Old 04-26-2008, 04:52 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
No, you're not out of luck, try foremost.

Also, do search the forums a bit, I've posted this before, for sure at least 2-3 times.
 
Old 04-27-2008, 03:51 AM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Wink

Quote:
Originally Posted by jailbait View Post
Use testdisk to get the partition table straightened out and then use fsck to fix the file systems once the partitions are OK.

If you can't get testdisk to fix the partition table then you are probably out of luck.

-------------------
Steve Stites
TESTDISK:

nope
testdisk do not see the in between partition ext3
It confuse the two ext3 in one, looks like (deeper search);
or he says it's a ntfs with wrong size a bit. When you say it's a 83 type partition (the in between), it tells you that you that no data in it. Also the testdisk, I am not sure that he let me write those 3 partitions since it did see not much. ... pffff not enough possibility with that tool.
I am wondering why it is so famous. Just simple headers crash and the testdisk is not capable of fixing. The data are just messed up in the disk (full 100 pct), that's why the harddisk crash happened (and no regular fsck)).

I'll try the alternative ... you proposed. lot of luck you told me/passed by !!
I hope there is more ... welll in case this one does not do the job... Let's hope !

Happy Tux (even, out of server) !
 
Old 04-27-2008, 04:19 AM   #7
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by H_TeXMeX_H View Post
No, you're not out of luck, try foremost.

Also, do search the forums a bit, I've posted this before, for sure at least 2-3 times.
Installed. Well ... foremost recovers from a disk image
I just would like to reset the 20GB / 140GB / 855MB, write and then to read files of the cluster per cluster the middle partition and write the partition file header... (on real disk)... (since not big crash)

Code:
SYNOPSIS
       foremost[-h][-V][-d][-vqwQT][-b<blocksize>][-o<dir>] [-t<type>][-s<num>][-i<file>]

BUILTIN FORMATS
       Recover files from a disk image based on file types specified by the user using the -t switch.

       jpg    Support for the JFIF and Exif formats including implementations used in modern digital cameras.

       gif
 
Old 04-27-2008, 07:07 AM   #8
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by H_TeXMeX_H View Post
No, you're not out of luck, try foremost.

Also, do search the forums a bit, I've posted this before, for sure at least 2-3 times.
The testdisk program after deep searching gives me two possibilities.
the testdisk after depe seeking tells me :

/dev/hdi 160GB / 149 Gib CHS 19457 255 63

linux 0 1 1 2331 254 63 37463517
hpfs ntfs 0 1 1 19456 254 63 312576642
linux swap 2332 2 1 2435 254 63 1670634
linux 2436 1 1 19456 254 63 273442302

Is there any way to write something like :
a-20gb ext3/ b-140gb ex3/ and c- linux swap
like I had with an alternative program ?

thanks
 
Old 04-27-2008, 08:03 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Filling up a disk to onehundred percent doesn't kill the partition table, so maybe explain in detail what you really did. What version of Testdisk are you running? Where are you running it from? Another on-disk distro or Live CD? Was this drive previously partitioned differently (so the NTFS isn't a programmatical glitch)? Was it ever (re)partitioned with some Windows tool like Partition Magic or other (partition order)? Did the quick scan ever show any partitions marked in green? If you know (verify!) the disk geometry, does setting it explicitly show other results? Did you check the advanced options like expert mode, boundaries and partial cylinders before doing a deep search? Can you run deep mode again with the "/log" setting, upload or pastebin the log somewhere and post the URI here?


Quote:
Originally Posted by H_TeXMeX_H View Post
No, you're not out of luck, try foremost.
Foremost is for header and footer-based file recovery, not for partition table recovery, AFAIK. Maybe you got confused because of Testdisks companion app Photorec which is kinda like Foremost?

Last edited by unSpawn; 04-27-2008 at 08:05 AM.
 
Old 04-27-2008, 09:44 AM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by unSpawn View Post
Foremost is for header and footer-based file recovery, not for partition table recovery, AFAIK. Maybe you got confused because of Testdisks companion app Photorec which is kinda like Foremost?
Yes, I know that, I was responding mostly to this comment:

Quote:
Originally Posted by jailbait
If you can't get testdisk to fix the partition table then you are probably out of luck.
I was saying, you're not quite out of luck yet if testdisk doesn't work. You can still recover files from the disk with foremost. That's all. First, try to use testdisk, that would be the best way to recover your data, but often it doesn't work, in which case use foremost to get the files off of there.
 
Old 04-27-2008, 01:27 PM   #11
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by unSpawn View Post
Filling up a disk to onehundred percent doesn't kill the partition table, so maybe explain in detail what you really did. What version of Testdisk are you running? Where are you running it from? Another on-disk distro or Live CD? Was this drive previously partitioned differently (so the NTFS isn't a programmatical glitch)? Was it ever (re)partitioned with some Windows tool like Partition Magic or other (partition order)? Did the quick scan ever show any partitions marked in green? If you know (verify!) the disk geometry, does setting it explicitly show other results? Did you check the advanced options like expert mode, boundaries and partial cylinders before doing a deep search? Can you run deep mode again with the "/log" setting, upload or pastebin the log somewhere and post the URI here?



Foremost is for header and footer-based file recovery, not for partition table recovery, AFAIK. Maybe you got confused because of Testdisks companion app Photorec which is kinda like Foremost?
I used knoppix live cd, and then in /tmp downloaded teh wip 6.10
the log is not saying much since nothing is done by testdisk
by the way which log / where is the log ?

testdisk.log says:
Code:
Fri Apr 25 19:44:25 2008
Command line: TestDisk

TestDisk 6.9, Data Recovery Utility, February 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Linux version (ext2fs lib: 1.39, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20070512)
Hard disk list
Disk /dev/hdf - 730 MB / 696 MiB - CHS 23 255 63 (RO), sector size=2048 - LITE-ON DVDRW SHM-165P6S
Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63, sector size=512 - ATA MAXTOR STM325082


TestDisk exited normally.
made with 6.9 that day.

all went super until harddisk reached 100pct with downloading a big then problem started ;
I had a .dmrc error at the gdm and segmentation. I used mv and rm command lines to make bit space in my harddisk.
i removed lot of games deleted ISO cdroms. and rebooted again
still that .dmrc at gdm boot, did e2fsck and all disk got crashed.

If 100pct isnt for something, well, not true, since the pc is runnign since 3 years (lower than 100pct full) (/home went 100pct full).

Last edited by frenchn00b; 04-27-2008 at 01:32 PM.
 
Old 04-27-2008, 04:48 PM   #12
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 H_TeXMeX_H View Post
I was saying, you're not quite out of luck yet if testdisk doesn't work.
I see, other angle.


Quote:
Originally Posted by frenchn00b View Post
testdisk.log says
It doesn't list any disk with a capacity of 160GB.


Quote:
Originally Posted by frenchn00b View Post
did e2fsck and all disk got crashed.
Can you recall if you ran fsck in automatic mode? Any errors it spat out? What does "all disk got crashed" mean? You mean *during* fscking the disk? Any crash messages?

And was this drive previously partitioned differently (so the NTFS isn't a programmatical glitch)? Was it ever (re)partitioned with some Windows tool like Partition Magic or other (partition order)? Did analysing with testdisk ever mark any partitions green? If you know (verify!) the disk geometry, does setting it explicitly show other results? Did you check the advanced options like expert mode, boundaries and partial cylinders before doing a deep search?
 
Old 04-28-2008, 02:22 PM   #13
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by unSpawn View Post
I see, other angle.



It doesn't list any disk with a capacity of 160GB.



Can you recall if you ran fsck in automatic mode? Any errors it spat out? What does "all disk got crashed" mean? You mean *during* fscking the disk? Any crash messages?

And was this drive previously partitioned differently (so the NTFS isn't a programmatical glitch)? Was it ever (re)partitioned with some Windows tool like Partition Magic or other (partition order)? Did analysing with testdisk ever mark any partitions green? If you know (verify!) the disk geometry, does setting it explicitly show other results? Did you check the advanced options like expert mode, boundaries and partial cylinders before doing a deep search?
Thanks! Well I try to give a reply asap of that. I am trying again...
Oh .. I have a btw-question for you, Unspaw, since you are expert in replying difficult linux-questions. I just installed a linux pc with a very large flat screen, with great contrast (samsung), on my big fridge in my kitchen... looks like hi-tech kitchen Well would you know if there is a way that I can dictate with voice to my fridge (well the pc next to) my shopping-list. would you know a lightweight possibility (since you know so much with linux) that would possibly work (ie a voice recognition with learning would be greatest (not a wined DragonNat.Speaking))?

Last edited by frenchn00b; 04-28-2008 at 02:24 PM.
 
  


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
Looking for a data recovery program jacatone Linux - Newbie 5 09-20-2007 04:22 PM
hdd recovery program that let you choose which data to getback? frenchn00b Linux - Newbie 2 07-21-2007 06:26 AM
anybody knows a good data recovery program that runs on linux? anon104 Linux - Software 4 06-04-2007 03:08 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM
Need Data Recovery Program ghrmn Linux - Software 0 10-08-2003 07:37 AM

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

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