home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / xenix / sco / 3716 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.8 KB  |  74 lines

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