#26 Le 19/05/2006, à 16:19
- 0cedric
Re : [résolu]2 grubs
contenu de device.map
(hd0) /dev/sda
et pour fdisk
cedric@ubuntu:/etc$ sudo fdisk -l
Password:
Disque /dev/sda: 251.0 Go, 251000193024 octets
255 têtes, 63 secteurs/piste, 30515 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1419 11398086 7 HPFS/NTFS
/dev/sda2 10637 15595 39833167+ f W95 Etendu (LBA)
/dev/sda3 1420 10636 74035552+ 83 Linux
/dev/sda4 15596 30515 119844900 83 Linux
/dev/sda5 11393 15217 30724281 7 HPFS/NTFS
/dev/sda6 11015 11392 3036222 82 Linux swap / Solaris
/dev/sda7 15218 15595 3036253+ 82 Linux swap / Solaris
/dev/sda8 10637 11014 3036222 82 Linux swap / Solaris
Les entrées de la table de partitions ne sont pas dans l'ordre du disque
c'est grave docteur ?:D
Dernière modification par 0cedric (Le 19/05/2006, à 16:20)
Hors ligne
#27 Le 19/05/2006, à 16:38
- cep_
Re : [résolu]2 grubs
Tu as bien monté sda4 ?
Tu peux remettre svp le menu.lst modifié de sda4 ? et dire aussi quel est le message d'erreur.
Pour restaurer grub :
sudo grub --batch
find /boot/grub/stage1 (ou find /grub/stage1 s'il y a une partition /boot séparée)
root hd(x,x) (adapter suivant la réponse
setup (hd0) (pour mettre dans le mbr)
quit
#28 Le 19/05/2006, à 16:47
- 0cedric
Re : [résolu]2 grubs
voilà à quoi ressemble maintenant mon menu.lst (j'ai tout commenté les kernels que j'utilise jamais en pensant que ça pourrait arranger les choses)
# 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'.
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=/dev/sda4 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,3)
## 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
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.15-23-686
root (hd0,3)
kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/sda4 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-686
savedefault
boot
#title Ubuntu, kernel 2.6.15-23-686 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-23-686
#boot
#title Ubuntu, kernel 2.6.15-23-386
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.15-23-386
#savedefault
#boot
#title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-23-386
#boot
#title Ubuntu, kernel 2.6.15-22-686
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-22-686 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.15-22-686
#savedefault
#boot
#title Ubuntu, kernel 2.6.15-22-686 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-22-686 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-22-686
#boot
#title Ubuntu, kernel 2.6.15-22-386
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-22-386 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.15-22-386
#savedefault
#boot
#title Ubuntu, kernel 2.6.15-22-386 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-22-386 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-22-386
#boot
#title Ubuntu, kernel 2.6.15-21-686
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-21-686 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.15-21-686
#savedefault
#boot
#title Ubuntu, kernel 2.6.15-21-686 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-21-686 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-21-686
#boot
#title Ubuntu, kernel 2.6.15-21-386
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.15-21-386
#savedefault
#boot
#title Ubuntu, kernel 2.6.15-21-386 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.15-21-386
#boot
#title Ubuntu, kernel 2.6.12-10-386
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.12-10-386
#savedefault
#boot
#title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.12-10-386
#boot
#title Ubuntu, kernel 2.6.12-9-386
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda4 ro quiet splash
#initrd /boot/initrd.img-2.6.12-9-386
#savedefault
#boot
#title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
#root (hd0,3)
#kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda4 ro single
#initrd /boot/initrd.img-2.6.12-9-386
#boot
#title Ubuntu, memtest86+
#root (hd0,3)
#kernel /boot/memtest86+.bin
#boot
### 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 an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-686-smp (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-686-smp root=/dev/sda3 ro quiet splash
#initrd /boot/initrd.img-2.6.12-10-686-smp
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-686-smp (recovery mode) (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-686-smp root=/dev/sda3 ro single
#initrd /boot/initrd.img-2.6.12-10-686-smp
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-686 (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/sda3 ro quiet splash
#initrd /boot/initrd.img-2.6.12-10-686
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-686 (recovery mode) (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/sda3 ro single
#initrd /boot/initrd.img-2.6.12-10-686
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-386 (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/sda3 ro quiet splash
#initrd /boot/initrd.img-2.6.12-10-386
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, kernel 2.6.12-10-386 (recovery mode) (on /dev/sda3)
#root (hd0,2)
#kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/sda3 ro single
#initrd /boot/initrd.img-2.6.12-10-386
#savedefault
#boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
#title Ubuntu, memtest86+ (on /dev/sda3)
#root (hd0,2)
#kernel /boot/memtest86+.bin
#savedefault
#boot
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professionnel
root (hd0,0)
savedefault
makeactive
chainloader +1
Hors ligne
#29 Le 19/05/2006, à 16:55
- 0cedric
Re : [résolu]2 grubs
find /boot/grub/stage1
(hd0,2)
(hd0,3)
si je choisi hd0,2 je reviens à l'ancien si je prend hd0,3, le message d'erreur c'est "reboot and select proper boot device or ... met un CD dans le lecteur et appuye sur une touche)
Tu as bien monté sda4
tu peux être plus précis, ou comment?
Hors ligne
#30 Le 19/05/2006, à 16:56
- cep_
Re : [résolu]2 grubs
Il semble correct.
"reboot and select proper boot device"
C'est le message d'erreur que tu as ? ce n'est pas un message grub.
Tu n'as pas un problème de rélage du bios ou de disque ? ce disque a booté avec un autre réglage ?
REvois tes réglages dans le bios avant. Et sinon refais une installation de grub dans le mbr.
#31 Le 19/05/2006, à 17:01
- cep_
Re : [résolu]2 grubs
stage1 du (hd0,3) serait défectueux ? ou le bios n'arriverait pas à lire sur le secteur de sda4 ?
Tu pourrais dans un premier temps refaire le menu de sda3 pour y ajouter la possibilité de lancer dapper, restaurer le stage1 de (hd0,2) dans le mbr, et fouiller plus en détail soit dans le bios, soit recopier une autre stage1 sur sda4.
En tout cas c'est curieux. Il y a donc ces deux causes de pannes possibles : stage1 défecteux ou problème dans le bios pour aller lire sur le secteur de sda4. Ou d'autres problèmes encore à fouiller.
#32 Le 19/05/2006, à 17:18
- 0cedric
Re : [résolu]2 grubs
dans le bios je vois pas grand chose à règler, j'ai juste une liste de boot avec le disque dur, mais rien trouvé sur les partitions. je vais donc garder mes deux partitions. a moins que tu aies encore le temps et le courage de m'expliquer comment
recopier une autre stage1 sur sda4
.
si j'ai bien compris, pas la peine d'essayer un autre boot loader pour résoudre le problème?
ah oui et pour mes trois swap, comment savoir lesquels sont les deux que je peux effacer ?
Dernière modification par 0cedric (Le 19/05/2006, à 17:23)
Hors ligne
#33 Le 19/05/2006, à 17:31
- 0cedric
Re : [résolu]2 grubs
c'est réglé
Hors ligne
#34 Le 19/05/2006, à 17:31
- cep_
Re : [résolu]2 grubs
Un autre bootloader ? pourquoi s'encombrer de gag ou autre ? Non, il faudrait trouver l'origine de la panne.
Lorsque tu auras démarré avec dapper, il faudrait analyser les messages (/var/log/syslog et compagnie et un dmesg) pour voir s'ils ne remontent pas un priblème de partition. Mais le problème devrait être avant plutôt.
Pour copier stage1 ? lorsque tu seras dans dapper, tu montes par exemples sda2 sur /mnt/sda2 (c'est un exemple) puis : sudo mv /boot/grub/stage1 /boot/grub/stage1_bak
sudo cp /mnt/sda2/boot/grub/stage1 /boot/grub/stage1
Il y a aussi le stage1 de /lib/grub/i386-pc/stage1 mais autant essayer d'abord avec celui de sda2.
Mais c'est tout de même curieux. Un problème sur la partition ?
Au fait, tu utilises quel système de fichier sur sda4 ? ce ne serait pas du XFS ?
#35 Le 19/05/2006, à 17:39
- 0cedric
Re : [résolu]2 grubs
voilà j'explique: je pense que hier j'ai été assez :mad:con :mad:pour recopier le 2eme post à la lettre, toujours est il en relisant depuis le début j'ai fait grub-install en remplaçant hda par sda et le problème est règlé. Voilà, désolé pour mon ignorance et merci a tous le monde pour votre votre perséverance.
bon week-end
Hors ligne
#36 Le 20/05/2006, à 13:34
- SamheG
Re : [résolu]2 grubs
Tout est bien qui finit bien
Il ne te reste donc plus qu'à passer ton post en [Résolu]
Hors ligne