SCO, SCO-unix (x86), 5.0, Compaq proliant 1600 w/ 9 GB

What is the best way to duplicate a 9GB to another for replacement of the SCO unix disk in a single disk system?
kevincentAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
If you have two (physically) identical disk drives, you may use "dd" to copy
from one disk to another.
Something like this should do the trick:
  dd if=/dev/rhd00 of=/dev/rhd10 bs=8192k
Replace rhd00 and rhd10 with the correct names for your first (source) and
second (target) hard disk, respectively.
The naming scheme for SCO disk drives is
  [r]hdxy
where a leading "r" denotes the disk drive as a raw-device, x is the drive
number (starting from 0) and y the partition number (0 is the whole disk).


If you want to swap the original drive by a different (preferrably larger) one,
you will have to copy the filesystems one by one and also have to make
sure that the boot blocks get being transferred.
a) Partition you new (target) disk using SCO's fdisk
b) Create the filesystems as needed
c) Install the boot blocks on your new disk
      # instbb hd /dev/hd0a
d) To transfer the data, you may use tar or cpio.
    Mount the new disk's root filesystem under /mnt
      # mount /dev/hd11 /mnt
    and create the mount points for any other filesystems
      # mkdir /mnt/usr /mnt/export /mnt/whatever
    Now, mount all the other filesystems
      # mount /dev/hd14 /mnt/usr
           . . .
    Using tar, you will run a command like this:
      # cd /
      # tar cf - . | ( cd /mnt ; tar xvf - )

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kevincentAuthor Commented:
Thank You for your response.  I ran the dd command as follows:
dd if=/dev/dsk/0s0 of=/dev/dsk/1s0  and the process ran over 21 hours without completing.  I interupted it with a ctrl alt del and got a statement about the number of in / out records.  I then swapped the drive slots (moved id 1 to id 0 slot and booted the system sucessfully.  I would like to be able to do a disk to disk "backup" each Saturday using this method. Just wish the commnad would complete.  These drives are scsi 9.1Gb disks with barely 2Gb used space. And comments would be welcome.  
0
mikelfritzCommented:
put the bs=8192  , or maybe higher.

the default block size is far too small for disk to disk.
0
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
try to enlarge the size of the copy buffer to 128 KB)
  bs=131072k
You may try even larger block sizes.

Ideally, you would use the size of a whole track of your disk
0
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
One warning notice: If you "dd" from a live system disk to another disk you may get
file system inconsistencies as data gets changed during copy !!
Make sure to run at least a "fsck" on the copied file systems on your target drive.
0
Chris BRetiredCommented:
Identical drives? Ghost will do it perfectly well.

Chris B
0
kevincentAuthor Commented:
I tried ghost, the compaq array controller driver was not available on the ghost distribution cd for SCO. I have not been able to find it. And being a sco/unix newbee i don't know the commands to do simple stuff like copy and such.
0
kevincentAuthor Commented:
Wgat syntax would i use to FSCK the drive that i copied?  Assume it is /dev/dsk/1s0.
0
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
# fsck -y /dev/dsk/1s0     (but this is only one partition / file system)
If you have more than one file system youwill have to do it for all of them
0
kevincentAuthor Commented:
I took the default 5 partitions on the disk and bielieve I only have two filesystems: /dev/root and /dev/boot
0
kevincentAuthor Commented:
RE:
try to enlarge the size of the copy buffer to 128 KB)
  bs=131072k
You may try even larger block sizes.

Ideally, you would use the size of a whole track of your disk

How can I find the size of a whole track?  The geometry of the disk is as follows: Cyls=1106  hds=255  sectors=63
0
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
calculate size in bytes: number-of-heads * sectors-per-track * size-of-sector

255 * 63 * 512

This looks like a LBA setting -- not the real physical characteristics of the drive, though.
0
kevincentAuthor Commented:
so be it
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.