Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2002 23:07:51 -0700
From:      Darren Pilgrim <dmp@pantherdragon.org>
To:        Desmond Lee <desmond.lee@shaw.ca>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>, scott@bsdprophet.org, kstewart@owt.com, grog@freebsd.org
Subject:   Re: some questions about upgrade and /etc/ files
Message-ID:  <3D50B937.4671E861@pantherdragon.org>
References:  <CMEMLGKEKMLLFOICILNMOEINCBAA.desmond.lee@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D50B937.4671E861>