From owner-freebsd-questions Tue Nov 20 13:49:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id D521737B405 for ; Tue, 20 Nov 2001 13:49:18 -0800 (PST) Received: (qmail 79661 invoked by uid 100); 20 Nov 2001 21:49:32 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15354.53228.792684.130499@guru.mired.org> Date: Tue, 20 Nov 2001 15:49:32 -0600 To: Kent Stewart Cc: questions@freebsd.org Subject: Re: Vi a Joke ? In-Reply-To: <34871309@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 Kent Stewart types: > Anthony Atkielski wrote: > >>One point people forget and that is what can > >>you use when you mess up rc.conf and your system > >>will only boot into single user mode. Learning > >>vi at that point is a painic :). > > Can't you just restore the previous copy of the file and reboot? You made a > > backup copy of the last bootable version of the file before you changed it, > > right? > It is all too often a one line change and no one does a backup then. > That is what gets them in trouble to begin with. It doesn't happen that > often and I have always been able to mount /usr and correct the error > using my editor of choice. The thing you can't do is re-ftp a corrected > version or do an nfs_mount to pick up the backup. Occasionally, we see > files that are corrupt because they have 's on the end of the line. I keep such configuration files in a source management system. The benefits of doing so are enormous, and I recommend doing so for everyone. One of the benefits is that you can always get the old version of a config file back. The catch is that getting the old version back requires the source management system be accessible. You either have to be able to fix the file with ed, or know enough to bring up the subsystems needed to get to the management system by hand. As an aside, if you leave /usr on /, your editor of choice should be available anyway, right? http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message