View previous topic :: View next topic |
Author |
Message |
bosozoku Advocate
Joined: 11 Jan 2004 Posts: 2431 Location: Roazhon
|
Posted: Mon Nov 01, 2004 3:50 pm Post subject: |
|
|
Mais tu es sur que le fstab est bien sauvegardé ? Comment sors tu du chroot ? Il faut bien démonter les partitions une à une. _________________ Stationlinux.org - Wiki Fvwm FR - Config Fvwm |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Mon Nov 01, 2004 3:58 pm Post subject: |
|
|
Salut,
en faite je suis carrément sous KDE...
ça pose un probleme ?! (lol?)
sinon, j'ai suivis la documentation fr sur le site.
a+ |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Mon Nov 01, 2004 4:07 pm Post subject: |
|
|
retire le "noauto" apres le "/" ... Ca aidera deja un peu.
Ensuite, reviens et dis-nous ce qui se passe.. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Mon Nov 01, 2004 4:17 pm Post subject: |
|
|
Salut,
voila mon fichier fstab :
Code: |
/dev/hda1 /boot ext2 noatime 1 1
/dev/hda5 none swap sw 0 0
/dev/hda6 / ext3 noatime 0 1
|
J'ai essayé (auto) (default), mais toujours le meme message d'erreur..
Merci pour votre aide. |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Mon Nov 01, 2004 4:28 pm Post subject: |
|
|
Quote: | /dev/hda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALY.
The filesystem size (according to the super block) is 1220932 blocks
The physical size of the device is 8024 blocks
Either the superblock or the partition is likely to be corrupt. |
Tu _as_ fait le e2fsck (puisque tu es en ext2)? Tu as repare les erreurs? _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Mon Nov 01, 2004 4:43 pm Post subject: |
|
|
Salut,
j'ai fait la manipulation suivante :
Code: |
e2fsck -p /dev/hda1
|
j'ai essayé comme ça et sans le -p
j'obtien le message suivant :
/dev/hda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 32772 (invalid argument) while doing inode scan.
Ignore error <Y>? j'ai mis no
force rewrite <Y>? j'ai mis yes
et a nouveau un autre message : error while scanning inodes (16096) : Can't read next inode.
e2fsck: aborted
Pour du cambouis, c'est du cambouis
Plus serieusement, peut etre que j'ai oublié quelque chose ?
Merci pour votre aide. |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Mon Nov 01, 2004 4:53 pm Post subject: |
|
|
e2fsck -p -f -y -v /dev/hda1
(automatic, force, yes to all, verbose) _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Mon Nov 01, 2004 5:14 pm Post subject: |
|
|
désolé double post.....
Last edited by moulux on Tue Nov 02, 2004 12:10 am; edited 1 time in total |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Mon Nov 01, 2004 9:12 pm Post subject: |
|
|
alors
e2fsck -y -f -v /dev/hda1
hmm pas de checkfs? Oui a mon avis t'en as besoin de celui-la..
voila:
Code: | #!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/checkfs,v 1.42 2004/10/03 00:37:54 vapier Exp $
depend() {
need checkroot modules
}
start() {
local retval=0
# Start software raid.
# You need a properly configured /etc/raidtab for raidtools usage or a
# properly configured /etc/mdadm.conf for mdadm usage. Devices in
# /etc/mdadm.conf are initialized first, so any duplicate devices in
# /etc/raidtab will not get initialized.
if [ -z "${CDBOOT}" -a -f /proc/mdstat ]
then
local mdadm_devices=
local raidtools_devices=
# If /etc/mdadm.conf exists, grab all the RAID devices from it
if [ -f /etc/mdadm.conf ]
then
mdadm_devices=$(awk '/^[[:space:]]*ARRAY/ { print $2 }' /etc/mdadm.conf)
fi
# If /etc/raidtab exists, grab all the RAID devices from it
if [ -f /etc/raidtab ]
then
raidtools_devices=$(awk '/^[[:space:]]*raiddev/ { print $2 }' /etc/raidtab)
fi
ebegin "Starting up RAID devices: "
local rc=0
local retval=0
for i in ${mdadm_devices}
do
local raiddev="${i##*/}"
local raidstat="$(egrep "^${raiddev} : active" /proc/mdstat)"
if [ -z "${raidstat}" ]
then
# First scan the /etc/fstab for the "noauto"-flag
# for this device. If found, skip the initialization
# for it to avoid dropping to a shell on errors.
# If not, try raidstart...if that fails then
# fall back to raidadd, raidrun. If that
# also fails, then we drop to a shell
local retval=1
local noauto="$(egrep "^${i}" /etc/fstab | grep -c 'noauto')"
einfon " Trying ${raiddev}..."
raiddev=""
if [ "${noauto}" -gt 0 ]
then
retval=0
raiddev=" (skipped)"
fi
if [ "${retval}" -gt 0 -a -x /sbin/mdadm ]
then
/sbin/mdadm -As "${i}" &>/dev/null
retval=$?
fi
echo "${raiddev}"
if [ "${retval}" -gt 0 ]
then
rc=1
eend ${retval}
else
ewend ${retval}
fi
fi
done
for i in ${raidtools_devices}
do
local raiddev="${i##*/}"
local raidstat="$(egrep "^${raiddev} : active" /proc/mdstat)"
if [ -z "${raidstat}" ]
then
# First scan the /etc/fstab for the "noauto"-flag
# for this device. If found, skip the initialization
# for it to avoid dropping to a shell on errors.
# If not, try raidstart...if that fails then
# fall back to raidadd, raidrun. If that
# also fails, then we drop to a shell
local retval=1
local noauto="$(egrep "^${i}" /etc/fstab | grep -c 'noauto')"
einfon " Trying ${raiddev}..."
raiddev=""
if [ "${noauto}" -gt 0 ]
then
retval=0
raiddev=" (skipped)"
fi
if [ "${retval}" -gt 0 -a -x /sbin/raidstart ]
then
/sbin/raidstart "${i}"
retval=$?
fi
if [ "${retval}" -gt 0 -a -x /sbin/raid0run ]
then
/sbin/raid0run "${i}"
retval=$?
fi
if [ "${retval}" -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]
then
/sbin/raidadd "${i}"
/sbin/raidrun "${i}"
retval=$?
fi
echo "${raiddev}"
if [ "${retval}" -gt 0 ]
then
rc=1
eend ${retval}
else
ewend ${retval}
fi
fi
done
# A non-zero return means there were problems.
if [ "${rc}" -gt 0 ]
then
echo
eerror "An error occurred during the RAID startup"
eerror "Dropping you to a shell; the system will reboot"
eerror "when you leave the shell."
echo; echo
/sbin/sulogin ${CONSOLE}
einfo "Unmounting filesystems"
/bin/mount -a -o remount,ro &>/dev/null
einfo "Rebooting"
/sbin/reboot -f
fi
fi
#
# EVMS2 summport for /usr, /var ....
#
if [ -z "${CDBOOT}" -a -f /sbin/evms_activate ]
then
ebegin "Activating EVMS2"
evms_activate
retval=$?
eend ${retval}
fi
# LVM support for /usr, /home, /opt ....
# This should be done *before* checking local
# volumes, or they never get checked.
# NOTE: Add needed modules for LVM or RAID, etc
# to /etc/modules.autoload if needed
if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
[ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
then
ebegin "Setting up the Logical Volume Manager"
#still echo stderr for debugging
/sbin/vgscan >/dev/null
if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
[ -f /etc/lvmtab -o -d /etc/lvm ]
then
/sbin/vgchange -a y >/dev/null
fi
eend $? "Failed to setup the LVM"
fi
dm-crypt-start
if [ -f /fastboot -o -n "${CDBOOT}" ]
then
rm -f /fastboot
else
ebegin "Checking all filesystems"
if [ -f /forcefsck ]
then
ewarn "A full fsck has been forced"
fsck -C -R -A -a -f
retval=$?
rm -f /forcefsck
else
fsck -C -T -R -A -a
retval=$?
fi
if [ "${retval}" -eq 0 ]
then
eend 0
elif [ "${retval}" -ge 1 -a "${retval}" -le 3 ]
then
ewend 1 "Filesystem errors corrected."
# Everything should be ok, so return a pass
return 0
else
eend 2 "Fsck could not correct all errors, manual repair needed"
/sbin/sulogin ${CONSOLE}
fi
fi
}
# Note: This function is exactly duplicated in localmount. If you change it
# here, make sure to change it there also!
dm-crypt-start() {
local cryptfs_status=0
local mountline mount swap options pre_mount post_mount source
if [ -f /etc/conf.d/cryptfs ] && [ -x /bin/cryptsetup ]; then
ebegin "Setting up dm-crypt mappings"
while read mountline; do
# skip comments and blank lines
[[ ${mountline}\# == \#* ]] && continue
# check for the start of a new mount/swap
case ${mountline} in
mount=*|swap=*)
# If we have a mount queued up, then execute it
dm-crypt-execute
# Prepare for the next mount/swap by resetting variables
unset mount swap options pre_mount post_mount source
;;
options=*|pre_mount=*|post_mount=*|source=*)
if [[ -z ${mount} && -z ${swap} ]]; then
ewarn "Ignoring setting outside mount/swap section: ${mountline}"
continue
fi
;;
*)
ewarn "Skipping invalid line in /etc/conf.d/cryptfs: ${mountline}"
;;
esac
# Queue this setting for the next call to dm-crypt-execute
eval "${mountline}"
done < /etc/conf.d/cryptfs
# If we have a mount queued up, then execute it
dm-crypt-execute
ewend ${cryptfs_status} "Failed to setup dm-crypt devices"
fi
return ${cryptfs_status}
}
# Setup mappings for an individual mount/swap
#
# Note: This relies on variables localized in dm-crypt-start. This function
# is quite different from the function by the same name in localmount...
dm-crypt-execute() {
local dev target
if [[ -n ${mount} ]]; then
target=${mount}
: ${options:='-c aes -h sha1'}
elif [[ -n ${swap} ]]; then
target=${swap}
: ${options:='-c aes -h sha1 -d /dev/urandom'}
: ${pre_mount:='mkswap ${dev}'}
else
return
fi
if /bin/cryptsetup status ${target} | egrep -q '\<active:'; then
einfo "dm-crypt mapping ${target} is already configured"
return
fi
ebegin "dm-crypt map ${target}"
/bin/cryptsetup ${options} create ${target} ${source} >/dev/console </dev/console
eend $? "failure running cryptsetup"
if [[ $? != 0 ]]; then
cryptfs_status=1
else
if [[ -n ${pre_mount} ]]; then
dev="/dev/mapper/${target}"
ebegin " Running pre_mount commands for ${target}"
eval "${pre_mount}" > /dev/null
ewend $? || cryptfs_status=1
fi
fi
}
# vim:ts=4 |
_________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Tue Nov 02, 2004 12:41 am Post subject: |
|
|
Salut,
merci pour le code.
je vien de voir avec nano et je dispose de la version 1.34 de ce code.
je continue dans la semoule ? ou je re-install le tout ?
Pourtant j'arrive sous kde, mais je suis obligé de faire toujours la manip ctrl+D pour arrivé à l'amorçage de kdm, mais tout le reste est ok.
Le demarrage de kde (3.2.2) fonctionne tres bien.
Pensez-vous que cela puisse venir du faite que ma partition boot soit trop petite ? (32 Mo)
1 ) Que ma partition boot ne devrais pas etre ext2 ?
2 ) Mon disque dur est en fins de course ?
3 ) D'une erreur commise lors de l'installation ?
4) Du faite que c'est un athlon-mp(xp) ???
je dispose de la version 2004.2.
Installation avec le manuel en français sur le site officiel. (stage 3)
A cause de kde (3.3.2) ?????!
merci pour votre aide, j'aimerais bien comprendre pourquoi cela ne fonctionne pas, c'est si bien expliqué dans la doc...
Merci de vos réponses.
P.S :
Code: |
e2fsck -y -f -v /dev/hda1
|
me retourne toujours la même erreur ??!
je comprend plus rien... |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Nov 02, 2004 2:26 pm Post subject: |
|
|
Bon, alors tu rebootes, tu montes ton /boot, tu copies tout ton /boot sur un repertoire temporaire, tu demontes ton /boot, tu mke2fs /dev/hda1, tu remontes ton /boot, tu recopies tout sur /dev/hda1 ...
[EDIT : /dev/hda1 est bien ton /boot ? ) ) _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
moulux n00b
Joined: 01 Nov 2004 Posts: 11 Location: france, var ~ maroc (marrakech)
|
Posted: Tue Nov 02, 2004 7:26 pm Post subject: |
|
|
Bonsoir,
Merci pour votre aide, tout fonctionne correctement à présent.
a+ |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Nov 02, 2004 7:56 pm Post subject: |
|
|
(resolu) dans le titre? Merci! _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
maXrez n00b
Joined: 22 Jan 2004 Posts: 39 Location: France - Montbeliard
|
Posted: Tue Nov 02, 2004 7:57 pm Post subject: |
|
|
c'est pas lui qui a ouvert le topic, il aura du mal |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Nov 02, 2004 8:05 pm Post subject: |
|
|
Je !
Desole, et pkill -9 reply _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
|