From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 11:38:46 2004 Return-Path: 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 950E316A4CE for ; Mon, 23 Feb 2004 11:38:46 -0800 (PST) Received: from popimap01.icare.priv (unknown [203.78.64.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 266DF43D1D for ; Mon, 23 Feb 2004 11:38:44 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi02.icare.priv ([10.11.12.45]) by popimap01.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Tue, 24 Feb 2004 03:38:42 +0800 Received: from icare.com.hk ([203.88.164.82]) by smtpi02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Tue, 24 Feb 2004 03:38:42 +0800 Message-ID: <403A56BB.8080609@icare.com.hk> Date: Tue, 24 Feb 2004 03:38:35 +0800 From: Stephen Liu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: en MIME-Version: 1.0 To: Lowell Gilbert References: <403A1311.6000703@icare.com.hk> <44smh125t3.fsf@be-well.ilk.org> In-Reply-To: <44smh125t3.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Feb 2004 19:38:42.0458 (UTC) FILETIME=[A4B56FA0:01C3FA44] cc: freebsd-questions@freebsd.org Subject: Re: [FAQ pointer] Re: How to start single user mode or safe mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 19:38:46 -0000 - snip - >>Kindly advise how to boot to 'single user mode' or 'safe mode' >> >> > >The precise answer depends on what version of FreeBSD you're running, >which you failed to mention. You can work it out from the FreeBSD FAQ >entry titled "I made a mistake in rc.conf, or another startup file, >and now I cannot edit it because the filesystem is read-only. What >should I do?", which you can read at: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY > Hi Lowell, V5.2 === Thanks for your advice. Problem was solved as follow; ...... Enter full pathname of shell or RETURN for /bin/sh: # mount -a -t ufs # ee /etc/rc.conf Now another problem popup. At rebooting ..... /tmp not clearly dismounted /var not clearly dismounted /usr not clearly dismounted ... ... Starting syslog ... Recovering vi editor session: It hanged here. Kindly advise how to umount /tmp, /usr and /var If I need to run 'fsck' whether starting single user mode will mount / at read only. From there I can run # fsck /dev/ad4s1a (I suppose boot) # fsck /dev/ad4s1b (I suppose swap) # fsck /dev/ad4s1c (I suppose /) Kindly advise how to re-check the device, boot, swap and / TIA B.R. Stephen