Pagina 1 di 1
Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 2:03
da giumig
Ho avviato ubuntu e mi ha iniziao il fsck. Arrivato al 22% mi è uscito questo errore:
Codice: Seleziona tutto
/dev/shm/Root: Inodes were part of a corrupted orphan linked list found
/dev/shm/root. UNEXPECTED INCONSISTENCY; RUN FSCK MANUALLY
checking drive /dev/shm/root: 22% (Stage 15 68/127)
An automatic file system chck of the root filesystem failed
An automatic file system check (fsck) of the root file system failed
a manual fsck must be performed in maintenance mode with the
root filesystem mounted in read-only mode.
*The root file system is currently mounted in read-only mode.
a maintenance shell will now be started.
after performing system maintenance, press CONTROL-D
to terminate the maintenance shell and restart the system.
bash: no job control in this shell
bash: groups: command not found
bash: lesspipe: command not found
bash: Command: command not found
bash: The: command not found
bash: dircolors: command not found
bash: Command: command not found
bash: The: command not found
root@giuseppe-laptop:~$
a questo punto ho digitato fsck e mi ha chisto un sacco di cose (forse una cinquantina) in cui l'unica risposta era "y". Tipo Inode 2398329 (un numero a caso) Clear?
Fatto questo mi ha chiesto delle cose relative al kernel -2.6.24-19 e io ho sempre cliccato su YES.
Ora riavviando ubuntu, quando inizia a caricare dopo un po le taccette del caricamenteo si fermano (all'inizio) e il pc sembra non fare nulla (nemmeno l'hd fa niente).
Se invece avvio con kernel 18 allora si avvia normalmente e sembra funzionare!
Cosa ho combinato? COme posso risolvere, c'è un modo per riavere il kernel 19 funzionante? se lo reinstallo da synaptic che sccede?
grazie mille
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 2:07
da crap0101
non so a cosa sia legato, ma se con il kernel *18 funziona tutto, allora sì, prova a reinstallare il 19 da synaptic
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 9:32
da giumig
grazie per la risposta, cmq oggi si è avviato (kernel .19) senza problemi e senza che io abbia fatto nulla...meglio cosi!:)
Ma qualcuno sa come mai è comparso quell'errore?
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 14:53
da crap0101
penso sia qualcosa che non andava nel fs. Però la causa precisa non so... puoi vedere qui per sapere una delle possibili
/etc/init.d/checkroot.sh
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 22:01
da giumig
cosa fa quel comando? non vorrei creare casini

Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 22:07
da crap0101
cercando, mi è parso di capire che quello è lo script che esegue il controllo, aprendolo
gedit /etc/init.d/checkroot.sh
e cercando la frase
An automatic file system check (fsck) of the root file system failed
puoi risalire alle operazioni che non sono andate a buon fine
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: lunedì 23 giugno 2008, 22:11
da giumig
grazie crap, ecco quello che ho trovato:
Codice: Seleziona tutto
# does not work because the root is currently read-only.
log_failure_msg "An automatic file system check (fsck) of the root filesystem failed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode."
log_warning_msg "The root filesystem is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance, press CONTROL-D
to terminate the maintenance shell and restart the system."
# Start a single user shell on the console
if ! sulogin $CONSOLE
then
log_failure_msg "Attempt to start maintenance shell failed.
Will restart in 5 seconds."
sleep 5
fi
[ "$VERBOSE" = no ] || log_action_msg "Will now restart"
reboot -f
elif [ "$FSCKCODE" -gt 1 ]
then
log_failure_msg "The file system check corrected errors on the root partition
but requested that the system be restarted."
log_warning_msg "The system will be restarted in 5 seconds."
sleep 5
[ "$VERBOSE" = no ] || log_action_msg "Will now restart"
reboot -f
fi
#
# Remount root to final mode (rw or ro).
#
# See the comments above at the previous "mount -o remount"
# for an explanation why we try this twice.
#
if ! mount -n -o remount,$rootopts,$rootmode $fstabroot / 2>/dev/null
then
mount -n -o remount,$rootopts,$rootmode /
fi
#
# We only create/modify /etc/mtab if the location where it is
# stored is writable. If /etc/mtab is a symlink into /proc/
# then it is not writable.
#
INIT_MTAB_FILE=no
MTAB_PATH="$(readlink -f /etc/mtab || :)"
case "$MTAB_PATH" in
/proc/*)
;;
/*)
if touch "$MTAB_PATH" >/dev/null 2>&1
then
:> "$MTAB_PATH"
rm -f ${MTAB_PATH}~
INIT_MTAB_FILE=yes
fi
;;
"")
[ -L /etc/mtab ] && MTAB_PATH="$(readlink /etc/mtab)"
if [ "$MTAB_PATH" ]
then
log_failure_msg "Cannot initialize ${MTAB_PATH}."
else
log_failure_msg "Cannot initialize /etc/mtab."
fi
;;
*)
log_failure_msg "Illegal mtab location '${MTAB_PATH}'."
;;
esac
if [ "$INIT_MTAB_FILE" = yes ]
then
[ "$roottype" != none ] &&
mount -f -o $rootopts -t $roottype $fstabroot /
[ "$devfs" ] && mount -f $devfs
fi
#
# Remove /dev/shm/root if we created it.
#
rm -f /dev/shm/root
}
case "$1" in
start|"")
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
# No-op
;;
*)
echo "Usage: checkroot.sh [start|stop]" >&2
exit 3
;;
esac
:
capisci qualcosa?!?
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: martedì 24 giugno 2008, 0:28
da crap0101
più o meno
credo che il punto in cui si sia fermato sia questo:
log_action_begin_msg "Checking root file system"
fsck $spinner $force $fix -T -t $roottype $rootdev
FSCKCODE=$?
log_action_end_msg "$FSCKCODE"
fi
#
# If there was a failure, drop into single-user mode.
#
# NOTE: "failure" is defined as exiting with a return code of
# 4 or larger. A return code of 1 indicates that file system
# errors were corrected but that the boot may proceed. A return
# code of 2 or 3 indicates that the system should immediately reboot.
#
quindi pare che i controlli siano stati cannati su tutta la linea!
Ti ricordi le domande che faceva? potrebbero aiutare.
An automatic file system check (fsck) of the root file system failed
a manual fsck must be performed in maintenance mode with the
root filesystem mounted in read-only mode.
*The root file system is currently mounted in read-only mode.
a maintenance shell will now be started.
Questo mi fa pensare che volesse dire di ripetere lo scan loggandosi però dalla sessione di emergenza.
Bhu! dovesse rifare la stessa cosa ad un nuovo controllo prova così
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: martedì 24 giugno 2008, 1:33
da giumig
Cosa intendi per "cannati su tutta la linea"? è un problema grave?!
Purtroppo non ricordo le domande precise (erano tantissime) ma la maggior parte erano del tipo" inode 12892893 ..........clear? (y)"
E' possibile effettuare uno scan manuale per vedere se persiste il problema?
Poi una cosa non ho capito, se lo scan vede questo problema come mai funziona tutto alla perfezione?
Grazie ancora per la pazienza e le risposte! (b2b)
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: martedì 24 giugno 2008, 2:21
da crap0101
giumig ha scritto:
Cosa intendi per "cannati su tutta la linea"? è un problema grave?!
spero di no, dico solo che leggendo nei commenti dello script i test (chissa perchè) è fallito
per regolare la frequenza dei check vedi
man tune2fs
altrimenti, per forzare fsck all' avvio, ho visto questo:
http://lists.debian.org/debian-italian/ ... 00743.html
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: martedì 24 giugno 2008, 9:08
da giumig
grazie delle info, cmq credo aspettero il prossimo check automatico, non vorrei combinare casini! Tanto ora funziona tutto bene!
Re: Problemone: dopo un fsck ubuntu non si avvia piu...
Inviato: martedì 24 giugno 2008, 10:15
da Stealth
Se devi controllare una partizione ti consiglio, in generale, di farlo sempre da una live. Qualunque azione su partizioni montate è sconsigliatissima

ciao