Pages : 1
#1 Le 08/02/2010, à 13:16
- patatchod
[RESOLU] Grub loading trés long...
Bonjour,
Suite à un changement de PC portable, j'ai installé Karmic sur un Acer Aspire 7738G, en dual boot avec Windows 7.
L'installation fonctionne correctement à un ou deux petits désagréments près, notamment le temps de chargement du Grub que je trouve anormalement long : "Grub loading" reste affiché pendant environ 30 secondes avant d'avoir le menu classique.
C'est pas bloquant, mais c'est dommage d'avoir un temps de boot rallongé de 30 secondes lorsque l'on sait que ce temps a particulièrement été travaillé dans pour les versions 9.04 et 9.10...
Dernière modification par patatchod (Le 17/02/2010, à 19:34)
C'est ici qu'on écrit un truc rigolo ?
Hors ligne
#2 Le 10/02/2010, à 12:39
- Bigcake
Re : [RESOLU] Grub loading trés long...
Bonjour,
Tu peux changer ce temps en ouvrant le fichier /boot/grub/menu.lst avec les droits administrateur (root).
Tu a une ligne normalement vers le debut :
timeout 30
il suffit de changer le 30 en 3, c'est ce que j'ai mis chez moi, 3 secondes c'est pas trop long mais suffisant pour réagir mollement
"Les gens" ne sont pas cons, ils ont été habitués à la facilité et à la désinformation. Le meilleur moyen de ne pas les aider, c'est de se moquer. Le meilleur moyen de les aider, c'est de les informer, encore et encore. La réflexion viendra. N'oubliez pas que vous aussi, vous êtes le con d'un autre.
Smartphone+GNU/Linux=Librem5
Hors ligne
#3 Le 11/02/2010, à 13:55
- patatchod
Re : [RESOLU] Grub loading trés long...
Salut et merci pour ta réponse mais le problème n'est pas là. Le timeout que tu me dis de régler concerne le temps imparti pour choisir l'option de boot.
Mon soucis, c'est que le temps d'attente dont je parle se passe avant même que le menu de choix s'affiche.
Je n'ai que "Grub loading" pendant 30 s puis le menu de choix...
C'est ici qu'on écrit un truc rigolo ?
Hors ligne
#4 Le 11/02/2010, à 17:06
- Bigcake
Re : [RESOLU] Grub loading trés long...
tiens... étrange, j'avais le souvenir que c'était ça....
Si tu a une ligne avec "hiddenmenu", tu peux la commenter avec #, ça te fera arriver directement sur le grub
mmm tu a peut-être grub2..., a ce moment la.... il faut regarder du coté /etc/default/grub
et je te laisse faire un petit tour dans la doc pour ça : http://doc.ubuntu-fr.org/grub-pc?s[]=grub
"Les gens" ne sont pas cons, ils ont été habitués à la facilité et à la désinformation. Le meilleur moyen de ne pas les aider, c'est de se moquer. Le meilleur moyen de les aider, c'est de les informer, encore et encore. La réflexion viendra. N'oubliez pas que vous aussi, vous êtes le con d'un autre.
Smartphone+GNU/Linux=Librem5
Hors ligne
#5 Le 12/02/2010, à 12:00
- patatchod
Re : [RESOLU] Grub loading trés long...
Merci BigCake, je vais regarder ça !
C'est ici qu'on écrit un truc rigolo ?
Hors ligne
#6 Le 12/02/2010, à 12:22
- malbo
Re : [RESOLU] Grub loading trés long...
patatchod,
Si tu peux démarrer une session live CD Karmic (pas une version antérieure de Ubuntu) ou une session live USB Karmic, tu peux réaliser la manip du lien suivant et je peux examiner si je vois une anomalie dans le résultat obtenu qui serait susceptible de correspondre à ton problème (ce n'est pas une IRM non plus, on ne voit pas tout, tout, tout) :
http://forum.ubuntu-fr.org/viewtopic.php?pid=3226641#p3226641
Si tu le fais, poste bien le résultat en utilisant les balises code. Sinon, ça fait crade.
Dernière modification par malbo (Le 12/02/2010, à 12:24)
Hors ligne
#7 Le 17/02/2010, à 10:58
- patatchod
Re : [RESOLU] Grub loading trés long...
Salut malbo,
Désolé pour le retard de la réponse...
Voici donc le résultat du script :
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for
(UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /boot/bcd
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD
sda4: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 2048.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sdb1: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb6: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disque /dev/sda: 500.1 Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres, total 976773168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Identifiant de disque : 0x13961396
Partition Boot Start End Size Id System
/dev/sda1 2,048 24,578,047 24,576,000 27 Hidden HPFS/NTFS
/dev/sda2 24,578,048 31,918,079 7,340,032 12 Compaq diagnostics
/dev/sda3 * 31,918,080 32,122,879 204,800 7 HPFS/NTFS
/dev/sda4 32,122,880 976,773,119 944,650,240 f W95 Ext d (LBA)
/dev/sda5 32,124,928 976,771,119 944,646,192 7 HPFS/NTFS
Drive: sdb ___________________ _____________________________________________________
Disque /dev/sdb: 500.1 Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres, total 976773168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Identifiant de disque : 0x139a139a
Partition Boot Start End Size Id System
/dev/sdb1 63 39,070,079 39,070,017 83 Linux
/dev/sdb2 39,070,080 976,768,064 937,697,985 5 Extended
/dev/sdb5 39,070,143 46,877,669 7,807,527 82 Linux swap / Solaris
/dev/sdb6 46,877,733 976,768,064 929,890,332 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 DAA41C49A41C2B11 ntfs PQSERVICE
/dev/sda2 C24470A444709CBB ntfs ARCADE
/dev/sda3 E64CCFA84CCF723B ntfs SYSTEM RESERVED
/dev/sda5 527C9DD27C9DB169 ntfs ACER
/dev/sdb1 5f7f4251-4938-43ff-8dd7-bb52000a423f ext4
/dev/sdb5 1e918f95-2dab-44ed-8f3b-a8f39b0638d9 swap
/dev/sdb6 fc7d3f6f-db5a-4de5-817d-236889989f68 ext4
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdb1 / ext4 (rw,errors=remount-ro)
/dev/sdb6 /home ext4 (rw)
=========================== sdb1/boot/grub/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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set 5f7f4251-4938-43ff-8dd7-bb52000a423f
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
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set 5f7f4251-4938-43ff-8dd7-bb52000a423f
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set 5f7f4251-4938-43ff-8dd7-bb52000a423f
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set 5f7f4251-4938-43ff-8dd7-bb52000a423f
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set 5f7f4251-4938-43ff-8dd7-bb52000a423f
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### 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 daa41c49a41c2b11
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set e64ccfa84ccf723b
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda5)" {
insmod ntfs
set root=(hd0,5)
search --no-floppy --fs-uuid --set 527c9dd27c9db169
chainloader +1
}
### 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 ###
=============================== sdb1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb1 during installation
UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=fc7d3f6f-db5a-4de5-817d-236889989f68 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=1e918f95-2dab-44ed-8f3b-a8f39b0638d9 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sdb1: Location of files loaded by Grub: ===================
3.0GB: boot/grub/core.img
3.0GB: boot/grub/grub.cfg
.7GB: boot/initrd.img-2.6.31-14-generic
3.6GB: boot/initrd.img-2.6.31-19-generic
2.4GB: boot/vmlinuz-2.6.31-14-generic
2.9GB: boot/vmlinuz-2.6.31-19-generic
3.6GB: initrd.img
.7GB: initrd.img.old
2.9GB: vmlinuz
2.4GB: vmlinuz.old
C'est ici qu'on écrit un truc rigolo ?
Hors ligne
#8 Le 17/02/2010, à 11:58
- malbo
Re : [RESOLU] Grub loading trés long...
Dans le tout début, je vois :
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for
(UUID=5f7f4251-4938-43ff-8dd7-bb52000a423f)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
Sans que je puisse affirmer que le problème de lenteur vienne de là, il y a une grosse anomalie dans ton installation : comme tu vois dans le Boot Info Summary que je viens de coller, Grub est installé sur le disque dur sda alors qu'il devrait être installé sur sdb. Explications : à partir du moment où tu as deux disques durs, il est logique que Grub soit installé dans le MBR du disque dur sur lequel Ubuntu est installé. De même qu'il serait logique qu'un MBR compatible Win7 soit installé dans sda. Alors que là, c'est l'inverse qui est fait.
Pour moi, il faudrait que tu démarres sur Ubuntu installé sur le disque dur et que tu fasses l'install de Grub dans le MBR de sdb avec la commande suivante passée dans un terminal :
sudo grub-install /dev/sdb
Puis que tu redémarres le PC en intervenant dans le BIOS (tapote la touche Suppr, je pense que ça devrait le faire) pour changer la priorité du disque dur (je pense que ça doit s'appeler "Hard disk priority") pour que ce soit le disque sdb qui soit prioritaire, puis tu sauvegarde avant de sortir du BIOS et ça devrait le faire.
Quand ce point là sera réglé, il conviendrait par symétrie d'installer le lanceur de Windows dans le MBR du disque dur sda (cela dit, tu peux laisser le Grub actuel qui - bien que très lent - arrive quand même à faire démarrer tes OS). Tu trouveras comment faire dans toutes les bonnes pharmacies Windowsiennes mais le jour où tu fais cela, je te conseille de débrancher le disque sdb pour éviter de patauger encore dans les MBR et te retrouver avec des MBR croisés comme dans ta situation actuelle.
Dernière modification par malbo (Le 17/02/2010, à 21:01)
Hors ligne
#9 Le 17/02/2010, à 19:32
- patatchod
Re : [RESOLU] Grub loading trés long...
Salut malbo ... et grand merci !!!
J'ai fait la manip que tu m'a proposée et maintenant j'ai le menu de boot qui s'affiche instantanément...
Super !
C'est ici qu'on écrit un truc rigolo ?
Hors ligne
#10 Le 17/02/2010, à 20:49
- malbo
Re : [RESOLU] Grub loading trés long...
C'est un plaisir de t'avoir aidé.
Hors ligne
#11 Le 23/04/2010, à 20:09
- spamosaurus
Re : [RESOLU] Grub loading trés long...
Fantastique!
J'avais le même problème, la réponse est limpide et efficace!
Vive malbo! Vive Ubuntu! Vive la france! (J'en fais un peu trop, peut-être?..)
Hors ligne
#12 Le 01/05/2010, à 19:41
- wake81
Re : [RESOLU] Grub loading trés long...
Hello,
Je soupçonne avoir le même problème
J'ai 2 disques, l'un avec ubuntu 10.4 et l'autre avec windows xp (sic) ubuntu boot et est reconnu par grub, mais ce n'est pas le cas de windows
Je me permet donc de poster le résultat du même script ici :
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> No boot loader is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disque /dev/sda: 250.1 Go, 250059350016 octets
255 têtes, 63 secteurs/piste, 30401 cylindres, total 488397168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 2,046 29,411,327 29,409,282 5 Extended
/dev/sda5 2,048 29,411,327 29,409,280 83 Linux
/dev/sda2 29,411,328 484,489,215 455,077,888 83 Linux
/dev/sda3 484,491,264 488,396,799 3,905,536 82 Linux swap / Solaris
Drive: sdb ___________________ _____________________________________________________
Disque /dev/sdb: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 63 625,121,279 625,121,217 7 HPFS/NTFS
Drive: sdc ___________________ _____________________________________________________
Disque /dev/sdc: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 63 625,137,344 625,137,282 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1: PTTYPE="dos"
/dev/sda2 a8f07567-4a7d-4def-b6df-9f52884906b3 ext4
/dev/sda3 b6220ab9-447f-495f-b6a6-c52e525e46ea swap
/dev/sda5 d737fed5-2618-46d1-98f4-d429f052e34c ext4
/dev/sda: PTTYPE="dos"
/dev/sdb1 B0744C67744C3280 ntfs
/dev/sdb: PTTYPE="dos"
/dev/sdc1 B25039C950399557 ntfs LaCie
/dev/sdc: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
/dev/sda2 /home ext4 (rw)
/dev/sdc1 /media/LaCie fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb1 /media/B0744C67744C3280 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
=========================== sda5/boot/grub/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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic (mode de récupération)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
echo 'Chargement de Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro single
echo 'Chargement du disque mémoire initial...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
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.
menuentry "windows" {
set root=(hd0,2)
#insmod chain
#insmod ntfs
#search --fs-uuid --set CFFCFF9EECFF7F49
chainloader +1
}
### END /etc/grub.d/40_custom ###
=============================== sda5/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda5 / ext4 errors=remount-ro 0 1
/dev/sda2 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=b6220ab9-447f-495f-b6a6-c52e525e46ea none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
3.4GB: boot/grub/core.img
8.8GB: boot/grub/grub.cfg
2.8GB: boot/initrd.img-2.6.32-21-generic
3.4GB: boot/vmlinuz-2.6.32-21-generic
2.8GB: initrd.img
3.4GB: vmlinuz
Avec un peu de chance cela parlera à quelqu'un.
Merci
Hors ligne
#13 Le 02/05/2010, à 07:29
- malbo
Re : [RESOLU] Grub loading trés long...
Il y a deux anomalies :
1ère anomalie : la partition XP non bootable :
Dans cette partie du résultat :
Drive: sdb ___________________ _____________________________________________________
Disque /dev/sdb: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 63 625,121,279 625,121,217 7 HPFS/NTFS
Il manque l'étoile qui symbolise le boot comme on peut la voir plus haut pour sda1 :
Partition Boot Start End Size Id System
/dev/sda1 * 2,046 29,411,327 29,409,282 5 Extended
Donc, ta partition sdb1 qui contient le système XP n'est pas bootable. Pour la rendre bootable, tu peux utiliser Gparted (l'éditeur de partitions) depuis un live CD ou un live USB Ubuntu.
2ème anomalie : grub.cfg est faux
C'est cette partie qui est nase :
=========================== sda5/boot/grub/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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic (mode de récupération)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
echo 'Chargement de Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro single
echo 'Chargement du disque mémoire initial...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
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.
menuentry "windows" {
set root=(hd0,2)
#insmod chain
#insmod ntfs
#search --fs-uuid --set CFFCFF9EECFF7F49
chainloader +1
}
### END /etc/grub.d/40_custom ###
Tu peux constater que la partie suivante est erronée :
menuentry "windows" {
set root=(hd0,2)
Grub indique que la partition Windows est sur (hd0,2) alors qu'il devrait indiquer (hd1,1) qui est le code pour sdb1.
Moi, je pense que Grub n'a pas réussi à identifier correctement ta partition sdb1 et je te propose, après que tu auras rendu bootable sdb1, de mettre à jour Grub par la commande suivante passée dans un terminal depuis Ubuntu installé sur sda5 :
sudo update-grub
Ce que ça fait est expliqué là :
http://doc.ubuntu-fr.org/grub-pc#configurationreconfiguration_automatisee_du_menu_grub
Dernière modification par malbo (Le 02/05/2010, à 07:32)
Hors ligne
#14 Le 02/05/2010, à 11:22
- wake81
Re : [RESOLU] Grub loading trés long...
Hello, merci beaucoup pour ta réponse.
En effet, j'ai pu faire la manipulation pour le boot sur sdb1. Mais entre temps (avant ta réponse) je pense que j'ai fait une bétise... J'ai voulu réinstaller grub et je l'ai mis sur sda et sur sdb
J'ai aussi enlevé sdc qui n'est qu'un disque usb.
Bref, l'update-grub ne fonctionne toujours pas...
voici le résultat du script :
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #5 for /boot/grub.
sda1: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disque /dev/sda: 250.1 Go, 250059350016 octets
255 têtes, 63 secteurs/piste, 30401 cylindres, total 488397168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 2,046 29,411,327 29,409,282 5 Extended
/dev/sda5 2,048 29,411,327 29,409,280 83 Linux
/dev/sda2 29,411,328 484,489,215 455,077,888 83 Linux
/dev/sda3 484,491,264 488,396,799 3,905,536 82 Linux swap / Solaris
Drive: sdb ___________________ _____________________________________________________
Disque /dev/sdb: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 * 63 625,121,279 625,121,217 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1: PTTYPE="dos"
/dev/sda2 a8f07567-4a7d-4def-b6df-9f52884906b3 ext4
/dev/sda3 b6220ab9-447f-495f-b6a6-c52e525e46ea swap
/dev/sda5 d737fed5-2618-46d1-98f4-d429f052e34c ext4
/dev/sda: PTTYPE="dos"
/dev/sdb1 B0744C67744C3280 ntfs
/dev/sdb: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
/dev/sda2 /home ext4 (rw)
=========================== sda5/boot/grub/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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic (mode de récupération)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
echo 'Chargement de Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d737fed5-2618-46d1-98f4-d429f052e34c ro single
echo 'Chargement du disque mémoire initial...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set d737fed5-2618-46d1-98f4-d429f052e34c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
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.
menuentry "windows_test_40_custom" {
set root=(hd1,1)
chainloader +1
}
### END /etc/grub.d/40_custom ###
=============================== sda5/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda5 / ext4 errors=remount-ro 0 1
/dev/sda2 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=b6220ab9-447f-495f-b6a6-c52e525e46ea none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
2.3GB: boot/grub/core.img
2.8GB: boot/grub/grub.cfg
2.8GB: boot/initrd.img-2.6.32-21-generic
3.4GB: boot/vmlinuz-2.6.32-21-generic
2.8GB: initrd.img
3.4GB: vmlinuz
Penses-tu que j'ai encore une chance de récupérer mon wind. ?
En tout cas merci pour ta réponse rapide de ce matin et bon dimanche
wake
Hors ligne
#15 Le 02/05/2010, à 12:21
- malbo
Re : [RESOLU] Grub loading trés long...
récupérer XP c'est remettre le lanceur de Windows dans le MBR de sdb. Pour le faire avec une complète maitrise, il serait préférable de déconnecter tous les disques durs sauf le disque sdb et de réparer XP en t'inspirant de ce post :
http://forum.ubuntu-fr.org/viewtopic.php?pid=3254940#p3254940
Dans ton cas, c'est l'item 5 du post (fixmbr) qui devrait suffire parce que le résultat que tu as posté indique :
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Donc, le secteur de boot est OK et la commande fixboot n'est pas à faire
Dernière modification par malbo (Le 02/05/2010, à 12:22)
Hors ligne
#16 Le 08/05/2010, à 10:30
- wake81
Re : [RESOLU] Grub loading trés long...
Hello,
Merci pour ton aide. En fait, suite à une mauvaise manip (que j'ai un peu cherchée aussi ) J'ai effacé Windows.
J'ai donc refais l'installation, un petit update-grub et maintenant tout marche comme il faut.
Bon WE
Wake
Hors ligne
#17 Le 08/05/2010, à 11:57
- malbo
Re : [RESOLU] Grub loading trés long...
chrisdufour,
Moi je ne vois pas d'anomalie dans le résultat de bootinfoscript que tu as posté.
Hors ligne
#18 Le 08/05/2010, à 12:53
- chrisdufour
Re : [RESOLU] Grub loading trés long...
C'est deja une bonne nouvelle. Merci pour ta promptitude
Neanmoins, par rapport à Karmic, le demarrage est nettement plus lent. J'ai un ecran noir avec le prompt qui clignote, puis un deuxieme, le tout durant une peut etre une minute et ensuite la procedure se poursuit.
Hors ligne
#19 Le 08/05/2010, à 13:27
- malbo
Re : [RESOLU] Grub loading trés long...
Tu peux peut-être créer une nouvelle discussion sur ton cas. En donnant le lien vers ton post où il y a le résultat du bootinfoscript pour dire qu'apparemment il ne s'agit pas d'une lenteur de Grub :
http://forum.ubuntu-fr.org/viewtopic.php?pid=3460317#p3460317
Hors ligne
Pages : 1