OpenQNX :: The QNX Community Portal

Jul 25, 2008 - 04:45 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 24 unlogged users and 3 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jalonso
Post subject: recorver data  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: recorver data  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
jalonso
Post subject: Re: recorver data  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: Re: recorver data  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
David Porta
Post subject: Re: recorver data  PostPosted: Oct 15, 2007 - 07:35 AM
Guest





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
 
   
Reply with quote Back to top
jalonso
Post subject: Re: recover data  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
David Porta
Post subject: Re: recover data  PostPosted: Oct 15, 2007 - 10:52 AM
Guest





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.
 
   
Reply with quote Back to top
Colin Burgess
Post subject: Re: recover data  PostPosted: Oct 15, 2007 - 01:18 PM
Guest





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
 
   
Reply with quote Back to top
maschoen
Post subject: Re: recover data  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Mario Charest
Post subject: Re: recover data  PostPosted: Oct 16, 2007 - 01:46 PM
Guest





"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.

>
 
   
Reply with quote Back to top
maschoen
Post subject: RE: Re: recover data  PostPosted: 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 Wink.
Now cp /dev/hd0t77 hdimage, where hdimage is on hd0t78 does have a better chance.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Rick Lake
Post subject: Re: recover data  PostPosted: Oct 16, 2007 - 07:05 PM
Guest





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

;-)
 
   
Reply with quote Back to top
Mario Charest
Post subject: Re: Re: recover data  PostPosted: Oct 18, 2007 - 06:07 PM
Guest





"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 Wink.
Now cp /dev/hd0t77 hdimage, where hdimage is on hd0t78 does have a
better chance.
 
   
Reply with quote Back to top
jalonso
Post subject: Re: recover data  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.