From owner-freebsd-questions Sat Jun 1 23:33:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id 4736937B401 for ; Sat, 1 Jun 2002 23:33:51 -0700 (PDT) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.12.3/8.12.3) with ESMTP id g526XnQW047284; Sun, 2 Jun 2002 00:33:50 -0600 (MDT) Message-Id: <200206020633.g526XnQW047284@fedde.littleton.co.us> To: Patrick Thomas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: use of fsck -y In-Reply-To: <20020601214223.T18408-100000@utility.clubscholarship.com> From: Chris Fedde Date: Sun, 02 Jun 2002 00:33:49 -0600 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 On Sat, 1 Jun 2002 21:48:02 -0700 (PDT) Patrick Thomas wrote: +------------------ | vnconfig /dev/vn0 /prisons/1a | fsck -y /dev/vn0 | mount /dev/vn0c /mnt/point | /mnt/point/apachectl start +------------------ I might want to be more carefull with the logic. If the partition is small then the fsck does not hurt much but if it is large then they can be painfully slow. try something more like the following... vnconfig /dev/vn0 /prisons/1a mount /dev/vn0c /mnt/point if [ $? != 0 ] then fsck -y /dev/vn0 mount /dev/vn0c /mnt/point if [ $? != 0 ] then echo Mount fails even after fsck. Better check this by hand fi fi /mnt/point/apachectl start Using fsck -y will allow fsck to create files in lost+found if it has to. It also enables some repairs that can cause other data loss. BTW. softupdates might also give you some performance advantages on peudo disk device filesystems. -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message