Skip navigation.
Home
The QNX Community Portal

View topic - recorver data

recorver data

Read-only archive of qnx.newuser (Installation, configuration and administration of the QNX Neutrino or QNX Momentics environments) at inn.qnx.com

recorver data

Postby jalonso » Wed Oct 10, 2007 10:06 am

Hi everybody!

I had a hard disk with QNX 6.2.1 and I had a fdisk. Is there any utility
or program to recover the lost data?

Thanks in advance.

Jorge
jalonso
Active Member
 
Posts: 20
Joined: Tue Mar 07, 2006 4:27 pm

RE: recorver data

Postby maschoen » Wed Oct 10, 2007 1:40 pm

If all you did was remove the entry in the partition table, it is possible to scan the disk to find where the begining of the parttion was originally. If you dinit'd the disk, or lost it in some other way, eg. 'rm', it may still be recoverable. I think the general utility is spatch, and there may be a more specific un-rm around.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: recorver data

Postby jalonso » Thu Oct 11, 2007 9:38 am

Hello again!

My problem is that I can't boot the hard disk because I had a fdisk.
Then I will need to analize the hard disk from another pc with some
utility or program. Moreover, I have no knowledge about recover lost
data, then I'd like to use any easy program (it must examine the hard
disk and repair automatically the problem).

Do you know any program to do this task?

Thank you very much.
jalonso
Active Member
 
Posts: 20
Joined: Tue Mar 07, 2006 4:27 pm

RE: Re: recorver data

Postby maschoen » Thu Oct 11, 2007 3:15 pm

I don't know what the following phrase means.
"I had a fdisk".
Since you've repeated it twice, I guess you must mean something specific, so please tell us what that is.

In my previous post I was guessing that you removed the partition with fdisk.
If you have another PC running QNX, you could use it to analyse the problem disk.
You will not find repair programs under any other OS that will work with QNX.
You will not find an easy program, nor one that will do repairs automatically, with one
exception. If you have a fairly coherent file system, meaning a root directory, then chkfsys will clean it up. It will not find and recover lost data, but instead will make it coherently lost.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: recorver data

Postby David Porta » Mon Oct 15, 2007 7:35 am

If you just lost your partitioning table, mount the hard disk in another qnx
system and mount it.
Then it will appear as hd1 (or something similar).
Using fdisk, you can restore the partitioning table. If you don't know where
your old qnx started (Start Cylinder) you can find it:
Qnx partition starts with (in hexa) 49 03 51 4E 58 , in ascii I [love] QNX.
With this you can find where your old partition starts


"Jorge" <jalonso@ain.es> escribió en el mensaje
news:fei839$q0k$1@inn.qnx.com...
Hi everybody!

I had a hard disk with QNX 6.2.1 and I had a fdisk. Is there any utility
or program to recover the lost data?

Thanks in advance.

Jorge
David Porta
 

Re: recover data

Postby jalonso » Mon Oct 15, 2007 10:23 am

As you said, I removed the partition with fdisk.

I will try to do the things you have told me. If I restore the hard disk
or recover any lost data I will tell you.

Thank you very much.
jalonso
Active Member
 
Posts: 20
Joined: Tue Mar 07, 2006 4:27 pm

Re: recover data

Postby David Porta » Mon Oct 15, 2007 10:52 am

You can use spatch to find the starting sentence...

"Jorge" <jalonso@ain.es> escribió en el mensaje
news:fevetu$2go$1@inn.qnx.com...
As you said, I removed the partition with fdisk.

I will try to do the things you have told me. If I restore the hard disk
or recover any lost data I will tell you.

Thank you very much.
David Porta
 

Re: recover data

Postby Colin Burgess » Mon Oct 15, 2007 1:18 pm

You should probably mount it read-only too to preven any corruption should you get things a bit wrong...

David Porta wrote:
You can use spatch to find the starting sentence...

"Jorge" <jalonso@ain.es> escribió en el mensaje
news:fevetu$2go$1@inn.qnx.com...
As you said, I removed the partition with fdisk.

I will try to do the things you have told me. If I restore the hard disk
or recover any lost data I will tell you.

Thank you very much.



--
cburgess@qnx.com
Colin Burgess
 

Re: recover data

Postby maschoen » Mon Oct 15, 2007 4:28 pm

Colin Burgess wrote:You should probably mount it read-only too to preven any corruption should you get things a bit wrong...


Better yet, make a duplicate of the disk, and work with the duplicate.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: recover data

Postby Mario Charest » Tue Oct 16, 2007 1:46 pm

"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> wrote in message
news:ff09pq$jat$1@inn.qnx.com...
Colin Burgesswrote:
You should probably mount it read-only too to preven any corruption
should you get things a bit wrong...


Better yet, make a duplicate of the disk, and work with the duplicate.

If you have a big enought disk you can "cp /dev/hd0 hdimage" and work on
fixing the image.

>
Mario Charest
 

RE: Re: recover data

Postby maschoen » Tue Oct 16, 2007 3:44 pm

Mario, presumably you don't mean cp /dev/hd0 hdimage, where hdimage is on hd0?
If that could be done, but it would require a disk with an infinite number of sectors ;-).
Now cp /dev/hd0t77 hdimage, where hdimage is on hd0t78 does have a better chance.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: recover data

Postby Rick Lake » Tue Oct 16, 2007 7:05 pm

Mario Charest <root@127.0.0.1> wrote:
[...]
If you have a big enought disk you can "cp /dev/hd0 hdimage" and work on
fixing the image.

No space left on device

;-)
Rick Lake
 

Re: Re: recover data

Postby Mario Charest » Thu Oct 18, 2007 6:07 pm

"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> wrote in message
news:ff2n4f$bev$1@inn.qnx.com...
Mario, presumably you don't mean cp /dev/hd0 hdimage, where hdimage is
on hd0?

hdimage would be the name of file. Then you can use mount imagefile /hd1 to
mount it. Before mouting it you can use spatch on the imagefile
to modify it. If you screw up the image file, no big deal, you copy the HD
again and start all over.

If that could be done, but it would require a disk with an infinite
number of sectors ;-).
Now cp /dev/hd0t77 hdimage, where hdimage is on hd0t78 does have a
better chance.
Mario Charest
 

Re: recover data

Postby jalonso » Tue Oct 23, 2007 3:53 pm

Hello!

Finally, I have given up trying to fix the problem of the hard disk. I
can´t waste more time in that purpose.

Thank you very much.

Jorge.
jalonso
Active Member
 
Posts: 20
Joined: Tue Mar 07, 2006 4:27 pm


Return to qnx.newuser

Who is online

Users browsing this forum: No registered users and 1 guest