Date: Wed, 23 Feb 2005 11:01:21 -0800 From: Sandy Rutherford <sandy@krvarr.bc.ca> To: "Loren M. Lang" <lorenl@alzatex.com> Cc: freebsd-questions@freebsd.org Subject: Re: can't reboot after messing up my rc.conf file Message-ID: <16924.54017.778645.120360@szamoca.krvarr.bc.ca> In-Reply-To: <20050220144833.GG4471@alzatex.com> References: <03fb01c51457$3f246ff0$0b01a8c0@enigmedia.net> <1108595484.708.8.camel@chaucer.jeays.ca> <4213F7A1.3030304@cis.strath.ac.uk> <20050217020202.GB34810@mail.oss.uswest.net> <16916.22919.40934.655595@szamoca.krvarr.bc.ca> <20050220144833.GG4471@alzatex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Sun, 20 Feb 2005 06:48:33 -0800, >>>>> "Loren M. Lang" <lorenl@alzatex.com> said: > On Thu, Feb 17, 2005 at 12:44:55AM -0800, Sandy Rutherford wrote: >> >>>>> On Wed, 16 Feb 2005 20:02:02 -0600, >> >>>>> Jamie Novak <novak@qwest.net> said: >> >> > I may have missed something from the thread before I joined the list, >> > but is there any reason you can't just mount the filesystems and use vi >> > as you're used to? If you're getting far enough in the boot process to >> > get an opportunity to interact with a shell, you should just be able to >> > mount -a and vi whatever. (Or, if you want to play it safe (or if the >> > system wasn't cleanly shutdown before), fsck and then mount -a) >> >> This should work fine. Although, depending on where he is in the boot >> process, / may be mounted read-only. Do `mount -uw /' to make it >> read-write. >> >> The lesson here is that when editing any file that is even remotely >> connected to the boot process, _make_a_backup_copy_. You can then >> simply mv the backup copy back into place should you mess up. > Actually, Absolute BSD has a handy suggestion about using rcs for all > important files in /etc/. Maybe you should try looking into that. I actually do both. RCS is very usefull for unwinding changes to get the system back to a previous state, should you realise that some of your "improvements" weren't such a good idea afterall. However, if you are concerned that your changes might adversely affect the boot process, then keeping your recovery plan as simple as possible is highly recommended. It doesn't get much simpler than `cp'. Sandy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16924.54017.778645.120360>