[1/2 Resolu] Affichage du menu grub 1.97 .... très long !

Ben oui, si tu n’es pas assez explicite, comment veux-tu que nous puissions t’aider.

Bonjour

J’ai deja vu ca aussi sur la machine d’un ami lors de l’install partie ubuntu de lille, la machine etait un ordi portable neuf (- de 8 jours)
le fais d’install grub sur le mbr a entrainé de grave lenteur au boot ( grub loading environ 20 a 30 secondes) , pour palier a ce probleme nous sommes revenu a grub 1 et la plus de probleme.

la machine se compose de 2 disques interne …

  1. Comment revenir à grub 1 ?
  2. De quoi as-tu besoin comme renseignements complémentaires Ricardo ?

Bon, j’ai du nouveau mais absolument incompréhensible !
Je vais essayer d’être clair. Assez-vous, prenez un aspirine et bon courage pour m’aider.

J’ai déconnecté l’un des deux disques durs. A priori (parce que l’accès aux branchements était difficile) je pense avoir déconnecté le premier disque dur.
Or :

  1. Mon grub, normalement, est en hda (0,1), donc sur ce disque dur mais il s’est lancé tout de même.
  2. Windows Vista apparaissait au menu mais ne se lançait plus (ça, à priori, c’est normal)
  3. Debian s’est lancé mais, au moment de me connecter, il a indiqué que mon /home avait disparu. Or, tout Linux est sur le second DD, celui qui est resté branché !!!
  4. Pour répondre à la question initiale, grub s’est lancé quasi instantanément.

Please, help ! Je n’y comprends plus rien !!! :cry:

[quote=“Papat89”]Bon, j’ai du nouveau mais absolument incompréhensible !
Je vais essayer d’être clair. Assez-vous, prenez un aspirine et bon courage pour m’aider.

J’ai déconnecté l’un des deux disques durs. A priori (parce que l’accès aux branchements était difficile) je pense avoir déconnecté le premier disque dur.
Or :

  1. Mon grub, normalement, est en hda (0,1), donc sur ce disque dur mais il s’est lancé tout de même.
  2. Windows Vista apparaissait au menu mais ne se lançait plus (ça, à priori, c’est normal)
  3. Debian s’est lancé mais, au moment de me connecter, il a indiqué que mon /home avait disparu. Or, tout Linux est sur le second DD, celui qui est resté branché !!!
  4. Pour répondre à la question initiale, grub s’est lancé quasi instantanément.

Please, help ! Je n’y comprends plus rien !!! :cry:[/quote]

Arf… Aurais tu le home sur une partition du premier disque dur ??

Cat /etc/fstab

avec les 2 disques dur connecté peut éclaircir tout çà.

Si malgrè tout, le grub s’est lancé normalement sans le premier disque, il peut y avoir plusieurs explications :

  • matérielle (disque dur, nappe, etc… faiblard) ==> Tests croisés de matériel
  • logicielle (système de fichier un peu en vrac) ==> éventuellement lancer un checkdisk depuis le vista

Comment son identifier tes partitions dans ton grub ( /boot/grub/grub.cfg) il semblerait que ce probleme n’existe que qd grub est installé sur le premier disque et que le boot se trouve sur le deuxieme disque et quand les disques sont identifié par uuid.

quel est la version de ton grub ( regarde dans synaptic ) ou dpkg -l grub-pc

Non, non, mon /home est bien sur le second DD et c’est ça que je ne comprends pas.

/etc/fstab: static file system information.

proc /proc proc defaults 0 0
/dev/sdb5 / ext3 errors=remount-ro 0 1
/dev/sdb9 /home ext3 defaults 0 2
/dev/sda2 /media/FACTORY_IMAGE ntfs defaults,nls=utf8,umask=0222 0 0
/dev/sda1 /media/HP ntfs-3g defaults,locale=fr_FR.UTF-8 0 0
/dev/sdd5 /media/HP\040Pocket\040Media\040Drive ntfs-3g defaults,nosuid,nodev,locale=fr_FR.UTF-8 0 0
/dev/sdc5 /media/HP\040Pocket\040Media\040Drive__ ntfs-3g defaults,nosuid,nodev,uhelper=hal,locale=fr_FR.UTF-8 0 0
/dev/sdb1 none swap sw 0 0
/dev/sdb8 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

et mon grub.cfg :

DO NOT EDIT THIS FILE

It is automatically generated by /usr/sbin/grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

set default=4
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
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
set locale_dir=/boot/grub/locale
set lang=fr
insmod gettext
set timeout=15

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

