From owner-freebsd-questions@FreeBSD.ORG Tue Feb 6 23:39:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B06C16A401 for ; Tue, 6 Feb 2007 23:39:36 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 370F013C48E for ; Tue, 6 Feb 2007 23:39:35 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so33377uge for ; Tue, 06 Feb 2007 15:39:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XT/g+mo+u2GyZRleziiBF2uMr+ttA0DJV4YI1xFdbqWaUIvv6VBXj5tzPbS78cGbRh50qMttSGUBpiQykl3KmQjje/5v1V6k8ZgAwT/P82PgPEc2z0bXlYnssT6n0G4tK7ZlTWprY7JW+pjaMcx/IeE8PeTUp4/2+/MtZ289+Lc= Received: by 10.82.188.15 with SMTP id l15mr5503746buf.1170805165099; Tue, 06 Feb 2007 15:39:25 -0800 (PST) Received: by 10.82.176.4 with HTTP; Tue, 6 Feb 2007 15:39:25 -0800 (PST) Message-ID: Date: Tue, 6 Feb 2007 17:39:25 -0600 From: "illoai@gmail.com" To: "Jerry McAllister" In-Reply-To: <20070206223750.GA17481@gizmo.acns.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6207f7d90702061258k2ace8012ld479065f2455b454@mail.gmail.com> <20070206223750.GA17481@gizmo.acns.msu.edu> Cc: Don Munyak , FreeBSD Questions Subject: Re: rc.conf ...need help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 23:39:37 -0000 On 06/02/07, Jerry McAllister wrote: > On Tue, Feb 06, 2007 at 03:58:06PM -0500, Don Munyak wrote: > > > How can I edit rc.conf while in single user mode. I've tried vi & ee, > > but system doesn't recognize either. > > It is probably not in your limited path in single user or not > in a mounted partition. > > You may have to mount the partition containing 'vi', probably /usr. > > While in single user, do: > fsck -p > mount -u / > mount -a > swapon -a > > Then you should be able to use vi as: > > /usr/bin/vi /etc/rc.conf > > using the full path for vi skips over putting it in your path. > Make your fix and reboot. knowing ed (red or sed) can be a useful skill, as it resides in /bin, thus being useful in other situations (/usr buggered (which I know never hap'ns in real life)) although dealing with / and " in sed can be a bit of a chore, practise will not hurt and if it is nothing terrifically important that was mauled (syslogd can be started from the command line, for instance) ^D in single user mode will go ahead and finish the boot to multi- user -- --