| Author |
Message |
|
|
Post subject: recorver data
Posted: Oct 10, 2007 - 10:06 AM
|
|
Active Member
Joined: Mar 07, 2006
Posts: 20
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: recorver data
Posted: Oct 10, 2007 - 01:40 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1045
|
|
| 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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recorver data
Posted: Oct 11, 2007 - 09:38 AM
|
|
Active Member
Joined: Mar 07, 2006
Posts: 20
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: recorver data
Posted: Oct 11, 2007 - 03:15 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1045
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recorver data
Posted: Oct 15, 2007 - 07: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...
Quote:
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
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 15, 2007 - 10:23 AM
|
|
Active Member
Joined: Mar 07, 2006
Posts: 20
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: 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...
Quote:
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.
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 15, 2007 - 01:18 PM
|
|
|
|
You should probably mount it read-only too to preven any corruption should you get things a bit wrong...
David Porta wrote:
Quote:
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 15, 2007 - 04:28 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1045
|
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 16, 2007 - 01:46 PM
|
|
|
|
"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> wrote in message
news:ff09pq$jat$1@inn.qnx.com...
Quote:
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.
> |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: recover data
Posted: Oct 16, 2007 - 03:44 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1045
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 16, 2007 - 07:05 PM
|
|
|
|
Mario Charest <root@127.0.0.1> wrote:
Quote:
[...]
If you have a big enought disk you can "cp /dev/hd0 hdimage" and work on
fixing the image.
No space left on device
;-) |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Re: recover data
Posted: Oct 18, 2007 - 06:07 PM
|
|
|
|
"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> wrote in message
news:ff2n4f$bev$1@inn.qnx.com...
Quote:
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.
Quote:
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.
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: recover data
Posted: Oct 23, 2007 - 03:53 PM
|
|
Active Member
Joined: Mar 07, 2006
Posts: 20
|
|
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. |
|
|
| |
|
|
|
 |
|
|