home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!cs.utexas.edu!chinacat!chip
- From: chip@chinacat.unicom.com (Chip Rosenthal)
- Subject: Re: Backing up boot f/s and restoring to new disk
- Organization: Unicom Systems Development, Austin, TX
- Date: Sat, 23 Jan 1993 07:24:51 GMT
- Message-ID: <1993Jan23.072451.12618@chinacat.unicom.com>
- References: <1993Jan22.194007.793@oneb.almanac.bc.ca>
- Lines: 63
-
- In article <1993Jan22.194007.793@oneb.almanac.bc.ca>
- kmcvay@oneb.almanac.bc.ca (Ken Mcvay) writes:
- >I have ordered a 170-meg disk to replace an ailing 110-meg device, and have
- >some questions about backing the whole thing up. As tape isn't available, I
- >am considering backing up the critical directories to the /u filesystem,
- >installing the new disk, and then moving the backup files back to the new
- >disk and rebooting.
-
- I think this path makes life a lot more difficult than it need be.
- Here is the strategy I use to upgrade drive zero.
-
- 1) Make a backup of the old drive just for safe keeping.
-
- 2) Disconnect the old drive from the system. If you have additional
- drives, disconnect them as well at this time for safety.
-
- 3) Install the new drive into the system and do an install from scratch.
- You can do a very minimal install.
-
- 4) Power down the system and install the old drive as drive one.
-
- 5) Reboot to single-user.
-
- 4) Do a `mknod /dev/oroot b 1 104' to create a device node for the old disk.
-
- 5) Do a `mount /dev/oroot /mnt' to mount the old disk. You can mount it
- read-only if you wish for safety.
-
- 6) Do a `cd /mnt' to get onto the old root.
-
- 7) Run: find . -print | cpio -pcvdm /
- That will copy everything from the old disk to the new disk, unless
- a newer version exists (e.g. your new /etc/default/filesys won't get
- written over).
-
- If you have other filesystems on the disk, repeat from step 4 as appropriate.
- minor=104 is for the first division on disk #1. divvy will show you the
- other division numbers you need to handle.
-
- >What I need to know is which files specifically relate to booting the new
- >disk, so I can delete them from the backup archives before restoring those
- >archives back to that disk.
-
- Don't do that. cpio without the `-u' option will inhibit writing a
- newer version with an older one.
-
- >I am also assuming that tar will collect all the device
- >files from the old disk, and restore them to the new disk.
-
- That assumption is wrong.
-
- >not to mention the /u filesystem.
-
- You can't avoid it. You need to recreate a /u filesystem new disk and
- then restore the files from the old disk.
-
- Please double check each step of this procedure, particularly against
- the manual. I've very possibly made mistakes here, and if you blindly
- trust it you could blow out a filesystem.
- --
- Chip Rosenthal 512-482-8260 | Now I only use my gun whenever kindness
- Unicom Systems Development | fails. - Robert Earl Keen, Jr.
- <chip@chinacat.Unicom.COM> |
-