Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/11/2007, à 20:55

knatown

Probleme grub

J ai cherché sur le forum, mais j ai pas trouvé de solution, alors je post quand meme:

Voila, j ai reinstaller Ubuntu 7.10 gutsy, (ce qui m'a enlevé un paquet de bugs que j avais après la mise a jour 7.10)

Mais c est encore plus le foutoir a configurer Grub que la premiere installation...

J'ai 1 Sata avec windows, ubuntu, et stockage
2 Udma Stockge
J ai fais:

grub> find /boot/grub/stage1
(hd2,5)

grub> root (hd2,5)

grub> setup (hd2)

Et ben ca marche pas...

Avec la commande: sudo fdisk -

knatown@knatown-desktop:~$ sudo fdisk -l

Disque /dev/hda: 120.0 Go, 120034123776 octets
255 heads, 63 sectors/track, 14593 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x71cd7d32

Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 3826 30732313+ 7 HPFS/NTFS
/dev/hda2 3827 14593 86485927+ f W95 Etendu (LBA)
/dev/hda5 3827 14593 86485896 7 HPFS/NTFS

Disque /dev/hdb: 80.0 Go, 80026361856 octets
255 heads, 63 sectors/track, 9729 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd922d922

Périphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 * 1 2021 16233651 7 HPFS/NTFS
/dev/hdb2 2022 9729 61914510 f W95 Etendu (LBA)
/dev/hdb5 2022 9729 61914478+ 7 HPFS/NTFS

Disque /dev/sda: 251.0 Go, 251000193024 octets
255 heads, 63 sectors/track, 30515 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0bc30bc3

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 7568 60789928+ 7 HPFS/NTFS
/dev/sda2 7569 30056 180634860 f W95 Etendu (LBA)
/dev/sda3 30057 30515 3686917+ 82 Linux swap / Solaris
/dev/sda5 7569 26591 152802216 7 HPFS/NTFS
/dev/sda6 26592 30056 27832581 83 Linux
knatown@knatown-desktop:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.
knatown@knatown-desktop:~$
knatown@knatown-desktop:~$ sudo fdisk -l

Disque /dev/hda: 120.0 Go, 120034123776 octets
255 heads, 63 sectors/track, 14593 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x71cd7d32

Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 3826 30732313+ 7 HPFS/NTFS
/dev/hda2 3827 14593 86485927+ f W95 Etendu (LBA)
/dev/hda5 3827 14593 86485896 7 HPFS/NTFS

Disque /dev/hdb: 80.0 Go, 80026361856 octets
255 heads, 63 sectors/track, 9729 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd922d922

Périphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 * 1 2021 16233651 7 HPFS/NTFS
/dev/hdb2 2022 9729 61914510 f W95 Etendu (LBA)
/dev/hdb5 2022 9729 61914478+ 7 HPFS/NTFS

Disque /dev/sda: 251.0 Go, 251000193024 octets
255 heads, 63 sectors/track, 30515 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0bc30bc3

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 7568 60789928+ 7 HPFS/NTFS
/dev/sda2 7569 30056 180634860 f W95 Etendu (LBA)
/dev/sda3 30057 30515 3686917+ 82 Linux swap / Solaris
/dev/sda5 7569 26591 152802216 7 HPFS/NTFS
/dev/sda6 26592 30056 27832581 83 Linux

Yµ aurait pas quelqu'un qui pourrait me filer un coup de main... je ne peux plus booter ni sur windows ni sur ubuntu...

Dernière modification par knatown (Le 26/11/2007, à 22:06)

Hors ligne

#2 Le 26/11/2007, à 21:03

denis_aec

Re : Probleme grub

Question à  2 sous : sur quel disque boote le bios en premier : hda, hdb ou sda ?
hda1 et hdb1 sont bootables "*", donc probablement que win démarrait dessus ...sur sda, aucune n'est bootable ...
Tu sembles quand même booter sur Ubuntu ? non ? Comment fais-ty ? As-tu le menu grub ?

Dernière modification par denis_aec (Le 26/11/2007, à 21:04)

Hors ligne

#3 Le 26/11/2007, à 21:10

knatown

Re : Probleme grub

le bios est confiurer pour booter sur la sata...

je ne peux pas booter autotmatiquement sur ubuntu... j'ai l  erreur 22 no such à¢rtition, et ni sous windows ...

La je boot sur ubuntu en passant par le cd super grub disc

Hors ligne

#4 Le 26/11/2007, à 21:18

denis_aec

Re : Probleme grub

Mais si tu boote sur le disque, as-tu le menu de grub ou pas ?

Si non, peux-tu installer grub avec supergrub, puis modifier le menu.lst pour y ajouter win ?

Hors ligne

#5 Le 26/11/2007, à 21:40

knatown

Re : Probleme grub

ah oui j ai le menu grub... c est de la que j ai l'erreur 22 no such partition...

Hors ligne

#6 Le 26/11/2007, à 21:43

denis_aec

Re : Probleme grub

donc, sur sda6, il doit y avoir /boot/grub/menu.lst. Donne nous le contenu de ce fichier, c'est probablement par là  que ça coince.

Hors ligne

#7 Le 26/11/2007, à 21:48

knatown

Re : Probleme grub

# 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=2585ba0c-a766-48cd-8e87-4a3eb5fdbcd3 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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 splash locale=fr_FR

## 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		(hd2,5)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=2585ba0c-a766-48cd-8e87-4a3eb5fdbcd3 ro quiet splash locale=fr_FR
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd2,5)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=2585ba0c-a766-48cd-8e87-4a3eb5fdbcd3 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

title		Ubuntu 7.10, memtest86+
root		(hd2,5)
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		Microsoft Windows XP Professionnel
root		(hd2,0)
savedefault
makeactive
map		(hd0) (hd2)
map		(hd2) (hd0)
chainloader	+1

Dernière modification par knatown (Le 26/11/2007, à 22:05)

Hors ligne

#8 Le 26/11/2007, à 21:59

denis_aec

Re : Probleme grub

1°) reprend tes posts et mets les copies de fichiers ou de commandes entre les balises Code ou Quote (bouton au-dessus de la zone de saisie), sinon, c'est difficile à  lire.
2°) tu as des uuid dans grub, ils ont peut-être bougés ... en console :
sudo vol_id -u /dev/sda6
et compare le résultat avec le contenu de grub :
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=2585ba0c-a766-48cd-8e87-4a3eb5fdbcd3 ro quiet splash locale=fr_FR
si ça ne correspond pas, remplace la valeur par ce que te donne la commande
3°) vire le quiet de la ligne, histoire de voir ce qui se passe au cours du boot

et un p'tit reboot

Dernière modification par denis_aec (Le 26/11/2007, à 22:07)

Hors ligne

#9 Le 26/11/2007, à 22:19

knatown

Re : Probleme grub

ok (et merci)

Alors j ai suivit tes conseils, j ai comparé la "ligne" c'etait ok, j'ai viré le "Quiet" et j'ai rebooté..


Mais c est pareil...

Pour ubuntu: no such partition,
Pour windows: manque Ntldr (ou un truc comme ca...)

J'suis pommé sad

Dernière modification par knatown (Le 26/11/2007, à 22:19)

Hors ligne

#10 Le 26/11/2007, à 22:32

denis_aec

Re : Probleme grub

ts,ts, ce sont les chevaux qui sont pommés, toi, t'es paumé wink
et moi aussi ...
Merci pour les posts entre balise, c'est bien plus sympa !

22 : No such partition
    Cette erreur est retournée si une partition demandée n'existe pas sur le disque sélectionné.
J'ai l'impression qu'il est un peu perdu, ton grub, que contient /boot/device.map ?

Puisque tu peux booter sur ubuntu, essaie :
sudo update-grub

histoire de voir s'il sait se remettre tout seul d'aplomb !

Hors ligne

#11 Le 26/11/2007, à 22:38

knatown

Re : Probleme grub

lol...

Oui ca se pourrait bien qui'il soit tout dereglé, parceque la premiere fois que j ai installé Ubuntu, j ai touché un peu a tout dans SGD...

pour /boot/device.map ... j trouve pas comment y acceder...

Gksu gedit /boot/device.map?  apparament non... lol

Hors ligne

#12 Le 27/11/2007, à 08:26

denis_aec

Re : Probleme grub

pour /boot/device.map : regarde avec nautilus s'il existe ... il devrait si grub a été configuré. S'il n'existe pas, c'est bien qu'il y a problème ...

Boote sur ubuntu et essaie :
sudo update-grub
puis reboot

Si ça ne gaze toujours pas, tu peux installer grub via supergrub, mais fais une sauvegarde de menu.lst avant.

Hors ligne