Discussion Locked

Unix Drive Duplication

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have a need to duplicate images on a Unix Solaris 7 system. We can use a disk drive copies, but would like a simpiler solution that would not require opening the unit.

We would like to use a product similar to the Ghost software that can be used in NT. Does anyone know of a way to boot and load an image from a floppy disk/network or a CD image?

13 replies

by ghislain.levesque

If you're talking about your boot disk, here is how to do it:
- Format your new drive excatly the same as the boot drive.
-mount your newd drive has /root2 (do the same if /usr is on a separate filesystem)
-use this command to copy your filesystem
ufsdump 0f - /|(cd /root2;ufsrestore rf -)
-install a boot block on the new drive
cd /usr/platform/`uname -i`/lib/fs/ufs
/usr/sbin/installboot bootblk /dev/rdsk/cxtyd0s0

where x=controller # and y=scsi id

hope this answer your question.

by grumbler

A way to do what you want is to first create the duplicated image with the dd command. Then you must put it on a NFS shared directory. To boot the other machine from the
network, you will need to have an install server (if you dont have one, you can setup one easily enough using the setup_install_server scrupt that comes with the Solaris instalation CD), and seting it to boot the new machine (you will need the MAC address of the NIC)
Then, you can boot your new machine using the Solaris 7 instalation floppy, choosing the NIC as your boot device. When it asks what kind of instalition you want, just type b -s and then hit enter. After being droped to the console and mouting the NFS shared directory you can dump then the image. Mind you that probably you will need to run the install_boot script

by ryttinch

With Solaris, you can use the JumpStart. You will need to set up a jumpstart server, which is initially a little tricky. Once it's up, you need only add the mac/IP translationto the /etc/ethers file, then boot up the client machine (from the ok prompt, boot net - install). It should start the install.

To JumpStart, you can add the different programs/services/scripts so the configurations are the same across the board.

by ustutz

I am going to assume that you have your OS on the internal disk in a default type installation on a SPARCstation. Get an external disk of same capacity as the internal OS disk. Set the target to an unused target (lets say "1"). On the workstationto copy from connect the external disk drive (glove box type enclosure) and reboot. from the root command prompt: dd if=/dev/rdsk/c0t3d2 if=/dev/rdsk/c0t1d2. On the target machine, boot off the external disk and then reverse the dd command.

Analternative, if you are networked, would require a minimal UNIX OS installation on the target machine. You can use the cpio command piped through a remote shell to clone a workstation. Either method requires you to edit pertinent system information (hostname, IP address, etc.) on the target machine, of course.

Caveat: Above suggestion is based on Solaris 2.4. I.e., "c0t3d2", I assume, addresses the default boot disk, whole disk (versus individual partitions). Also, I am assuming no volume managment.

by dao

via "dump and restore":
dump 0f - /old_fs | ( cd /new_fs && restore xf - )

Via "tar":
tar -C /old_fs -cf - . | tar -xpf - -C /new_fs

it's also for duplicate hard drives

This discussion is closed to new replies.