[OpenBSD-BR] fsck automático
Giancarlo Rubio
gianrubio em gmail.com
Segunda Agosto 11 10:23:16 BRT 2008
Geison:
Não tenho nenhuma máquina com openbsd aqui, mais a um tempo atrás já
tinha feito isso.
Abra seu /etc/rc, tem algo como isso (retirei do cvsweb do open)
if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks."
elif [ X"$1" = X"autoboot" ]; then
echo "Automatic boot in progress: starting file system checks."
fsck -p
case $? in
0)
;;
2)
exit 1
;;
4)
echo "Rebooting..."
reboot
echo "Reboot failed; help!"
exit 1
;;
8)
echo "Automatic file system check failed; help!"
exit 1
;;
12)
echo "Boot interrupted."
exit 1
;;
130)
# interrupt before catcher installed
exit 1
;;
*)
echo "Unknown error; help!"
exit 1
;;
esac
fi
Altere aqui
8)
echo "Automatic file system check failed; help!"
exit 1
;;
para
8)
echo "Automatic file system check failed; help!"
fsck -y
;;
A solução esta por ai, não te garanto que irá funcionar mais já te
mostrei o caminho..heheh
2008/8/11 Geison Porfirio <geison em bsd.com.br>:
> Olá;
>
> Estou com um problema em relação a checagem do file system, as vezes ao
> reiniciar um servidor ele pede para executar o fsck. Mas o problema é que
> estou longe deste servidor e toda vez que isso acontece tenho que ir
> orientando alguém por telefone em como proceder com os comandos.
>
> A minha dúvida é:
> Tem como configurar o fsck automático no boot do sistema? Algo como o
> FreeBSD tem?
>
> Obrigado pela ajuda.
>
> []'s
> --
> Geison Porfirio
> Analyst Consultant - IT
> e-mail: geison in bsd.com.br
> cel: +55 51 8101-7559 | ICQ User: 84408730
>
> _______________________________________________
> OpenBSD mailing list
> OpenBSD em listas.openbsd-br.org
> http://listas.openbsd-br.org/mailman/listinfo/openbsd
>
>
--
Giancarlo Rubio
Mais detalhes sobre a lista de discussão OpenBSD