Skip to content.

UPR HPCf

Sections
Personal tools
You are here: Home » Members » humberto's Home » Test ZWiki » CloningO2Disks
Views

CloningO2Disks

last edited 1 year ago by humberto

How to Clone a Hard Disk

  1. turn both machines off
  2. remove the hard disk of your machine and put it into the cloning machine
  3. turn on the cloning machine
  4. hit escape to enter maintenance menu
  5. select command monitor (prompt)
  6. type "single" and hit return
  7. type in the root passwd
  8. at the prompt type : vt100
  9. (notice: $ is your prompt) $ prtvtoc
  10. without clearing the screen type : $ prtvtoc /dev/rdsk/dks0d2s0
  11. verify that the disks are partitioned the same (i.e the two tables show the same information)
  12. $ mkdir /clone
  13. $ mkfs /dev/dsk/dks0d2s0
  14. $ mount /dev/dsk/dks0d2s0 /clone
  15. $ cd /clone
  16. $ hostname [your computer's hostname]?.hpcf.upr.edu
  17. $ xfsdump -l 0 - / | xfsrestore - .
  18. ... wait about 20 minutes ...
  19. $ vi /clone/etc/sys_id (if you don't know vi use another editor!)
  20. replace the hostname of the machine with the name of yours and save!
  21. press the shutdown button of the machine
  22. unplug the drive and put it back in your machine

-- Main.DailouWalker? - 20 Jun 2000


comments:

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.

 

Powered by Plone

This site conforms to the following standards: