Views
CloningO2Disks
last edited 1 year ago by humberto
How to Clone a Hard Disk
- turn both machines off
- remove the hard disk of your machine and put it into the
cloningmachine - turn on the
cloningmachine - hit escape to enter maintenance menu
- select command monitor (prompt)
- type "single" and hit return
- type in the root passwd
- at the prompt type : vt100
- (notice: $ is your prompt) $ prtvtoc
- without clearing the screen type : $ prtvtoc /dev/rdsk/dks0d2s0
- verify that the disks are partitioned the same (i.e the two tables show the same information)
- $ mkdir /clone
- $ mkfs /dev/dsk/dks0d2s0
- $ mount /dev/dsk/dks0d2s0 /clone
- $ cd /clone
- $ hostname [your computer's hostname]?.hpcf.upr.edu
- $ xfsdump -l 0 - / | xfsrestore - .
- ... wait about 20 minutes ...
- $ vi /clone/etc/sys_id (if you don't know vi use another editor!)
- replace the hostname of the machine with the name of yours and save!
- press the shutdown button of the machine
- unplug the drive and put it back in your machine
-- Main.DailouWalker? - 20 Jun 2000
Volume header --humberto, Tue, 24 Jun 2008 15:26:44 -0400 reply
I tried this with the Origin 300 disks and it failed to boot because it couldn't find the miniroot in the volume header. Here's how I copied the OS onto another disk:
# dvhtool -v list
Current contents:
File name Length Block #
sgilabel 512 2
symmon 1616384 3
sash 266752 3160
# dvhtool -v get symmon symmon
# ls -l
total 3160
-rw-r--r-- 1 root sys 1616384 Jun 12 19:36 symmon
# dvhtool -v get sash sash
# dvhhtool -v list /dev/rdsk/dks0d2vh
Current contents:
File name Length Block #
sgilabel 512 2
# dvhtool -v add sash sash /dev/rdsk/dks0d2vh
# dvhtool -v add symmon symmon /dev/rdsk/dks0d2vh
See also: http://unix-docu.uibk.ac.at/zid/software/unix/irix/sgidisk.html for installing onto a new disk.