[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]Hola amigos:
Exactamente como dijo Roger, fui a mi RH 5.2 /etc/rc.d/rc.sysinit y estuve
viendo la parte del fsck y el file trae la ejecucion del fsck en el starup.
But, tengo dudas todavia. Aqui mando la parte del file /etc/rc.d/rc.sysinit
que habla del fsck. Tengo las siguientes preguntas:
A que hdx el le pasa el fsck??, --al que le encuentra incosistencia??,
Como pudiera ponerle que me pasara el fsck a todos los hdx de mi disco y con
que opcion especifica, pues cuando entro como root a darle mantenimiento le
pongo fsck -a hdx ?????, porque a veces se jode el hd1 o el hd5???,
Que son los fsckoptions??
Realmente a mi no me interesa si el Rh se mete 1 hora para levantar, repito
lo unico que deseo es no estar yendo e esa sucursal todas las semanas para
darle mantenimiento. Vamos a esperar a que nos envien UPS :-)).
Esperando respuesta.
Aqui va la parte del fsck:
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
else
fsckoptions=''
fi
if [ ! -f /fastboot ]; then
echo "Checking root filesystems."
fsck -V -a $fsckoptions /
rc=$?
Luego viene esto:
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
echo
echo
echo "*** An error occurred during the file system check."
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
PS1="(Repair filesystem) \#"; export PS1
sulogin
echo "Unmounting file systems"
umount -a
mount -n -o remount,ro /
echo "Automatic reboot in progress."
reboot
elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
echo "Checking root filesystem quotas"
/sbin/quotacheck -v /
fi
fi
if [ -x /sbin/quotaon ]; then
echo "Turning on user and group quotas for root filesystem"
/sbin/quotaon /
fi
My best regards...
Ing. Israel Garcia Alvarez
Administrador BPA Cienfuegos
email:israel en mail cf bpa cu
israel en jagua cfg sld cu