menuentry “Debian GNU/Linux, with Linux 2.6.30-2-amd64” {
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
linux /boot/vmlinuz-2.6.30-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro quiet
initrd /boot/initrd.img-2.6.30-2-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.30-2-amd64 (recovery mode)” {
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
linux /boot/vmlinuz-2.6.30-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro single
initrd /boot/initrd.img-2.6.30-2-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.26-2-amd64” {
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro quiet
initrd /boot/initrd.img-2.6.26-2-amd64
}
menuentry “Debian GNU/Linux, with Linux 2.6.26-2-amd64 (recovery mode)” {
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set c45504f5-9241-42ed-babd-eb3e1f8e5b95
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro single
initrd /boot/initrd.img-2.6.26-2-amd64
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/30_os-prober

menuentry “Windows Vista (loader) (on /dev/sda1)” {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 8ec8088b382e2b62
chainloader +1
}
menuentry “Windows Vista (loader) (on /dev/sda2)” {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 2c88743c8874071c
chainloader +1
}
menuentry “Ubuntu, Linux 2.6.31-14-generic (on /dev/sdb11)” {
insmod ext2
set root=(hd1,11)
search --no-floppy --fs-uuid --set 390786c7-1333-40b7-b526-83530cbee39a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=390786c7-1333-40b7-b526-83530cbee39a ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry “Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdb11)” {
insmod ext2
set root=(hd1,11)
search --no-floppy --fs-uuid --set 390786c7-1333-40b7-b526-83530cbee39a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=390786c7-1333-40b7-b526-83530cbee39a ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry “linux (on /dev/sdb7)” {
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 5e4b199c-b067-40c0-9835-2d9f9f539d0b
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=5e4b199c-b067-40c0-9835-2d9f9f539d0b resume=UUID=5d0b02c6-aed0-42fa-a454-f122df57906a splash=silent vga=788
initrd (hd1,6)/boot/initrd.img
}
menuentry “linux-nonfb (on /dev/sdb7)” {
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 5e4b199c-b067-40c0-9835-2d9f9f539d0b
linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=5e4b199c-b067-40c0-9835-2d9f9f539d0b resume=UUID=5d0b02c6-aed0-42fa-a454-f122df57906a
initrd (hd1,6)/boot/initrd.img
}
menuentry “failsafe (on /dev/sdb7)” {
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 5e4b199c-b067-40c0-9835-2d9f9f539d0b
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=5e4b199c-b067-40c0-9835-2d9f9f539d0b failsafe
initrd (hd1,6)/boot/initrd.img
}
menuentry “desktop 2.6.29.1-4mnb (on /dev/sdb7)” {
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 5e4b199c-b067-40c0-9835-2d9f9f539d0b
linux /boot/vmlinuz-2.6.29.1-desktop-4mnb BOOT_IMAGE=desktop_2.6.29.1-4mnb root=UUID=5e4b199c-b067-40c0-9835-2d9f9f539d0b resume=UUID=5d0b02c6-aed0-42fa-a454-f122df57906a splash=silent vga=788
initrd (hd1,6)/boot/initrd-2.6.29.1-desktop-4mnb.img
}
menuentry “desktop 2.6.29.6-2mnb (on /dev/sdb7)” {
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 5e4b199c-b067-40c0-9835-2d9f9f539d0b
linux /boot/vmlinuz-2.6.29.6-desktop-2mnb BOOT_IMAGE=desktop_2.6.29.6-2mnb root=UUID=5e4b199c-b067-40c0-9835-2d9f9f539d0b resume=UUID=5d0b02c6-aed0-42fa-a454-f122df57906a splash=silent vga=788
initrd (hd1,6)/boot/initrd-2.6.29.6-desktop-2mnb.img
}

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

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.

END /etc/grub.d/40_custom

La version du grub est 1.97 20091130-1

Au fait, j’ai grub encore installé. Y’a pas conflit entre grub et grub - pc ?

dpkg --list
pas i c’est pour avoir la version et pas pour l’installé

J’ai trouvé ça dans dpkg --list :

ii grub 0.97-59 GRand Unified Bootloader (dummy package)
ii grub-common 1.97+20091130-1 GRand Unified Bootloader, version 2 (common files)
ii grub-pc 1.97+20091130-1 GRand Unified Bootloader, version 2 (PC/BIOS version)

tu as toujours grub1 d’installé et grub2 aussi, regarde si tu a un fichier menu.lst dans /boot/grub et poste le sur le forum pour voir ce qu’il contient

Le voila…

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-legacy-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 change this entry to ‘saved’ 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 5

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=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro

default grub root device

e.g. groot=(hd0,0)

groot=(hd1,5)

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

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=(single-user) single

altoptions=(single-user 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

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 Chainload into GRUB 2
root (hd1,5)
kernel /boot/grub/core.img

title Debian GNU/Linux, kernel 2.6.30-2-amd64
root (hd1,5)
kernel /boot/vmlinuz-2.6.30-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro quiet
initrd /boot/initrd.img-2.6.30-2-amd64

title Debian GNU/Linux, kernel 2.6.30-2-amd64 (simple utilisateur)
root (hd1,5)
kernel /boot/vmlinuz-2.6.30-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro single
initrd /boot/initrd.img-2.6.30-2-amd64

title Debian GNU/Linux, kernel 2.6.26-2-amd64
root (hd1,5)
kernel /boot/vmlinuz-2.6.26-2-amd64 root=UUID=c45504f5-9241-42ed-babd-eb3e1f8e5b95 ro quiet
initrd /boot/initrd.img-2.6.26-2-amd64

END DEBIAN AUTOMAGIC KERNELS LIST

This is a divider, added to separate the menu items below from the Debian

ones.

title Autres OS :
root

This entry automatically added by the Debian installer for a non-linux OS

on /dev/sda1

title Windows Vista
root (hd0,0)
savedefault
makeactive
chainloader +1

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sdb8.

title Ubuntu 9.04, kernel 2.6.28-15-generic (on /dev/sdb8)
root (hd1,7)
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=524cf6c3-41da-4a0f-b915-a91f176f4f9e ro quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
savedefault
boot

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sdb8.

title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode) (on /dev/sdb8)
root (hd1,7)
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=524cf6c3-41da-4a0f-b915-a91f176f4f9e ro single
initrd /boot/initrd.img-2.6.28-15-generic
savedefault
boot

il est complet ?

Oups desolé j’avais pas bien lu

Euh, je viens juste de le remettre en entier.
Là, il est complet

j’avais bien lu

la section concernant debian me donne l’impression d’etre correcte , si quelqu’un d’autre peut le confirmer. apres pour reinstalle grub, il faut que tu supprimes grub2 via apt-get remove grub2 puis que tu lances grub-install XXX ( qui correspond a ton secteur de demarrage)

mais fait valider cela pour ne pas te tromper (je peux me tromper), si il y a une erreur ca risque d’etre plus long que 20 secondes pour choisir ton os.

Bonjour,

J’ai eu aussi des problèmes avec grub2.
problème de lenteur au démarrage avec ubuntu plus error 17,
error 15 avec la debian testing.

c’est peut être dû à ma configue: hda maître=dvd hda esclave=dd sda = dd ?

j’ai réinstallé grub 1 paquet grub-legacy ensuite il faut faire un grub-install et
créer un fichier menu.lst sous /boot/grub .

Fait une recherche avec le mot error (15,17) sur ce forum il y a plein d’infos sur le sujet.

:smt114

Merci encore pour tout mais …

  • Le Grub 1 ne gère pas les partitions en ext4, il me semble. J’en ai, donc … :frowning:
  • J’ai fait un chkdsk sur le DD de Vista qui m’a retourné aucune erreur.
  • J’ai déja installé un Grub 2 avec Ubuntu et il n’était pas aussi long.
  • L’affichage de Grub 2 est long en ce moment et les disques durs tournent à plein pot pendant tout ce temps … comme s’il y avait une recherche de quelque chose !!!

Donc, j’ai encore besoin d’aide, SVP.

il dit quoi df -Ta

Il dit ça :

HP-bureau:/home/patrick# df -Ta
Sys. de fich. Type 1K-blocs Occupé Disponible Capacité Monté sur
/dev/sdb5 ext3 105274528 6557380 93369520 7% /
tmpfs tmpfs 2031028 0 2031028 0% /lib/init/rw
proc proc 0 0 0 - /proc
sysfs sysfs 0 0 0 - /sys
udev tmpfs 10240 408 9832 4% /dev
tmpfs tmpfs 2031028 0 2031028 0% /dev/shm
devpts devpts 0 0 0 - /dev/pts
/dev/sdb9 ext3 272739568 38765032 220120088 15% /home
/dev/sda2 ntfs 10827808 9762544 1065264 91% /media/FACTORY_IMAGE
/dev/sda1 fuseblk 477555268 126528508 351026760 27% /media/HP
/dev/sdd5 fuseblk 78140128 29047184 49092944 38% /media/HP Pocket Media Drive
/dev/sdc2 fuseblk 90700796 40110412 50590384 45% /media/Sauvegardes
/dev/sdc1 fuseblk 65585968 47743236 17842732 73% /media/WD Passport
nfsd nfsd 0 0 0 - /proc/fs/nfsd


C'est pas du ext4 mais du ext3

C’est pas du ext4 mais du ext3