From owner-freebsd-questions Thu Jul 13 05:34:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id FAA04842 for questions-outgoing; Thu, 13 Jul 1995 05:34:01 -0700 Received: from helix.nih.gov (helix.nih.gov [128.231.2.3]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id FAA04836 for ; Thu, 13 Jul 1995 05:33:59 -0700 Received: by helix.nih.gov (940715.SGI.52/1.35(m-sg-1.0)) id AA13523; Thu, 13 Jul 95 08:33:58 -0400 Date: Thu, 13 Jul 95 08:33:58 -0400 From: crtb@helix.nih.gov (Chuck Bacon) Message-Id: <9507131233.AA13523@helix.nih.gov> To: freebsd-questions@freefall.cdrom.com Subject: Another upgrade victim Cc: crtb@helix.nih.gov Sender: questions-owner@FreeBSD.org Precedence: bulk Did I fail to RTFM somewhere? If anyone has a clearer idea of how to upgrade, I'd be glad to try and organize it for the next RELNOTES or the FAQ. I recently upgraded from a very nice, and very full, 2.0R to 2.0.5R. Fearful of an "install" script which might just possibly decide to mkfs all over my existing files, I decided to do it all manually: - Save /etc config files elsewhere # For reference after untarring # shutdown now # Move to single user shell # chflags noschg /kernel # Make kernel move possible # mv /kernel /kernel2.0R # Save in case of disaster # mv /sbin/init /sbin/init-2.0 # Avoid text-busy error in tar # cd / # Stand at point zero # cat /wherever/bin.*|tar zxvfp - # Explode the tarfile # mv /kernel.GENERIC /kernel # Give it the conventional name - Compare/reconcile saved /etc files I was smart enough to know I had to rename init. But I was dumb enough to forget I should have renamed tar, gzip, tcsh, and who knows what else. So I've upgraded them since. I was fairly lucky. Exploding the bin distribution in single user mode seemed to work, but of course I don't know what old executables and /dev entries should be deleted or which configuration files (e.g. /etc/fstab) rewritten. So I may be wasting some space with obsolete stuff. The old XFree86-3.1 executes just fine with 2.0.5R, and so do almost all the other common utilities not in the bin dist. The big anxiety, which held me off for several days, was the disklabel, which appeared to have been trashed. The c and d partitions didn't exist any more, and in fact are missing. All the others have been re-based with offsets from the start of the slice, rather than at the beginning of the disk. Even the total cylinder count in the disklabel is for the slice only! There's a new /dev/wd0s1, for Slice 1, which you must name to mount /dos. I don't know if there are any obsolete /dev entries. Please, if I have summarized all the important points, let me know. And fill me in on what's missing. I'll try to recompose the above as a series of checklist items for anyone who would like to upgrade manually. Chuck Bacon - crtb@helix.nih.gov ABHOR SECRECY - DEFEND PRIVACY