From owner-freebsd-questions@FreeBSD.ORG Thu Aug 17 19:21:31 2006 Return-Path: X-Original-To: questions@freebsd.org 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 BEB7D16A4E5 for ; Thu, 17 Aug 2006 19:21:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6066D43D45 for ; Thu, 17 Aug 2006 19:21:31 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k7HJLUUC056594; Thu, 17 Aug 2006 14:21:30 -0500 (CDT) (envelope-from dan) Date: Thu, 17 Aug 2006 14:21:30 -0500 From: Dan Nelson To: Ceri Davies , Jerry McAllister , danger@rulez.sk, questions@freebsd.org Message-ID: <20060817192129.GA30450@dan.emsphone.com> References: <1704275870.20060817201511@rulez.sk> <200608171858.k7HIw3fP015972@clunix.cl.msu.edu> <20060817191142.GK89500@submonkey.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060817191142.GK89500@submonkey.net> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: Subject: Re: Wilfully dirtying a filesystem 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: Thu, 17 Aug 2006 19:21:31 -0000 In the last episode (Aug 17), Ceri Davies said: > On Thu, Aug 17, 2006 at 02:58:03PM -0400, Jerry McAllister wrote: > > > Thursday, August 17, 2006, 6:55:08 PM, Ceri wrote: > > > > I have a system on which /usr is slightly hosed, but not badly enough > > > > for it to fail a preen fsck. > > > > > > > > I cannot easily get to single-user on this machine, so is there > > > > a good way for me to dirty the filesystem just enough to force > > > > "fsck -p" to fail (yanking power also difficult)? "umount -f > > > > /usr; reboot" doesn't seem to work... > > > > Is 'fsck -f' not a possibility? > > No, because I can't unmount /usr. What kind of setup do you have where you can't get to single-user mode, but you apparently want fsck -p to fail (which will put you in single-user mode)? If you have a serial console that doesn't kick in until after the kernel is initialized, just hitting ^\ a couple times during the bootup sequence should get you your "Enter pathname of shell" single-user prompt. You could also put an "exit 1" at the top of /etc/rc and reboot; just make sure to remove it when you want to continue to multiuser mode :) -- Dan Nelson dnelson@allantgroup.com