Pages : 1
#1 Le 22/12/2007, à 14:56
- gwenou
problème de boot avec GRUB [RESOLU]
J'ai installé kubuntu 7.10 sur un DD externe. Je l'avais partitionné en 4 partitions : une de 139Go en FAT32, une en ext3 de 10go pour /, 1 de 10go por /home et enfin un swap de 1go.
Lors du résumé de mon installation, j'ai bien cliquer sur "avancée" pour demander d'installer GRUB sur (hd1) pour pouvoir lancer windows normalement si le DD externe n'est pas branché.
L'installation se déroule sans encombre jusqu'au moment de redémarrer, lorsque GRUB s'affiche, je sélectionne donc KUBUNTU pour le lancer et là , j'ai l'erreur 17.
P.S : aucuns des autres OS du menu veulent se lancer.
Et en cherchant, je ne voit pas vraiument l'erreur c'est pourquoi je me réfère à vous.
grub> find /boot/grub/stage1
(hd1,1)
# 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=2f636bb3-1ab9-4d48-8e29-d9ddb92468d0 ro## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,1)## 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## 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 7.10, kernel 2.6.22-14-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2f636bb3-1ab9-4d48-8e29-d9ddb92468d0 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiettitle Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2f636bb3-1ab9-4d48-8e29-d9ddb92468d0 ro single
initrd /boot/initrd.img-2.6.22-14-generictitle Ubuntu 7.10, memtest86+
root (hd1,1)
kernel /boot/memtest86+.bin
quiet### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Dell Utility Partition
root (hd0,0)
savedefault
chainloader +1# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows XP Media Center Edition
root (hd0,1)
savedefault
chainloader +1# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda5
title Microsoft Windows XP Embedded
root (hd0,4)
savedefault
chainloader +1
device.map
(hd0) /dev/sda
(hd1) /dev/sdb
ubuntu@ubuntu:~$ fdisk -l
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5b6ac646Device Boot Start End Blocks Id System
/dev/sdb1 1 16779 134777286 c W95 FAT32 (LBA)
/dev/sdb2 * 16780 18054 10241437+ 83 Linux
/dev/sdb3 19330 19457 1028160 82 Linux swap / Solaris
/dev/sdb4 18055 19329 10241437+ 83 LinuxPartition table entries are not in disk order
Je doit avoir à peut près tout mis, dites-moi si il vous manques des infos.
LMerci d'avnce pour vos réponses.
Dernière modification par gwenou (Le 23/12/2007, à 22:34)
Hors ligne
#2 Le 22/12/2007, à 15:30
- Compte anonymisé
Re : problème de boot avec GRUB [RESOLU]
Salut
Pour démarrer sur usb il faut maintenant modifier ton menu.lst
Tu remplaces tous les :
root (hd1,1) et
# groot=(hd1,1)
par
root (hd0,1) et
# groot=(hd0,1)
En effet, le fait de booter sur l'usb le fait passer de disque secondaire à primaire :
/dev/sdb devient /dev/sda
et
/dev/sda devient /dev/sdb
Quand tu bootes sur le dd interne tout redevient normal.
Après si tu veux lancer les Windows et autre depuis le dd externe il faudra aussi faire des modifs dans les paragraphes concernés du menu.lst
@+
#3 Le 22/12/2007, à 15:32
- safinaz
Re : problème de boot avec GRUB [RESOLU]
place toi sur la première entrée ubuntu au démarrage
puis appui deux fois sur la touche e
change root (hd1,1) en root (hd0,1)
valide en appuyant sur la touche enter
puis b
une fois démarrer, pour ne plus faire cette manipulation
change dans le menu.lst sur la ligne #groot
(hd1,1) en (hd0,1)
enregistre
puis tape
sudo update-grub
pour pouvoir lancer windows, tu dois faire un mapping
#4 Le 23/12/2007, à 21:56
- gwenou
Re : problème de boot avec GRUB [RESOLU]
Merci pour vos réponse, en effet, c'est bon je réussi maintenant à lancer kubuntu.
Par contre, comment se donne-t-on les droits d'admin pour modifier le fichier menu.lst
Et sinon, qu'est ce que le mapping pour lancer XP?
Hors ligne
#5 Le 23/12/2007, à 22:09
- Compte anonymisé
Re : problème de boot avec GRUB [RESOLU]
Salut
Pour éditer menu.lst :
sudo gedit /boot/grub/menu.lst
Pour adapter la partie Windows de menu.lst :
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
Je ne vois pas l'intéret des 6 lignes qui suivent :
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
# title Dell Utility Partition
# root (hd0,0)
# savedefault
# chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows XP Media Center Edition
root (hd1,1)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
chainloader +1
Pour les 6 lignes qui suivent je te donne les modifs mais ça m'étonnerai qu'Xp sache booter sur une partition étendue
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda5
title Microsoft Windows XP Embedded
root (hd1,4)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
chainloader +1
@+
#6 Le 23/12/2007, à 22:19
- gwenou
Re : problème de boot avec GRUB [RESOLU]
bizarre :
gwenou@portableg:~$ sudo gedit /boot/grub/menu.lst
sudo: gedit: command not found
sinon pour ça, c'est un utilitaire qui teste tous mes composants pour vérifier leur bon fonctionnement.
Je ne vois pas l'intéret des 6 lignes qui suivent :
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
# title Dell Utility Partition
# root (hd0,0)
# savedefault
# chainloader +1
Hors ligne
#7 Le 23/12/2007, à 22:32
- gwenou
Re : problème de boot avec GRUB [RESOLU]
C'est bon en fait, j'ai trouvé ma réponse autre part.
Je doit juste remplacer gedit par kwrite.
Merci pour vos réponses.
Hors ligne
#8 Le 24/12/2007, à 07:53
- Compte anonymisé
Re : problème de boot avec GRUB [RESOLU]
bizarre :
gwenou@portableg:~$ sudo gedit /boot/grub/menu.lst
sudo: gedit: command not foundsinon pour ça, c'est un utilitaire qui teste tous mes composants pour vérifier leur bon fonctionnement.
Je ne vois pas l'intéret des 6 lignes qui suivent :
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
# title Dell Utility Partition
# root (hd0,0)
# savedefault
# chainloader +1
Salut
Je me doutais bien que c'était un utilitaire mais je ne vois pas trop l'intéret d'y accéder via le boot sur dd usb. Je suppose que le boot sur le dd interne te donne déjà ce choix.
@+
Pages : 1