From owner-freebsd-questions Wed Mar 12 8:51:57 2003 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 D901B37B404 for ; Wed, 12 Mar 2003 08:51:55 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3692843FD7 for ; Wed, 12 Mar 2003 08:51:54 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b239.otenet.gr [212.205.244.247]) by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h2CGpop7006631; Wed, 12 Mar 2003 18:51:52 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h2CGpmrE006313; Wed, 12 Mar 2003 18:51:50 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h2CGCash005204; Wed, 12 Mar 2003 18:12:36 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 12 Mar 2003 18:12:36 +0200 From: Giorgos Keramidas To: "W. J. Williams" Cc: Noel Balansag , Tom Parquette , questions@FreeBSD.ORG Subject: Re: how do i invoke the command "ee" or "vi" when system fails to load Message-ID: <20030312161236.GB5097@gothmog.gr> References: <3E6E775B.8070208@twcny.rr.com> <20030312070705.27076.qmail@web13509.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030312070705.27076.qmail@web13509.mail.yahoo.com> 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 [Please don't top post.] On 2003-03-11 23:07, "W. J. Williams" wrote: >Tom Parquette wrote: >> Noel, From your description I'm assuming you are going into single >> user mode. >> >> It sounds like fstab is pointing in the wrong place. If you can >> figure out where your /usr filesystem is you can issue a mount >> command to remount it. Once you have /usr mounted, "ee" should >> work for you. Hope this helps. Cheers... > > ironic...I dorked something up last night in my lab and found myself > in the same predicament...my mentor had me invoke the mount -a > command which brought me out of read only mode so I could run vi to > fix my rc.conf...hope this helps... Nah. It's not a good idea to use "mount -a" before fsck. The safest thing you can do if you haven't tinkered with the sizes and/or order of the partitions is to run: # fsck -p && mount -u / && mount -va Then you can use vi from /usr/bin or vim, emacs, joe, pico, nano or whatever from /usr/local/bin :-) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message