OpenBSD自动文件系统检查在重新启动

我希望我的openbsd服务器能够启动,不pipe是什么,也不要等待手动FSCKing。 在linux中很容易,但在obsd中,它不想成为“自动”。 最后一次我在fstab中将第6,7号设置为0 0,希望能够做到这一点,但不是。

我也有select:

fsck_y_enable="YES" # Set to YES to do fsck -y if the initial preen fails. background_fsck="YES" # Attempt to run fsck in the background where possible. background_fsck_delay="60" # Time to wait (seconds) before starting the fsck. 

在全球rc.conf似乎没有用(这是一个freebsd选项)。

有人知道这个解决scheme吗?

谢谢

我没有看到在fstab中提到任何像“nofail”的东西,我想。 任何在fstab中提到的文件系统都会对我造成启动延迟,所以在我的家庭联合路由器和文件共享盒中,我做了这个:

我没有提到我在fstab中的大量audio/video份额,因此启动速度会很快,只能看到我的互联网连接恢复所需的微小根和networking服务。 然后,在/etc/rc.local中:(它工作得很好,以至于我多年没有碰到它)。

 echo -n " /avrepo" ; sd0=$(/usr/sbin/sysctl hw.disknames | /usr/bin/grep -c sd0) ; if [ "$sd0" -ge 1 ] && [ $(mount | grep -c /avrepo) -le 0 ] ; then mount /dev/sd0i /avrepo ; if [ $? -ge 1 ] ; then sleep 30 ; # assume boot and let system settle first before fsck fsck -y /dev/sd0i ; sleep 1 ; mount /dev/sd0i /avrepo ; fi ; sleep 1 ; fi ; 

然后,我从rc.local启动samba和ftp等服务器,以确保正确的事件顺序。