View previous topic :: View next topic |
Author |
Message |
Melguizo n00b
Joined: 08 Jul 2003 Posts: 5
|
Posted: Tue Jul 08, 2003 9:04 pm Post subject: Error de fsck al arrancar |
|
|
Hola, escribo este post porque tengo un problemilla que me está volviendo medio loco. Resulta que al arrancar, cuando se chequea la particion donde se encuentra el directorio raíz (/dev/hda4 en mi caso), me aparece el siguiente mensaje:
Code: | fsck:error
fsck:fsck.ext3:not found
fsck:Error 2 while executing fsck.ext3 for /dev/hda4
|
Espero que alguien pueda ayudarme.
Un saludo. |
|
Back to top |
|
|
Logic Temptation Tux's lil' helper
Joined: 04 Jul 2003 Posts: 102
|
Posted: Tue Jul 08, 2003 9:30 pm Post subject: |
|
|
Si realizas haces # man fsck alli encontraras los codigos de salida que retorna 'fsck', creo que el Error 2, es un 'exit code':
0 - No errors
1 - File system errors corrected
2 - System should be rebooted
4 - File system errors left uncorrected
8 - Operational error
16 - Usage or syntax error
32 - Fsck canceled by user request
128 - Shared library error
Reinicia a ver que passa... y si asi no se te repara prueba en cargar el LiveCD de Gentoo y realizar un # fsck -a -t ext3/dev/hda4.
Suerte. _________________ Gentoo Linux 2.6.1-gentoo-r1
Linux User => #320254
Linux Machine => #205170
ID-GnuGPKey => 0x6CF318D7 (pgp.escomposlinux.org) |
|
Back to top |
|
|
Melguizo n00b
Joined: 08 Jul 2003 Posts: 5
|
Posted: Tue Jul 08, 2003 9:44 pm Post subject: |
|
|
He hecho justo lo que me has dicho pero sigue apareciendo el dichoso mensajito. |
|
Back to top |
|
|
Logic Temptation Tux's lil' helper
Joined: 04 Jul 2003 Posts: 102
|
Posted: Tue Jul 08, 2003 10:04 pm Post subject: |
|
|
Jejeej te diria como solucione yo un problema con la particion, pero fui muy bestia! tambien podrias probar con hacer el 'fsck' a todo el disco en lugar de tan solo una particion. Pues a mi en una particion no me funcionava correctamente.
Por cierto mi metodo fue copiar toda la particion dañada a otra, volver a formatear la particion en ext3 y volcar otra vez los datos; fui algo bestia pero funciono.
Haver si tendras algun que otro sector defectuoso... _________________ Gentoo Linux 2.6.1-gentoo-r1
Linux User => #320254
Linux Machine => #205170
ID-GnuGPKey => 0x6CF318D7 (pgp.escomposlinux.org) |
|
Back to top |
|
|
Capsize n00b
Joined: 01 Jul 2002 Posts: 29 Location: Palma de Mallorca (España)
|
Posted: Wed Jul 09, 2003 8:37 am Post subject: |
|
|
Tienss soporte para ext3 en el kernel? error bastante frecuente. _________________ Miembro de (http://bulmalug.net)
Usando Gentoo Linux 1.4
Athlon XP 2600+ en Gigabyte GA-7AVXP-A Ultra 512Mb DDR400 |
|
Back to top |
|
|
Melguizo n00b
Joined: 08 Jul 2003 Posts: 5
|
Posted: Wed Jul 09, 2003 11:20 am Post subject: |
|
|
Mi núcleo sí tiene soporte para ext3...pero la vida sigue igual. |
|
Back to top |
|
|
Logic Temptation Tux's lil' helper
Joined: 04 Jul 2003 Posts: 102
|
Posted: Wed Jul 09, 2003 8:58 pm Post subject: |
|
|
Prueba con el # e2fsck -B /dev/hda4 buscara un superbloque alternativo, reinicia a ver que pasa, y si se pone muy pesado a ver que tal utilizando # e2fsck -c /dev/hda4 esto realizara una busqueda de sectores defectuosos en tu disco duro. Si no chavalote ya no se que le puedes hacer, lo siento...
Suerte. _________________ Gentoo Linux 2.6.1-gentoo-r1
Linux User => #320254
Linux Machine => #205170
ID-GnuGPKey => 0x6CF318D7 (pgp.escomposlinux.org) |
|
Back to top |
|
|
Melguizo n00b
Joined: 08 Jul 2003 Posts: 5
|
Posted: Wed Jul 09, 2003 9:50 pm Post subject: |
|
|
Yo creo que el problema está en el script checkroot. ¿Podrías decirme qué sistema de archivos utilizas para la partición raíz (a ver si utilizas ext3 como yo) y "prestarme" tu fichero /etc/init.d/checkroot para utlizarlo en mi maquina? |
|
Back to top |
|
|
Logic Temptation Tux's lil' helper
Joined: 04 Jul 2003 Posts: 102
|
Posted: Thu Jul 10, 2003 7:54 am Post subject: |
|
|
Pues si estoy utilizando el ext3, pero migre a este des de un sistema XFS, aun me parece que es generico y no afecta el tipo de sistema de archivos.
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/checkroot,v 1.31 2003/05/$
depend() {
before *
}
start() {
local retval=0
if [ ! -f /fastboot ]
then
ebegin "Remounting root filesystem read-only (if necessary)"
mount / -n -o remount,ro &>/dev/null
eend $?
ebegin "Checking root filesystem"
if [ -f /forcefsck ]
then
ewarn "A full fsck has been forced"
fsck -C -f -a /
# /forcefsck isn't deleted because checkfs needs it.
# it'll be deleted in that script.
else
fsck -C -a /
fi
retval=$?
if [ "${retval}" -eq 0 ]
then
eend 0
elif [ "${retval}" -eq 1 ]
then
ewend 1 "Filesystem repaired"
else
eend 2 "Filesystem couldn't be fixed "
/sbin/sulogin ${CONSOLE}
einfo "Unmounting filesystems"
/bin/mount -a -o remount,ro &>/dev/null
einfo "Rebooting"
/sbin/reboot -f
fi
fi
# Should we mount root rw ?
if mount -vf -o remount / 2> /dev/null | \
awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }'
then
ebegin "Remounting root filesystem read/write"
mount / -n -o remount,rw &>/dev/null
if [ "$?" -ne 0 ]
then
eend 2 "Root filesystem could not be mounted read/write:("
/sbin/sulogin ${CONSOLE}
else
eend 0
fi
fi
if [ "${SOFTLEVEL}" = "boot" ]
then
# Create /etc/mtab
grep -v 'rootfs' /proc/mounts > /etc/mtab
# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~
fi
}
# vim:ts=4
Suerte. _________________ Gentoo Linux 2.6.1-gentoo-r1
Linux User => #320254
Linux Machine => #205170
ID-GnuGPKey => 0x6CF318D7 (pgp.escomposlinux.org) |
|
Back to top |
|
|
|