Skip navigation.
Home
The QNX Community Portal

View topic - QNX System Backup

QNX System Backup

For the old QNX2 and QNX4 RTOS

QNX System Backup

Postby Ferekikoo » Thu Feb 26, 2009 11:41 am

I work on system called (DANTAS) which works on QNX 4.25 OS.
It installed on new server and i need to make a backup image or something like GHOST Image in Windows OS so i can make a backup Hard Disk.
So Please help me in that issue knowing that i have less information about QNX system. :roll:
Ferekikoo
New Member
 
Posts: 1
Joined: Sun Jan 27, 2008 4:39 pm
Location: EG

RE: QNX System Backup

Postby maschoen » Thu Feb 26, 2009 4:48 pm

If you have disks with the same geometry (logically at least) then you can make a sector by sector copy. The only catch is with potentially bad sectors on the target where you have good ones on the source. With modern hard disks this is pretty much impossible.

A more flexible route is to archive all the files on the disk. This can be tricky as I've found pax does not want to copy /.boot and /.altboot. Instead I've had to first copy /.boot to some alternate name, eg. /dot.boot and during restore copy the files back. Another important issue has to do with licenses. If you have the later style license, they are just copied along in the /.licenses file. If you have the older licenses that are stored in "tricky" files in the /etc/licenses directory you will need to find a different strategy. Don't try to just copy these files, the copy will be incomplete. I can give you more information directly about this if you need it.

If you make an archive of the whole disk, you can compress it, and with luck it will fit on a CD or writable DVD. Otherwise a Hard drive will be needed. QNX won't burn the CD for you, but you can transfer the file to a Windows system and burn it there. Restoration would require some bootable version of QNX, eg. floppy or CD, and enough utilities to expand the archive onto the new target disk.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Postby ingraham » Fri Feb 27, 2009 8:04 pm

I gave step by step instructions back in '06 here:
http://www.openqnx.com/PNphpBB2-viewtopic-t8637-.html

But I think I did a better job in '07:
http://www.openqnx.com/PNphpBB2-viewtopic-t9005-.html

-James Ingraham
Sage Automation, Inc.
ingraham
Senior Member
 
Posts: 160
Joined: Wed Nov 05, 2003 2:25 pm
Location: Texas

Re: RE: QNX System Backup

Postby JDInfinity » Thu Mar 12, 2009 2:53 pm

maschoen wrote:If you have disks with the same geometry (logically at least) then you can make a sector by sector copy. The only catch is with potentially bad sectors on the target where you have good ones on the source. With modern hard disks this is pretty much impossible.


How can one test the drive for bad sectors then? Why don't new disks report errors? I remember that old disks always spilled out errors into the kernel log etc.. when read, write or some sectors failed. Turning that warnings off is just nonsense. (Dedicated to a well known hd manufacturer which happens to be the one who built my last broken harddisk which actually died without ever complaining about anything..)
JDInfinity
New Member
 
Posts: 7
Joined: Wed Mar 11, 2009 12:50 pm

RE: Re: RE: QNX System Backup

Postby maschoen » Thu Mar 12, 2009 3:39 pm

With either QNX 2 or QNX 4 you can use the dcheck utility. This will alert you to sectors that can't be read. Sometimes a sector can be read, but because it is marginal, writing to it will fail.

The reason new disks don't report any bad sectors is that internally they will reorganize them when possible. I believe the way this works is that when you write to a sector, the drive will check to make sure the data was written properly. If not, it will write the information to another sector and using internal tables re-number the sectors. This can cause some slow down due to seeking to a re-numbered sector but should usually be rare.

If your drive showed no warnings before dying it was most likely a controller failure having nothing to do with the media. It might also have been a head crash, which again has little to do with the media itself. Such a drive can be recovered. There's now a small industry that will do this in the $300-$500 range if your data is that valuable.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 1 guest