From owner-freebsd-questions@FreeBSD.ORG Fri Jul 4 05:58:16 2003 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 D229D37B401 for ; Fri, 4 Jul 2003 05:58:16 -0700 (PDT) Received: from mta7.adelphia.net (mta7.adelphia.net [64.8.50.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28F8D44003 for ; Fri, 4 Jul 2003 05:58:16 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta7.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030704125815.DPAH1347.mta7.adelphia.net@potentialtech.com>; Fri, 4 Jul 2003 08:58:15 -0400 Message-ID: <3F0579E7.8010909@potentialtech.com> Date: Fri, 04 Jul 2003 08:58:15 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: akanwar@digitarchy.com References: <115380-22003754112414180@M2W033.mail2web.com> In-Reply-To: <115380-22003754112414180@M2W033.mail2web.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: running fsck on root filesystem 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: Fri, 04 Jul 2003 12:58:17 -0000 akanwar@digitarchy.com wrote: > I have a remote machine on whose boot disk I want to run fsck. Is there any > way of booting freebsd form the network and then getting into fixit mode > without a cdrom or a floppy ? > > I am using pxeboot so far. What is happening is that when I put > "installFixitHoloShell" in the install.cfg then sysinstall throws me to the > shell that is VERY barebones. I can't run even a 'ls'. In this case how do > I figure out what disk slices I have in the system and on which I want to > run fsck ? A lot you don't say here. One thing is _why_ you want to do this. Another is what you want to do. Your description is pretty vague. fsck is always run on the root filesystem at boot time, in preen mode. If you're having some sort of filesystem errors, setting fsck_y_enable="YES" in /etc/rc.conf will cause the startup scripts to automatically run 'fsck -y' if fsck fails in preen mode. If you want to change this behaviour, you _could_ edit /etc/rc to change the default handling. From any shell, you should be able to mount filesystems readonly. When mounted readonly, you can safely run fsck. Use 'mount -r /mountpoint'. Many of your commands are not on the root filesystem, so you may need to mount (for example) /usr before you can execute certain commands. Does this help? -- Bill Moran Potential Technologies http://www.potentialtech.com