[OpenBSD-BR] fsck automático

Geison Porfirio geison em bsd.com.br
Segunda Agosto 11 10:29:37 BRT 2008


Obrigado Giancarlo;

Vou testar em uma vmware aqui e se funcionar eu posto a solução.

Obrigado

Geison Porfirio

2008/8/11 Giancarlo Rubio <gianrubio em gmail.com>

> 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
> _______________________________________________
> OpenBSD mailing list
> OpenBSD em listas.openbsd-br.org
> http://listas.openbsd-br.org/mailman/listinfo/openbsd
>



-- 
Geison Porfirio
Analyst Consultant - IT
e-mail: geison in bsd.com.br
cel: +55 51 8101-7559 | ICQ User: 84408730
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.openbsd-br.org/pipermail/openbsd/attachments/20080811/c2115cd5/attachment.html 


Mais detalhes sobre a lista de discussão OpenBSD