Recovery firebird file from degraded Raid

How to use TestDisk to recover lost partition
Message
Author
chencho
Posts: 7
Joined: 27 Apr 2012, 15:17

Recovery firebird file from degraded Raid

#1 Postby chencho » 27 Apr 2012, 15:21

Hi all.

I have a trouble with my soft raid (ubuntu).

sda have died, and sdb present bad sectors.

sdb wont to boot, only into grub rescue mode, and i cannot access my files.

Finally i use photorec to recover my files (only needs 2 firebird files, fdb) but into filetype to select, i check fdb (seems asigned to navision files) and nothing is recovered.

If i check doc, pdf or other files, they are recover ok, but not fdb files (wich is the only thing i need)

Any tip?

Sponsored links

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Recovery firebird file from degraded Raid

#2 Postby remy » 01 May 2012, 17:15

was it a raid1 ?

what does give

Code: Select all

sudo mdadm --examine /dev/sdb1


Did you also tried to scan your disk with testdisk ? It should be able to find your partition inside the raid volume, and whil listing with "P", you then may copy your 2 files where you want.

For photorec option : what does give

Code: Select all

./fidentify a_firebird_file
J'ai pour habitude d'aller au bout de l'aide que j'apporte. Si vous pensez que je vous ai abandonné, et que je ne l'ai pas fait explicitement, c'est que votre message est enfoui avec d'autres. Relancez-moi (modérément) par mail.

chencho
Posts: 7
Joined: 27 Apr 2012, 15:17

Re: Recovery firebird file from degraded Raid

#3 Postby chencho » 03 May 2012, 07:47

Yes, its a raid1

I attach sdb to another ubuntu and say insufficient disks to créate raid (or something else)

Fidentify says unknow

Im going to see with testdisk

chencho
Posts: 7
Joined: 27 Apr 2012, 15:17

Re: Recovery firebird file from degraded Raid

#4 Postby chencho » 03 May 2012, 12:19

sudo mdadm --examine /dev/sdb2 said:

(...)
Raid Level: Unknow
Raid devices: 0
Total devices: 1
(...)
Active devices: 0
Working devices: 1
Failed devices: 0
Spare devices: 1
(...)

Testdisk cannot show me the files, it shows

D Linux (can select P option, shows ext4 as filesystem)
D Raid (same data as "Linux", but cannot select P and filesystem is md127)
* Swap

When press P with Linux selected shows "Filesystem may be damage"

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Recovery firebird file from degraded Raid

#5 Postby remy » 03 May 2012, 14:24

May you give precision about "sda have died"... What does exactely happened ?

May you also give the full mdadm report of --examine, using "code" template :
[ code ] bla bla bla [ / code ] (used without spaces) shows :

Code: Select all

bla bla bla
J'ai pour habitude d'aller au bout de l'aide que j'apporte. Si vous pensez que je vous ai abandonné, et que je ne l'ai pas fait explicitement, c'est que votre message est enfoui avec d'autres. Relancez-moi (modérément) par mail.

chencho
Posts: 7
Joined: 27 Apr 2012, 15:17

Re: Recovery firebird file from degraded Raid

#6 Postby chencho » 03 May 2012, 14:28

In the office have many power outages, apparently sda disk has many bad sectors and finally not even start

Sdb is supposed to be able to boot, but it does so only grub_rescue, so I can add another disk to the raid, also has bad clusters sdb at the end of the disc.

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Recovery firebird file from degraded Raid

#7 Postby remy » 03 May 2012, 14:31

Problem is that in a raid1 if you have badsectors on sdb, it was perhaps out of raid before sda... that's why I need full report of mdadm --examine.
J'ai pour habitude d'aller au bout de l'aide que j'apporte. Si vous pensez que je vous ai abandonné, et que je ne l'ai pas fait explicitement, c'est que votre message est enfoui avec d'autres. Relancez-moi (modérément) par mail.

chencho
Posts: 7
Joined: 27 Apr 2012, 15:17

Re: Recovery firebird file from degraded Raid

#8 Postby chencho » 03 May 2012, 14:45

instead code... better an image :)

Image

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Recovery firebird file from degraded Raid

#9 Postby remy » 03 May 2012, 22:55

In my opinion, copy/paste is better, but that's OK.
So :
1/ Curious that your disk is a spare in a "unrecognized raid". I would say that it could be the state of a disk while first synchro.
2/ The mdadm status has never been updated : No problem, or... no problem detected.

Knowing that sda has had a problem (you told it's dead), sdb should know that and tell "sda missing".
It's perhaps a possible that sdb was out of the raid before sda was dead. I can't be sure, I would need sda for that...

A way to know is : find your firebird file and check how old it is.

Do you have a file made with same software version ? May you send it to me ?
J'ai pour habitude d'aller au bout de l'aide que j'apporte. Si vous pensez que je vous ai abandonné, et que je ne l'ai pas fait explicitement, c'est que votre message est enfoui avec d'autres. Relancez-moi (modérément) par mail.


Return to “Partition Recovery”

Who is online

Users browsing this forum: No registered users and 0 guests