SUMMARY: Copy system disk

From: nadia Hashim Saad <nadiakw_at_hotmail.com>
Date: Thu, 6 Mar 1997 00:29:44 -0800 (PST)

Hello,

I send my great thanks to whom replied with useful answers:

1. Mr. Brian O'Connor <boc_at_ironbark.bendigo.latrobe.edu.au>
2. Mr. Thomas Leitner <tom_at_finwds01.tu-graz.ac.at>
3. Mr. Gary Barber <gbarber_at_telecom.ie>
4. Mr. Ian Piumarta <piumarta_at_prof.inria.fr>
5. Mr. Eugene Chu <chu_at_musp0.Jpl.Nasa.Gov>
6. Mr. Larry Church <lchurch_at_Centus.COM>
7. Mr. Jude T. Cruz <jude_at_tsi.com.my>
8. Mr. Alan Rollow <alan_at_nabeth.cxo.dec.com>

The most clear & well guiding answer was from Mr. Brian O'Conner
as follows:

Assumptions:

  old disk rz0

  new disk is rz2 of type rz28
  / mounted on a
  swap on b
  /usr mounted on g

Steps:

  MAKEDEV rz2
  disklabel -r -w rz2 rz28

  newfs /dev/rrz2a rz28
  newfs /dev/rrz2g rz28

  fsck /dev/rrz2a
  mount /dev/rz2a /mnt
  dump 0f - / | (cd /mnt; restore xf -)

  edit /mnt/etc/fstab to replace rz0 with rz2 by:
       vi /mnt/etc/fstab
       :%s/rz0/rz2/g

  if swapdefault exists, remove it and re-create it to point at the
  new swap partition.

  umount /mnt
  fsck /dev/rrz2a

  fsck /dev/rrz2g
  mount /dev/rz2g /mnt
  dump 0f - /usr | (cd /mnt; restore xf -)

  umount /mnt
  fsck /dev/rrz2g

  shutdown and boot from the new disk

Note: You might need to recompile the kernel.
____________________________________________________________________

Mr. Thomas Leitner advised upon his own practical exercise which is
working succussful and based on ADVFS as follows:

  vdump 0uf - / | vrestore -x -D /mnt/newroot
  vdump 0uf - /usr | vrestore -x -D /mnt/newusr

  if advfs root domain exists then make sure when using disklabel to
  use the option "-t advfs" instead of "-t ufs".

____________________________________________________________________

Dear members, that was my first query through this group and I'm
indeed happy with this experiment... Thankx all.

____________________________________________________________________

Nadia Hashim Saad.
__________________


---------------------------------------------------------
Get Your *Web-Based* Free Email at http://www.hotmail.com
---------------------------------------------------------
Received on Thu Mar 06 1997 - 09:53:29 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT