From owner-freebsd-current@FreeBSD.ORG Mon Apr 20 09:48:18 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7090106564A for ; Mon, 20 Apr 2009 09:48:18 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id 9815B8FC12 for ; Mon, 20 Apr 2009 09:48:18 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1513950wfg.7 for ; Mon, 20 Apr 2009 02:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:organization:x-operating-system:user-agent:x-mailer :mime-version:content-type:content-transfer-encoding; bh=AZ8n72QIHVT4b+LZvJCVAMSeuz771M0aPEyrkYq2CWw=; b=aF9i7R1VdJ/e6JYOoVIlrKoY7dahK3cXa0SiTwVCB4Lk8NJZfNFB+9qbNWcllAnD6Z 1d34Z5A4ZHptIkkNVUw0Y/onH+EQZoHClr1SQF8ux6pgmFFwepaZF5nj+fgY5zGppXkC Wc5aei/e8S8dvxPq5do1INUzEmZUYaOerwZ+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:organization:x-operating-system :user-agent:x-mailer:mime-version:content-type :content-transfer-encoding; b=gNiNHJxkOCyyVvRMRs2rK0elsEDUypGI1ZhPkTcR+84c6+Ia1qUWuTz6E2kd4Mg1vQ kNnkKdcpoKLrGxk36np4XwmlehenW/zkVKMUXh8vRnK40GliluDdvoswD+uDi8qnXf/v 1SrZDZqSAA3vHHZiTAlHOcTtyp8YRIfqR/fmY= Received: by 10.142.158.3 with SMTP id g3mr4374585wfe.221.1240220898274; Mon, 20 Apr 2009 02:48:18 -0700 (PDT) Received: from icy.local ([203.210.226.136]) by mx.google.com with ESMTPS id 30sm5801776wff.7.2009.04.20.02.48.13 (version=SSLv3 cipher=RC4-MD5); Mon, 20 Apr 2009 02:48:17 -0700 (PDT) Date: Mon, 20 Apr 2009 16:46:41 +0700 From: "=?UTF-8?B?S+G7sw==?= Anh, =?UTF-8?B?SHXhu7NuaA==?=" To: freebsd-current@freebsd.org Message-ID: <20090420164641.1842c264@icy.local> Organization: Vietnamese TeX Users Group X-Operating-System: Windows 98 User-Agent: Moveup browser X-Mailer: Moveup mail client (windows 98) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: auto boot into single mode X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 09:48:19 -0000 Dear all, I have a pfSense router. pfSense is based on FreeBSD. Because of low cost design, I haven't any fail-over router. Hence I often follow these steps: * boot the router normally * electric cut * physically access the router * boot the router in single mode * run $fsck -y /dev/ad8s1a (automatically fix all errors) * reboot the router in normal mode * enjoy the next electric cut (Because the router has a very hard work it cannot suffer anything wrong on the harddisk.) I also have to do the same steps for my laptop. My question is that whether we can setup FreeBSD so that it can automatically boot into single mode if there's something wrong in hard disk, *OR* at least it will execute fsck automatically/successfully? (I often see that after such type of error, FreeBSD cannot fix the hard disk in normal mode. This is quite far from Linux; I rarely boot my Linux machines single mode after electric cut) Thank you for you helps, Regards, -- Ky Anh, Huynh Homepage: http://viettug.org/