From owner-freebsd-questions@FreeBSD.ORG Mon Jul 9 03:22:31 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A34A1065670 for ; Mon, 9 Jul 2012 03:22:31 +0000 (UTC) (envelope-from pjd@batbytes.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id CAC1D8FC08 for ; Mon, 9 Jul 2012 03:22:30 +0000 (UTC) Received: by vcbfy7 with SMTP id fy7so8567686vcb.13 for ; Sun, 08 Jul 2012 20:22:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=uwWEjqr5vdflOVN+MmQrnPzUx2Ck8YqTvJn4Gk4vJng=; b=VTQU4gU8VGunCfg8tNav2gQBABp5m4NvvrJpOym3V9IDIvY/JT/t71BIGQPZB+y5cr 8XrY3VHtn7Dn0Zh5Ual7wpLGVBSQj92v0C+c3OoeIrqBKB3cqfekupJgvaLtD6gCX2kI 2UPDSxAB3cKisg+TY7fLljtONhofIHSvHHuiBa0sMTjAWvoZwZEkSFBLPhSvT5nJDFqc cXhZmCJfgXmzyHfIKT3E9wN7y+56318tdPme20LPhx6UezZFe2i8JErsktxVGvGMcoRq 2gWahWu2ucIw03jFoGwPS660QjIzDUuKNP3yG8rj0iN56YQpeFzbB7zHNtpQLZzG99uC tzvQ== MIME-Version: 1.0 Received: by 10.220.108.15 with SMTP id d15mr18359307vcp.37.1341804149928; Sun, 08 Jul 2012 20:22:29 -0700 (PDT) Received: by 10.52.168.225 with HTTP; Sun, 8 Jul 2012 20:22:29 -0700 (PDT) Date: Sun, 8 Jul 2012 23:22:29 -0400 Message-ID: From: Patrick Donnelly To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkZ+ReIH/W4Wijkh5C1yzZhdz1f/1437xPffz8inKSrgm9arDgw/fH0zAxtfqE3Zxl1LDL2 Subject: power failure, boot, and fsck 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: Mon, 09 Jul 2012 03:22:31 -0000 Hi, After a power failure at home, my FreeBSD server automatically starts again but fails to mount my UFS /boot disk because it was not properly unmounted. Here is my fstab: $ cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/da0s1a /boot-disk ufs rw 0 0 I'm using ZFS root with a USB UFS boot device. Anyway, I get an error that looks like (copied from another thread; devices and mount points don't match): UFS: /dev/ad10s3f (/usr) Automatic file system check failed, help! error aborting boo (sending sigtem to parent)! init: /bin/sh on /etc/rc terminated abnormally, going to single user mode. enter full pathname of shell or RETURN for /bin/sh: In single-user mode I just `fsck /dev/da0s1a` and reboot. That fixes the problem. However, I would like this to be automatic on boot. It would be annoying if I'm out-of-town and the server cannot recover without my help. Any tips? -- Patrick Donnelly