auto boot into single mode

Kỳ Anh, Huỳnh xkyanh at gmail.com
Mon Apr 20 09:48:19 UTC 2009


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/


More information about the freebsd-current mailing list