#1 Le 01/01/2010, à 22:08
- seb73
start x ne démarre plus comment faire ?
Au boot j fais ESC pour accéder au choix dans le grub,
je choisi le choix 2 "Ubuntu 9.10, krnel 2.6.28-17 generique (recover mode)
Arrivé au Recovery Menu je fais Cancel
j'arrive ensuite en ligne de commande
sebastien-laptop login: xxxxxx
Password: xxxxx
Ensuite j'obtiens
sebastien@sebastien-laptop:~$ je tape startx
et je retrouve mon ordinateur comme avant mais comment faire pour qu'il démarre tous seul correctement sans que je dois effectuer toute c'est manipulation ?
Merci de vôtre aide
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#2 Le 01/01/2010, à 22:13
- Dr Le Rouge
Re : start x ne démarre plus comment faire ?
Salut !
Pourquoi séléectionnes-tu le choix 2 (recovery mode) ? Choisis le premier !
Recovery mode correspond à une utilisation en mode console en cas de problème du serveur X (c'est à dire si l'interface graphique plante). Si startx fonctionne, tu ne devrais pas sélectionner le recovery mode, mais le premier.
J'espère que ça fonctionnera !
C'est deux suites de Cauchy qui veulent aller à la soirée 'no limit'. Hélas, à l'entrée le videur leur dit : "désolé, c'est complet !".
mon site perso (π²/6.fr) et mon blog
Hors ligne
#3 Le 01/01/2010, à 22:23
- seb73
Re : start x ne démarre plus comment faire ?
Merci de ta réponse Le rouge, mais si je choisi le choix 1 mon pc redémarre immédiatement ...
je ne sais vraient pas quoi faire
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#4 Le 01/01/2010, à 22:37
- casuandre
Re : start x ne démarre plus comment faire ?
Merci de ta réponse Le rouge, mais si je choisi le choix 1 mon pc redémarre immédiatement ...
je ne sais vraient pas quoi faire
Ton PC demarre comme suit
BOOT
GRUB (ton choix ubuntu admettons)
UBUNTU
UBUNTU/GNOME (admettons que ton interface garphique soit Gnome)
Pourquoi tu fais ESC ?
Quel choix as tu ?
et si tu fais rien ?
Travail avec GNU/Linux en tant que commerçant indépendant depuis 2001.
Hors ligne
#5 Le 01/01/2010, à 23:13
- seb73
Re : start x ne démarre plus comment faire ?
Merci de ta réponse casuandre
je fais ESC parce que sinon mon pc reboot tous seul et tourne en rond
les choix que j'ai sont:
Ubuntu 9.10, kernel 2.6.31-16-generic
Ubuntu 9.10, kernel 2.6.31-16-generic (recovery mode)
Ubuntu 9.10, kernel 2.6.28-17-generic
Ubuntu 9.10, kernel 2.6.28-17-generic (recovery mode)
Ubuntu 9.10, memtest86+
et si je fais rien mon pc démarre en boucle
en fesant un copier coller de mes 4 mode de démarrage je m'apercois que le premier choix n'est pas comme les autre peut être le problème vient de la ?
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
quiet
uuid a326f17c-ec79-4af0-9c14-4647a897712e
title Ubuntu 9.10, kernel 2.6.31-16-generic (recovery mode)
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro single
initrd /boot/initrd.img-2.6.31-16-generic
title Ubuntu 9.10, kernel 2.6.28-17-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
quiet
title Ubuntu 9.10, kernel 2.6.28-17-generic (recovery mode)
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro single
initrd /boot/initrd.img-2.6.28-17-generic
title Ubuntu 9.10, memtest86+
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#6 Le 02/01/2010, à 00:05
- casuandre
Re : start x ne démarre plus comment faire ?
Je sais pas trop quel contenu de fichier tu me montre mais enfin si tu arrive à demarrer en (admetton) recovery mode.
Ouvre le terminal pour :
Configuration/reconfiguration automatisée
sudo update-grub
Lit le contenu de ces fichiers un à un :
1.
/boot/grub/device.map
2.
/etc/default/grub
3.
l'ensemble des fichiers contenus à la racine du dossier /etc/grub.d/pour générer automatiquement un nouveau grub.cfg
Travail avec GNU/Linux en tant que commerçant indépendant depuis 2001.
Hors ligne
#7 Le 02/01/2010, à 00:10
- seb73
Re : start x ne démarre plus comment faire ?
c'est le menu.lst du grub, ok merci pour les infos je vais regarder ça de suite je te tiens informer
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#8 Le 02/01/2010, à 00:13
- Compte anonymisé
Re : start x ne démarre plus comment faire ?
Salut
modifies ceci :
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
quiet
@+
#9 Le 02/01/2010, à 00:44
- casuandre
Re : start x ne démarre plus comment faire ?
c'est le menu.lst du grub, ok merci pour les infos je vais regarder ça de suite je te tiens informer
C'est louche ton truc, tu as fichier menu.lst avec karmic ?
Normalement tu dois avoir Grub2 ?
Travail avec GNU/Linux en tant que commerçant indépendant depuis 2001.
Hors ligne
#10 Le 02/01/2010, à 01:04
- seb73
Re : start x ne démarre plus comment faire ?
Salut
modifies ceci :
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
quiet@+
jeanjd63,
je pensé bien modifier cela après l'avoir fait il continue le démarrage mais il affiche une erreur du type
usplash: setting mode 1152x failed
usplash: using mode 1024x768 mais cela passe trop vite je n'est pas le temps de la recopier
casuandre la manip que tu me conseil de faire je peut toujours la faire ? mon menu.lst ce trouve dans /boot/grub/
mais je ne sais pas ce que le karmic
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#11 Le 02/01/2010, à 01:18
- seb73
Re : start x ne démarre plus comment faire ?
casuandre,
le1.
/boot/grub/device.map = (hd0) /dev/sda
2.
/etc/default/grub le repertoire ou fichier grub n'existe pas
3.
l'ensemble des fichiers contenus à la racine du dossier /etc/grub.d/
j'ai fait un copier coller des différent fichiers qui ce trouve dans le /etc/grub.d/
Il y a le 00_header le 10_linux le 20_memtest86+ les 30_os-prober le 40_custom
mais je ne sais pas comment générer un nouveau grub.cfg
Merci de votre aide
[b]le 00_header[/b]
#! /bin/sh -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
transform="s,x,x,"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
grub_prefix=`echo /boot/grub | sed ${transform}`
. ${libdir}/grub/grub-mkconfig_lib
# Do this as early as possible, since other commands might depend on it.
# (e.g. the `loadfont' command might need lvm or raid modules)
for i in ${GRUB_PRELOAD_MODULES} ; do
echo "insmod $i"
done
if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi
cat << EOF
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="${GRUB_DEFAULT}"
if [ \${prev_saved_entry} ]; then
saved_entry=\${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
EOF
case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
serial:* | *:serial)
if ! test -e ${grub_prefix}/serial.mod ; then
echo "Serial terminal not available on this platform." >&2 ; exit 1
fi
if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."
GRUB_SERIAL_COMMAND=serial
fi
echo "${GRUB_SERIAL_COMMAND}"
;;
esac
case x${GRUB_TERMINAL_INPUT} in
x)
# Just use the native terminal
;;
x*)
cat << EOF
if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_input
terminal ${GRUB_TERMINAL_INPUT}
fi
EOF
;;
esac
case x${GRUB_TERMINAL_OUTPUT} in
xgfxterm)
# Make the font accessible
prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`
cat << EOF
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
set gfxmode=${GRUB_GFXMODE}
insmod gfxterm
insmod ${GRUB_VIDEO_BACKEND}
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
EOF
;;
x)
# Just use the native terminal
;;
x*)
cat << EOF
if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal ${GRUB_TERMINAL_OUTPUT}
fi
EOF
;;
esac
cat << EOF
if [ \${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=${GRUB_TIMEOUT}
fi
EOF
[b]
le 10_linux[/b]
#! /bin/sh -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=GNU/Linux
else
OS="${GRUB_DISTRIBUTOR}"
fi
# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
/dev/loop/*|/dev/loop[0-9])
GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
# We can't cope with devices loop-mounted from files here.
case ${GRUB_DEVICE} in
/dev/*) ;;
*) exit 0 ;;
esac
;;
esac
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
|| [ "`grub-probe -t abstraction --device ${GRUB_DEVICE} | sed -e 's,.*\(lvm\).*,\1,'`" = "lvm" ] ; then
LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi
# add crashkernel option if we have the required tools
if [ -x "/usr/bin/makedumpfile" ] && [ -x "/sbin/kexec" ]; then
GRUB_CMDLINE_EXTRA="$GRUB_CMDLINE_EXTRA crashkernel=384M-2G:64M,2G-:128M"
fi
linux_entry ()
{
cat << EOF
menuentry "$1" {
recordfail=1
if [ -n \${have_grubenv} ]; then save_env recordfail; fi
EOF
if [ "x$3" = "xquiet" ]; then
cat << EOF
set quiet=1
EOF
fi
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
cat << EOF
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
EOF
if test -n "${initrd}" ; then
cat << EOF
initrd ${rel_dirname}/${initrd}
EOF
fi
cat << EOF
}
EOF
}
list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
while [ "x$list" != "x" ] ; do
linux=`version_find_latest $list`
echo "Found linux image: $linux" >&2
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" \
"initrd-${version}" "initrd.img-${alt_version}" \
"initrd-${alt_version}.img" "initrd-${alt_version}"; do
if test -e "${dirname}/${i}" ; then
initrd="$i"
break
fi
done
if test -n "${initrd}" ; then
echo "Found initrd image: ${dirname}/${initrd}" >&2
else
# "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi
linux_entry "${OS}, Linux ${version}" \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_EXTRA} ${GRUB_CMDLINE_LINUX_DEFAULT}" \
quiet
if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
linux_entry "${OS}, Linux ${version} (recovery mode)" \
"single ${GRUB_CMDLINE_LINUX}"
fi
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
[b]le 20_memtest86+[/b]
#!/bin/sh
set -e
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
# older versions of grub2 do not have this yet (LP: #459080)
if [ ! -e ${libdir}/grub/grub-mkconfig_lib ]; then
echo "no grub-mkconfig_lib, exiting"
exit 0
fi
. ${libdir}/grub/grub-mkconfig_lib
# We can't cope with loop-mounted devices here.
case ${GRUB_DEVICE_BOOT} in
/dev/loop/*|/dev/loop[0-9])
exit 0
;;
esac
if test -e /boot/memtest86+.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86+.bin" )
echo "Found memtest86+ image: $MEMTESTPATH" >&2
cat << EOF
menuentry "Memory test (memtest86+)" {
linux16 $MEMTESTPATH
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 $MEMTESTPATH console=ttyS0,115200n8
}
EOF
fi
[b]le 30_os-prober[/b]
#! /bin/sh -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib
found_other_os=
adjust_timeout () {
if [ "x${found_other_os}" = "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
verbose=
else
verbose=" --verbose"
fi
if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
cat <<EOF
if [ \${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=0
fi
fi
fi
EOF
else
cat << EOF
if [ \${timeout} != -1 ]; then
if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
set timeout=0
fi
fi
EOF
fi
fi
fi
}
if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
adjust_timeout
exit 0
fi
if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
# missing os-prober and/or linux-boot-prober
adjust_timeout
exit 0
fi
OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
if [ -z "${OSPROBED}" ] ; then
# empty os-prober output, nothing doing
adjust_timeout
exit 0
fi
for OS in ${OSPROBED} ; do
DEVICE="`echo ${OS} | cut -d ':' -f 1`"
LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
BOOT="`echo ${OS} | cut -d ':' -f 4`"
if [ -z "${LONGNAME}" ] ; then
LONGNAME="${LABEL}"
fi
echo "Found ${LONGNAME} on ${DEVICE}" >&2
found_other_os=1
case ${BOOT} in
chain)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
case ${LONGNAME} in
Windows\ Vista*|Windows\ 7*)
;;
*)
cat << EOF
drivemap -s (hd0) \${root}
EOF
;;
esac
cat <<EOF
chainloader +1
}
EOF
;;
linux)
LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
for LINUX in ${LINUXPROBED} ; do
LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
if [ -z "${LLABEL}" ] ; then
LLABEL="${LONGNAME}"
fi
if [ "${LROOT}" != "${LBOOT}" ]; then
LKERNEL="${LKERNEL#/boot}"
LINITRD="${LINITRD#/boot}"
fi
cat << EOF
menuentry "${LLABEL} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/"
cat << EOF
linux ${LKERNEL} ${LPARAMS}
EOF
if [ -n "${LINITRD}" ] ; then
cat << EOF
initrd ${LINITRD}
EOF
fi
cat << EOF
}
EOF
done
;;
macosx)
OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
cat << EOF
insmod vbe
do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
do_resume=1
fi
fi
if [ \$do_resume == 0 ]; then
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
xnu_kernel /mach_kernel boot-uuid=\${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devtree.txt ]; then
xnu_devtree /Extra/devtree.txt
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
EOF
;;
hurd|*)
echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2
;;
esac
done
adjust_timeout
[b]le 40_custom[/b]
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
[b]le readme[/b]
All executable files in this directory are processed in shell expansion order.
00_*: Reserved for 00_header.
10_*: Native boot entries.
20_*: Third party apps (e.g. memtest86+).
The number namespace in-between is configurable by system installer and/or
administrator. For example, you can add an entry to boot another OS as
01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
the menu; and then adjust the default setting via /etc/default/grub.
Dernière modification par seb73 (Le 02/01/2010, à 12:43)
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#12 Le 02/01/2010, à 01:27
- casuandre
Re : start x ne démarre plus comment faire ?
jeanjd63 a écrit :Salut
modifies ceci :
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
quiet@+
jeanjd63,
je pensé bien modifier cela après l'avoir fait il continue le démarrage mais il affiche une erreur du type
usplash: setting mode 1152x failed
usplash: using mode 1024x768 mais cela passe trop vite je n'est pas le temps de la recopiercasuandre la manip que tu me conseil de faire je peut toujours la faire ? mon menu.lst ce trouve dans /boot/grub/
mais je ne sais pas ce que le karmic
Et bien en fait le ubuntu 9.10 a pour nom Karmic. Donc 9.10 = Karmic.
Après tu as surement fais une upgrade (mise à niveau) de 9.04 (jaunty) à 9.10 et c'est pour cela que tu as encore GRUB et pas GRUB2.
Pour ce soir moi je pense que tu peux tenter le "sudo update-grub" sans problème et même si je suis pessimiste sur le resultat.
http://doc.ubuntu-fr.org/grub
voir "Pour Ubuntu à partir de Karmic"
Travail avec GNU/Linux en tant que commerçant indépendant depuis 2001.
Hors ligne
#13 Le 02/01/2010, à 01:38
- seb73
Re : start x ne démarre plus comment faire ?
Merci vraiment pour tous les conseil et aides je me sens moin seul avec mon problème effectivement j'ai fait une upgrade de 9.06 au 9.10 j'essaye de faire la mise à jour du grub et je poste le résultat je te remercie de ton temp bonne soirée merci encore
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#14 Le 02/01/2010, à 08:43
- Compte anonymisé
Re : start x ne démarre plus comment faire ?
......
je pensé bien modifier cela après l'avoir fait il continue le démarrage mais il affiche une erreur du type
usplash: setting mode 1152x failed
usplash: using mode 1024x768 mais cela passe trop vite je n'est pas le temps de la recopier
Et maintenant ça démarre ou pas ?
Si non, peux-tu lister l'intégralité du fichier menu.lst (entre balises Code pour + de lisibilité)
Tu peux aussi remodifier le paragraphe ainsi :
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro
initrd /boot/initrd.img-2.6.31-16-generic
quiet
Suppression de "quiet splash" en fin de ligne kernel.
Si c'est ok, tu peux, si tu le souhaites basculer vers grub-pc. Il faut savoir que de nombreux problèmes semblent perturber les utilisateurs avec ce nouveau booloader.
Normalement lors du passage en 9.10, tu devrais avoir dans menu.lst une ligne supplémentaire de ce type :
"Chainload into grub 2" afin de tester ce nouveau bootloader.
Si tu ne l'as pas c'est que la mise à jour n'est peut être pas complète.
Sinon la commande pour "basculer" vers grub-pc :
1) sauver le grub actuel (au cas où) :
sudo mkdir /boot/grub-sov
sudo cp -a /boot/grub/* /boot/grub-sov
Et ensuite
sudo upgrade-from-grub-legacy
@+
#15 Le 02/01/2010, à 12:18
- seb73
Re : start x ne démarre plus comment faire ?
Non ça ne démarre pas après le message d'erreur j'ai un écran noir avec un curseur de souris en forme de croix.
j'ai effectivement regarder sur le net pour le grub mais j'ai une réel crainte a passé sur le nouveaux grub, après avoir tenté un upgrate-grub il me dis que la command n'est pas trouver.
Si je peut me permetre "lister" cela veut ien dire de faire un copier coller ici ?
merci de votre accompagnement
je démarre le pc en question et je commence les manips que tu ma indiqué
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#16 Le 02/01/2010, à 12:29
- seb73
Re : start x ne démarre plus comment faire ?
j'ai effectué la modif du premier paragraphe hier c'est après cela que j'obtien un message d'erreur ( a quoi sert le quiet car il est bien présent a la fin mais pas le splash je commence l'installation du grub pc en suivant t'es indication
j'espère que j'ai bien compris ta demandede lister le code de menu.lst avec balise code
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=a326f17c-ec79-4af0-9c14-4647a897712e
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-16-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
quiet
title Ubuntu 9.10, kernel 2.6.31-16-generic (recovery mode)
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro single
initrd /boot/initrd.img-2.6.31-16-generic
title Ubuntu 9.10, kernel 2.6.28-17-generic
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro quiet splash
initrd /boot/initrd.img-2.6.28-17-generic
quiet
title Ubuntu 9.10, kernel 2.6.28-17-generic (recovery mode)
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/vmlinuz-2.6.28-17-generic root=UUID=a326f17c-ec79-4af0-9c14-4647a897712e ro single
initrd /boot/initrd.img-2.6.28-17-generic
title Ubuntu 9.10, memtest86+
uuid a326f17c-ec79-4af0-9c14-4647a897712e
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#17 Le 02/01/2010, à 12:39
- seb73
Re : start x ne démarre plus comment faire ?
Je viens de faire les 3 étapes pour "basculer" vers grub-pc : mais il n'accepte pas la commande sudo: upgrade-from-grub-legacy: command not found :s
voici un copier coller de mon terminal :
sebastien@sebastien-laptop:~$ sudo mkdirr /boot/grub-sov
[sudo] password for sebastien:
sudo: mkdirr: command not found
sebastien@sebastien-laptop:~$ sudo mkdir /boot/grub-sov
sebastien@sebastien-laptop:~$ sudo cp -a /boot/grub/* /boot/grub-sov
sebastien@sebastien-laptop:~$ sudo upgrade-from-grub-legacy
sudo: upgrade-from-grub-legacy: command not found
sebastien@sebastien-laptop:~$ sudo upgrade-from-grub-legacy
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#18 Le 02/01/2010, à 12:48
- sinbad83
Re : start x ne démarre plus comment faire ?
Il te manque une commande, l'installation du paquet grub-pc après avoir fait la sauvegarde de /boot/grub/:
sudo apt-get install grub-pc
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
#19 Le 02/01/2010, à 12:53
- seb73
Re : start x ne démarre plus comment faire ?
Merci sinbad83,
donc je fait ceci ? si je comprend bien désolé je débute et j'ai peur de faire une bétise
mais je tiens à remercier tous ceux qui simplique pour m'aider car entré dans la comunauté du libre et un vrais plaisir
sudo apt-get install grub-pc
puis
sudo upgrade-from-grub-legacy
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#20 Le 02/01/2010, à 13:09
- sinbad83
Re : start x ne démarre plus comment faire ?
C'est bien cela. Doc sur http://doc.ubuntu-fr.org/grub-pc#upgrade_depuis_grub-legacy
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
#21 Le 02/01/2010, à 13:15
- seb73
Re : start x ne démarre plus comment faire ?
après avoir commencer l'installation de grub-pc avec la comande "sudo apt-get install grub-pc"
j'obtien ceci dans le terminal que dois je répondre" mon coeur bat trè vite "
Outil de configuration des paquets
Configuration de grub-pc
Une installation standard de GRUB a été détectée dans /boot/grub.
Afin de remplacer cette installation, il est recommandé de modifier
/boot/grub/menu.lst pour enchaîner le chargement de GRUB 2 depuis l'installation
standard de GRUB (« chainload »). Veuillez choisir si vous souhaitez effectuer
cette modification.
Il est recommandé de choisir cette option pour pouvoir confirmer le bon fonctionnement de GRUB 2 avant de l'installer directement sur le secteur
d'amorçage (MBR : « Master Boot Record »).
Dans tous les cas, pour charger GRUB 2 directement depuis le secteur d'amorçage,
vous devrez utiliser la commande suivante avec les privilèges du
superutilisateur:
upgrade-from-grub-legacy
Faut-il enchaîner le chargement depuis menu.lst ?
<Oui> <Non>
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#22 Le 02/01/2010, à 13:15
- seb73
Re : start x ne démarre plus comment faire ?
C'est bien cela. Doc sur http://doc.ubuntu-fr.org/grub-pc#upgrade_depuis_grub-legacy
je suis déja dessu merci
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#23 Le 02/01/2010, à 13:19
- seb73
Re : start x ne démarre plus comment faire ?
j'ai vraiment peur car il n'accepte pas l commande update-grub et je ne sais pas ou je dois l'installer dans le tuto on aurais le choix entre dev/sda et dev/sdb comment puis je savoir ou l'installer ? je sais je pose beauoups de question :s
Son nom provient d’un ancien mot bantou (famille de langues africaines), quelqu'un d'ubuntu désignant une personne sachant que ce qu'elle est, est intimement lié à ce que sont les autres, donc il est parfois traduit en l'appliquant au "je": «Je suis ce que je suis grâce à ce que nous sommes tous» .
Hors ligne
#24 Le 02/01/2010, à 15:08
- Compte anonymisé
Re : start x ne démarre plus comment faire ?
Non ça ne démarre pas après le message d'erreur j'ai un écran noir avec un curseur de souris en forme de croix.
j'ai effectivement regarder sur le net pour le grub mais j'ai une réel crainte a passé sur le nouveaux grub, après avoir tenté un upgrate-grub il me dis que la command n'est pas trouver.
Si je peut me permetre "lister" cela veut ien dire de faire un copier coller ici ?
merci de votre accompagnement
je démarre le pc en question et je commence les manips que tu ma indiqué
Et pourquoi n'as-tu pas supprimé le "quiet splash" à la fin de la ligne kernel dans le fichier menu.lst ????
Il faut toujours prendre les choses en séquence, tester etc...
@+
#25 Le 02/01/2010, à 15:17
- sinbad83
Re : start x ne démarre plus comment faire ?
Pas de frayeur à avoir.
La doc parle de /dev/sda ou de /dev/sdb, c'est pour le choix du disque pour y installer le grub sur le MBR. Tu n'es pas concerné apparemment. Update-grub est, comme son nom l'indique, pour faire la mise à jour du grub. Ce n'est pas encore le moment.
Dans ton cas, tu as 2 solutions:
- installation du menu Grub à partir de la version précédente, c'est la commande
sudo upgrade-from-grub-legacy
- installation directe:
sudo grub-install /dev/sda
Ce qui suppose qu'on a auparavant installé le paquet grub-pc.
Après l'une ou l'autre solution, on redémarre en mode normal et on lance ensuite
sudo upgrade-grub
Dernière modification par sinbad83 (Le 02/01/2010, à 15:17)
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne