Pages : 1
#1 Le 13/09/2006, à 02:17
- cngo
problème avec grub
Salut j'ai deux disques durs. Un sda et l'autre hda. J'ai installé ubuntu sur sda mais dans mon fichier grub, il dit que c'est sur hda...Voici l'extrait :
title Ubuntu, kernel 2.6.15-23-386
root (hd1,4)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda5 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 (hd1,4)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot
title Ubuntu, kernel 2.6.12-9-386
root (hd1,4)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda5 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 (hd1,4)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot
title Ubuntu, memtest86+
root (hd1,4)
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 a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.15-23-686 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-686
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.15-23-686 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-23-686
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.15-23-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.15-23-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, memtest86+ (on /dev/hda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot
De plus, il faut que je selectionne lors du boot sur le disque hda pour booter correctement...sur l'autre il me dit que c'est impossible à booter. Bizar no ? comment dois je faire pour dire à grub que qu'il doit lire sur le sda et non sur le hda ? Merci bien.
Hors ligne
#2 Le 13/09/2006, à 02:24
- cngo
Re : problème avec grub
En fait j'ai peur de tout planter. Bref je sais pas pourquoi ubuntu a mis grub en copie sur le seconde disque...très bizare...Je dis en copie car quand je boot sur les deux disques, les menus se ressemble. Hors sur le sda (sur lequel j'ai installé les OS) ca marche pas et sur le hda (données) ben ca marche ...bizare non ? pouvez vous m'aider svp ? Car grub je ne comprend pas très bien. Merci
Hors ligne
#3 Le 13/09/2006, à 14:09
- cngo
Re : problème avec grub
Up
Hors ligne
#4 Le 13/09/2006, à 14:12
- Okanda
Re : problème avec grub
je pense que tu fait une petite erreur..sda ce sont les support amovible genre clef USB si je ne m'abuse.
edit : que te renvoie un
sudo fdisk -l
?
Dernière modification par Okanda (Le 13/09/2006, à 14:17)
Hors ligne
#5 Le 13/09/2006, à 17:36
- cngo
Re : problème avec grub
Salut voici :
omitting empty partition (5)
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2442 19615333+ 83 Linux
/dev/hda2 2443 24320 175735035 f W95 Ext'd (LBA)
/dev/hda3 5101 11474 51199123+ 7 HPFS/NTFS
/dev/hda5 2443 2550 867447 82 Linux swap / Solaris
/dev/hda6 2551 5100 20482843+ 7 HPFS/NTFS
/dev/hda7 11475 24320 103185463+ 7 HPFS/NTFS
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 38912 292077765 f W95 Ext'd (LBA)
/dev/sda5 2551 4462 15358108+ 83 Linux
/dev/sda6 4463 4590 1028128+ 82 Linux swap / Solaris
/dev/sda7 4591 7777 25599546 83 Linux
/dev/sda8 7778 38912 250091856 b W95 FAT32
cngo@cngo:~$
Sda car mon disque est s-ata je crois.
Hors ligne
#6 Le 13/09/2006, à 17:37
- cngo
Re : problème avec grub
Je crois que sur le hda j'avais pas completement formater le disque car j'avais un systeme linux dessus. Peut etre qu'en installer un nouveau linux sur mon sda grub s'est mis sur le hda par erreur...
Là j'ai envie de formater completement le hda mais après je pense que ca va pas du tout booter. C'est pour cela que je vous demande conseil. Merci
Ced
Hors ligne
#7 Le 13/09/2006, à 17:50
- Okanda
Re : problème avec grub
'lut,
c'est bizarre...
T'as esayé de modifier ton "menu.lst" ?
Hors ligne
#8 Le 14/09/2006, à 02:05
- cngo
Re : problème avec grub
Justement j'y connais rien. C'est pour cela que je vous demande.
Hors ligne