Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Backing up a QNX 4.25G hard drive: (4 Items)
   
Backing up a QNX 4.25G hard drive  
Hi:

We have been using a DAT tape drive to backup our QNX 4.25G hard drive.This has worked well for us but the tape drive is
 on it's last legs and we were looking at trying to back up the hard drive to a USB mounted external hard drive. The USB
 drive was set up to have a 20GB FAT32 partition.
We need to back up about 8GB of info so 20GB is more than enough room. 
We were  using a pax command in conjunction with a find command to control what directories to exclude and ended up with
 a tar file slightly larger than 2 GB.
However when we attempt to use tar to restore onto another QNX formatted hard drive we get a message indicating that it 
does not think the file is in tar format.
If we use the same command but only back up a smaller directory the restore using tar works.
Is there a file size restriction on FAT 32  partitions using a USB drive?

Also are there any other methods to backup a QNX 4.25G drive. We really like the notion of backing up to a USB drive and
 then being able to restore to another QNX hard drive on a different computer.  
Re: Backing up a QNX 4.25G hard drive  
2GB is the file size limit under QNX4, so if you create a file that is
less than 2GB on the USB drive, is it readable on another machine?




On 2013-01-23 11:04 AM, "Kevin Warkentin" <community-noreply@qnx.com>
wrote:

>Hi:
>
>We have been using a DAT tape drive to backup our QNX 4.25G hard
>drive.This has worked well for us but the tape drive is on it's last legs
>and we were looking at trying to back up the hard drive to a USB mounted
>external hard drive. The USB drive was set up to have a 20GB FAT32
>partition.
>We need to back up about 8GB of info so 20GB is more than enough room.
>We were  using a pax command in conjunction with a find command to
>control what directories to exclude and ended up with a tar file slightly
>larger than 2 GB.
>However when we attempt to use tar to restore onto another QNX formatted
>hard drive we get a message indicating that it does not think the file is
>in tar format.
>If we use the same command but only back up a smaller directory the
>restore using tar works.
>Is there a file size restriction on FAT 32  partitions using a USB drive?
>
>Also are there any other methods to backup a QNX 4.25G drive. We really
>like the notion of backing up to a USB drive and then being able to
>restore to another QNX hard drive on a different computer.
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98744
>To cancel your subscription to this discussion, please e-mail
>general-qnx4-unsubscribe@community.qnx.com

Re: Backing up a QNX 4.25G hard drive  
Hi Hugh:

  This is something we we in the midst of trying out.
  We wanted to first determine if we were looking at a size limitation 
which it appears as though we are.

  I will try to split up the backups and report back.

 - Thanks,
        Kevin



Hugh Brown <community-noreply@qnx.com> 
01/23/2013 11:19 AM
Please respond to
general-qnx4@community.qnx.com


To
"general-qnx4@community.qnx.com" <general-qnx4@community.qnx.com>
cc
Zig C Kazmierczak/CAABB/ABB@ABB, Zig C Kazmierczak/CAABB/ABB@ABB
Subject
Re: Backing up  a QNX 4.25G hard drive






2GB is the file size limit under QNX4, so if you create a file that is
less than 2GB on the USB drive, is it readable on another machine?




On 2013-01-23 11:04 AM, "Kevin Warkentin" <community-noreply@qnx.com>
wrote:

>Hi:
>
>We have been using a DAT tape drive to backup our QNX 4.25G hard
>drive.This has worked well for us but the tape drive is on it's last legs
>and we were looking at trying to back up the hard drive to a USB mounted
>external hard drive. The USB drive was set up to have a 20GB FAT32
>partition.
>We need to back up about 8GB of info so 20GB is more than enough room.
>We were  using a pax command in conjunction with a find command to
>control what directories to exclude and ended up with a tar file slightly
>larger than 2 GB.
>However when we attempt to use tar to restore onto another QNX formatted
>hard drive we get a message indicating that it does not think the file is
>in tar format.
>If we use the same command but only back up a smaller directory the
>restore using tar works.
>Is there a file size restriction on FAT 32  partitions using a USB drive?
>
>Also are there any other methods to backup a QNX 4.25G drive. We really
>like the notion of backing up to a USB drive and then being able to
>restore to another QNX hard drive on a different computer.
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post98744
>To cancel your subscription to this discussion, please e-mail
>general-qnx4-unsubscribe@community.qnx.com





_______________________________________________

General
http://community.qnx.com/sf/go/post98746
To cancel your subscription to this discussion, please e-mail 
general-qnx4-unsubscribe@community.qnx.com

Attachment: HTML sf-attachment-mime9220 3.82 KB
Re: Backing up a QNX 4.25G hard drive  
Hi Kevin,

Try the attached script, it copies from one drive to another regardless of the size.

Erick

Readme.txt

Begin
File:           QNX_drive_copy.gz
Description:    Copies one drive to another.
Keywords:       duplicate hard drive disk copy image format master
Version:        1.0     
Entered-date:   12-Jan-1998
Author:         Maurice Cinquini <cinquini@alamar-usa.com> of Philips DVS.
Ported-by:	
Original-site:	
Copying-policy: This program is public domain
Supplemental:
   This program creates logical copies of hard drives, as opposed to "dd"
   image copies.  Therefore it does not rely on matching drive geometeries,
   does not copy unused parts of the drive and the copy is defragmented.
   This script assumes the drives use Logical Block Addressing (LBA) mode,
   and are only one partition, and that partition is QNX of course.
   Licenses and "bootability is preserved.  A log of is saved in /tmp/log.

   Only tested with QNX 4.24, single partition, LBA, IDE drives only.
   The complete procedure to copy drives involves the following steps:
   1. Insert the master (source) and slave (blank) hard drives.
      Depending of the machine setup, slave drives usually needs to
      have a jumper removed.
   2. Boot QNX in a safe mode where there are no programs running that
      may asynchronously write to the hard drive during the following
      procedure.  If you can't guarantee this, you should use a QNX
      boot floppy and mount the hard drive manually.
   3. Login as root.
   4. Verify the Master drive has the kernel built to force LBA option
      during boot up.  Check /boot/build/hard.?? has the line
      "Fsys.eide fsys -h 64,63", (i.e, sectors,heads for LBA mode.)
   5. Run this script.
End
Attachment: Text QNX_drive_copy.gz 1.85 KB