From owner-freebsd-questions Tue Aug 6 23: 7:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B3F637B400; Tue, 6 Aug 2002 23:07:54 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE58643E6E; Tue, 6 Aug 2002 23:07:53 -0700 (PDT) (envelope-from dmp@pantherdragon.org) Received: from sparx.pantherdragon.org (evrtwa1-ar10-4-61-252-210.evrtwa1.dsl-verizon.net [4.61.252.210]) by spork.pantherdragon.org (Postfix) with ESMTP id 3913CFDDC; Tue, 6 Aug 2002 23:07:53 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.pantherdragon.org (Postfix) with ESMTP id 04E7EAB04; Tue, 6 Aug 2002 23:07:52 -0700 (PDT) Message-ID: <3D50B937.4671E861@pantherdragon.org> Date: Tue, 06 Aug 2002 23:07:51 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Desmond Lee Cc: freebsd-questions , scott@bsdprophet.org, kstewart@owt.com, grog@freebsd.org Subject: Re: some questions about upgrade and /etc/ files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Desmond Lee wrote: > >So, download the original 4.4-R files and put them in /etc. There are > >some files you should leave untouched. Namely fstab, rc.conf, > >resolv.conf, and your rebuilt master.passwd and group files. Once > >you've done that, go through the make world process, running > >`mergemaster -p` before the buildworld again just to double check that > >the crucial files are sane enough for a make world. > > Oh man... i should have waited another 30 mins before just copying over the > files i just got into the /etc/ dir. Oh well, i guess it's okay... i didn't > change the /etc/group and /etc/master.passwd files though. rc.conf isn't that big of a deal, you'll be redoing a lot that configuration anyway in the process of reconfiguring the system after the post-installworld mergemaster. You can rebuild the contents of fstab from the output of `mount`. The fstab file should look something like this: # See the fstab(5) manual page for important information on automatic mounts # of network filesystems before modifying this file. # # Device Mountpoint FStype Options, Dump, Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1g /usr ufs rw 2 2 /dev/ad0s1e /var ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 With all those /dev/* entries changed to match the devices in your `mount` output. Just, whatever you do, DO NOT REBOOT until you're absolutely sure your /etc/fstab matches your mounted filesystems. Otherwise you get to spend some time guessing at which partitions were mounted where. > >Does that make a bit more sense now? > > yes... this makes way more sense. You rock :) No, I learned. I wiped out my /etc directory once by mistake during an upgrade by inadvertently putting a leading / on the path. The files were on a brand-new ATA100 drive, too, so I didn't even have time to blink before the whole directory was gone. You learn very quickly when you destroy files for which you don't have backups. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message