On Tue, 08 Nov 2011, [email protected] wrote:
> misc#,Dz:C#!
>
> when the box with OpenBSD had a power failure and the system did not
> unmount properly.
> it sometimes gets stuck.The system is asking me to RUN fsck MANUALLY.
> as a gateway ,so i can't go to fix it manually everytime.How do I advoid
> this?
> i want to disable it crumbling to single mode. thanks.
>
> /dev/rwd0e: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
> AUTOMATIC FILE SYSTEM CHECK FAILED; HELP!
> Enter pathname of shell or RETURN for sh:
>
> Best Regards
You can try something like this patch:
Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.396
diff -u -p -r1.396 rc
--- rc 13 Oct 2011 07:54:06 -0000 1.396
+++ rc 8 Nov 2011 10:08:35 -0000
@@ -294,8 +294,16 @@ elif [ X"$1" = X"autoboot" ]; then
exit 1
;;
8)
- echo "Automatic file system check failed; help!"
- exit 1
+ echo "File system check failed; trying fsck -y."
+ fsck -y
+ case $? in
+ 0)
+ ;;
+ *)
+ echo "Ok, now it's really fscked... "
+ exit 1
+ ;;
+ esac
;;
12)
echo "Boot interrupted."