#1 Le 01/02/2009, à 23:02
- mister58
Résolu error 12 généré par le grub
Bonjour à toutes et tous,
Depuis pas mal de temps je galère pour faire fonctionner linux convenablement.
Je suis parvenu à faire fonctionner ubuntu 8.10, grâce à vos conseils avisés.
Au début de l'installation du ubuntu sur un amd 64, avec le choix de l'installation automatique du grub, Linux ne voulait pas se lancer, à force de lire et relire vos conseils, par l'intermediaire de la console, en reinstallant le grub, je suis arrivé à lancer le grub avec le choix qu'il propose.
Sauf Windows qui génére un défaut avec l'erreur 12.
Je voulais là aussi me débrouiller seul mais je choisis de faire appel à vos connaissances, sachant que je suis novice sur linux.
J'ai lu plusieurs doc et messages qui allaient dans ce sens, mais je crains de faire une fausse manip et de ne plus pouvoir lancer Ubuntu 8.10.
Merci d'avance pour vos réponses à bientôt
Voici le contenu du menu.lst
# 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=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=6e3f42bd-69b0-4992-b3ae-1bca087b7251
## 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 8.10, kernel 2.6.27-11-generic
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=6e3f42bd-69b0-4992-b3ae-1bca087b7251 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 6e3f42bd-69b0-4992-b3ae-1bca087b7251
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/sdb1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Dernière modification par mister58 (Le 02/02/2009, à 23:42)
Hors ligne
#2 Le 02/02/2009, à 12:25
- denis_aec
Re : Résolu error 12 généré par le grub
Ca semble bon à première vue, sauf peut-être le "savedefault" que je mettrai à la fin. Quant aux partitions, que donne :
sudo fdisk -l
sudo blkid
Hors ligne
#3 Le 02/02/2009, à 20:25
- mister58
Re : Résolu error 12 généré par le grub
Merci beaaucoup de vouloir m'aider.:)
Voici ce que donne fdisk -l:
Disque /dev/sda: 203.9 Go, 203928109056 octets
255 heads, 63 sectors/track, 24792 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x46bdc6f9
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 2 24792 199133707+ f W95 Etendu (LBA)
/dev/sda5 2 16679 133966003+ 7 HPFS/NTFS
/dev/sda6 18418 24792 51207156 7 HPFS/NTFS
Disque /dev/sdb: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x48ab48aa
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 8300 66669718+ 7 HPFS/NTFS
/dev/sdb2 8301 60801 421714282+ 5 Extended
/dev/sdb5 8301 60615 420220206 83 Linux
/dev/sdb6 60616 60801 1494013+ 82 Linux swap / Solaris
Disque /dev/sdc: 40.0 Go, 40020664320 octets
255 heads, 63 sectors/track, 4865 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x1b661b65
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sdc2 2551 4864 18587205 f W95 Etendu (LBA)
/dev/sdc5 2551 4864 18587173+ 7 HPFS/NTFS
et voici ce que donne blkid
/dev/ramzswap0: TYPE="swap"
/dev/sda5: UUID="4604EA8904EA7AF7" LABEL="video +" TYPE="ntfs"
/dev/sda6: UUID="11B306187CCC2071" LABEL="video_familial" TYPE="ntfs"
/dev/sdb5: UUID="6e3f42bd-69b0-4992-b3ae-1bca087b7251" TYPE="ext3"
/dev/sdb6: TYPE="swap" UUID="2a572c4f-591b-4235-9133-63cdc467cd37"
/dev/sdc1: UUID="8C0031D50031C6CC" LABEL="ComptabilitM-i" TYPE="ntfs"
/dev/sdc5: UUID="9C509F06509EE5F4" LABEL="son" TYPE="ntfs"
/dev/sdb1: UUID="A83C893D3C890790" TYPE="ntfs"
J'espere que ces informations t'aideront, merci d'avance pour ta réponse.:)
Hors ligne
#4 Le 02/02/2009, à 20:46
- denis_aec
Re : Résolu error 12 généré par le grub
12 : Invalid device requested
Cette erreur est retournée si la chaîne de périphérique est valide mais que l'erreur ne correspond à aucune autre erreur de périphérique.
Vu comme ça, on est mal barré ...
As-tu du sata et ide ?
Sur quel disque est win ?
Sur quel disque le bios boote ?
Peux-tu essayer en modifiant la fin de menu.lst ainsi (pas de danger pour ubuntu) :
title Microsoft Windows XP Professionnel
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
makeactive
chainloader +1
Hors ligne
#5 Le 02/02/2009, à 21:58
- mister58
Re : Résolu error 12 généré par le grub
Voila denis_aec,
Windows se trouve à priori sur:
/dev/sdb1: UUID="A83C893D3C890790" TYPE="ntfs"
j'ai corrigé le bout de code pour windows en ajoutant makeactive et c'est pareil une fois rebouté j'obtient toujours la même erreur
Windows se trouve sur un disque IDE
Oui j'ai du SATA pour la vidéo, qui est reconnu
WINDOWS et LINUX sont sur le même disque
voci l'imaage de GParted
[img]/home/serge/get[/img]
avant c'était le contraire c'était LINUX qui ne se lançait pas et je n'avais même pas le choix du grub
Lorsque j'ai reinstallé ou restaurer le grub j'obtient cette erreur en lancant WINDOWS XP.
Donc je supposse que c'est le chemin qui ne convient pas.
merci de ton aide A+
Hors ligne
#6 Le 02/02/2009, à 22:01
- mister58
Re : Résolu error 12 généré par le grub
Désolé c'est raté pour l'insertion de l'image:/
Je reessaye:
[img]/home/serge/get.PNG[/img]
Hors ligne
#7 Le 02/02/2009, à 22:15
- Carroués
Re : Résolu error 12 généré par le grub
Bonsoir,
Tu as des amorces partout là, impossible de savoir sur quel disque tu démarres. Partant du principe que Grub est présent sur ton disque sdb, (500 Go, contenant XP et Ubuntu) :
Modifie la fin du menu.lst
title Microsoft Windows XP Professionnel
root (hd0,0)
savedefault
makeactive
chainloader +1
Règle (vérifie) ton BIOS afin qu'il reconnaisse en premier disque dur à démarrer celui de 500 Go, contenant XP et Ubuntu.
Dernière modification par carroues (Le 02/02/2009, à 22:16)
Hors ligne
#8 Le 02/02/2009, à 23:34
- mister58
Re : Résolu error 12 généré par le grub
Merci à vous deux, la solution a été trouvée, je peux marquer résolu.
Merci Carroues, la dernierre modif a été payante.
Les deux os fonctionnent, une communauté bien sympha.
Je reviendrai surement vers vous, en effet j'ai pas mal de questions sans réponses.
Des petits aléas de fonctionnement également.
Merci encore ou dois je marquer résolu?
Sur l'intitulé du message?
A+
Hors ligne
#9 Le 03/02/2009, à 14:13
- Carroués
Re : Résolu error 12 généré par le grub
Pour éviter toute confusion à l'avenir, je te conseille de retirer les mentions amorce sur les autres disques.
GPartEd → Clic D sur les deux autres disques (= pas le disque 500 Go) → Gérer les drapeaux → décocher Boot.
Hors ligne
#10 Le 03/02/2009, à 21:55
- mister58
Re : Résolu error 12 généré par le grub
Bonjour Carroues, j'ai corrigé, merci beaucoup.:cool:
A+:)
Hors ligne
#11 Le 04/02/2009, à 15:18
- piixiis
Re : Résolu error 12 généré par le grub
Bonjour, j'ai à peut prés le même problème que mister58 :
J'ai installé Ubuntu 8.10, j'ai ensuite réinstallé Windows Xp Pro SP3 et réstauré mon grub. Mais la surprise quand j'ai voulu lancer Windows Xp : Error 12...
J'ai éssayer de suivre les conseilles que vous avez donner à Mister58 mais ca n'as rien donner...
Donc : J'ai un Widows XP installer sur un dd nommé sdb1 et Linux installer sur un autre dd nommé sda1. J'ai vérifié avec Gparted les "flag" et je remarque quand je tape $fdisk -l qu'il y as une amorce sur une partition en NTFS (sda2) (dd de donné partagé entre Windows et Linux) mais il n'apparait pas lorsque je suis sur Gparted.
Je vous joint les résultats des commande fdisk -l, blkid et le contenue de /boot/grub/menu.lst
fdisk -l :
omitting empty partition (5)
Disque /dev/sda: 163.9 Go, 163928604672 octets
255 heads, 63 sectors/track, 19929 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x2e44e20e
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 19928 160071628+ f W95 Etendu (LBA)
/dev/sda2 * 9432 19928 84317121 7 HPFS/NTFS
/dev/sda5 1 8875 71288343 83 Linux
/dev/sda6 8876 9431 4466038+ 82 Linux swap / Solaris
Disque /dev/sdb: 250.0 Go, 250059350016 octets
255 heads, 63 sectors/track, 30401 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x0001c90c
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 1 30400 244187968+ 7 HPFS/NTFS
blkid :
/dev/sda5: UUID="b99737cd-c9ff-4176-b43e-cd569dc06739" TYPE="ext3"
/dev/sda6: TYPE="swap" UUID="bb7e7a5b-ec7b-49a5-b861-a0bc2b1012c3"
/dev/sda7: UUID="bb7e7a5b-ec7b-49a5-b861-a0bc2b1012c3" TYPE="swap"
/dev/sdb1: UUID="46985F09985EF6C1" TYPE="ntfs"
/dev/sda2: UUID="8440E87740E870FA" TYPE="ntfs"
menu.lst :
# 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=b99737cd-c9ff-4176-b43e-cd569dc06739 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=b99737cd-c9ff-4176-b43e-cd569dc06739
## 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 8.10, kernel 2.6.27-11-generic
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=b99737cd-c9ff-4176-b43e-cd569dc06739 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid b99737cd-c9ff-4176-b43e-cd569dc06739
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/sdb1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
En ésperant que vous pourrez m'aider! Merci d'avance!
Piixiis!
#12 Le 04/02/2009, à 17:03
- Carroués
Re : Résolu error 12 généré par le grub
Ubuntu démarre correctement ?
Hors ligne
#13 Le 04/02/2009, à 17:56
- Piixiis
Re : Résolu error 12 généré par le grub
Oui ubuntu demarre parfaitement...
#14 Le 04/02/2009, à 18:18
- Carroués
Re : Résolu error 12 généré par le grub
Au démarrage de ton ordinateur, peux-tu choisir par une touche (probablement F8 ou F12) de démarrer sur le disque dur de 250 Go ? Sinon, modifie-l'ordre dans le BIOS et donne des nouvelles.
Hors ligne
#15 Le 04/02/2009, à 18:22
- Piixiis
Re : Résolu error 12 généré par le grub
Ben c'est déja fais l'ordre de Boot est placé sur le dd de 250Go sur lequelle se trouve Windows...
#16 Le 04/02/2009, à 18:39
- Carroués
Re : Résolu error 12 généré par le grub
Ben voilà : même punition que l'ami mister58 !
Modifie la fin du menu.lst :
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professionnel
root (hd0,0)
savedefault
makeactive
chainloader +1
Tant que tu y es, mets un peu d'ordre dans Grub ! Repère ces lignes suivantes et modifie ce qui est en gras. (Cela réduira le nombre d'anciens noyaux qui te sont proposés : actuellement 3, mais ça pourrait se rallonger : j'en ai vu qui en avaient une dizaine !)
## e.g. howmany=all
## howmany=7
# howmany=2
C'est vers le milieu du fichier, 4 sections plus haut que ## ## End Default Options ##.
Enregistre, puis saisis
sudo update-grub et donne tes nouvelles.
Hors ligne
#17 Le 04/02/2009, à 18:46
- Piixiis
Re : Résolu error 12 généré par le grub
Merci j'essayerais ce soir et je te dis ca merci pour ton aide!
Piixiis!
#18 Le 04/02/2009, à 23:56
- Piixiis
Re : Résolu error 12 généré par le grub
Impeccable tout fonctionne!:) Merci pour ton aide!
#19 Le 06/03/2009, à 13:13
- Leotus
Re : Résolu error 12 généré par le grub
Bonjour,
J'ai le même problème d'erreur 12. A ceci près que j'ai deux disques.
Bon, ce problème n'est pas critique et j'avoue que je l'ai bien cherché.
J'ai voyagé un peu de-ci de-là dans les docs et les forums et j'ai tenté deux trois choses mais sans succès.
Cette machine a un disque SATA sur lequelle il ya a Ibex et un disque IDE sur lequel il y XP. Ce disque vient d'une autre machine qui en avait deux mais qui n'a plus besoin de XP. Je l'ai donc simplement débranché et rebranché ailleur. Pour ne rien arranger, ce DD passe d'un PC en 32bits à un PC en 64bits (quand je disais que je l'avais cherché). Ceci dit passer de 32bits à 64bits sans réinstallation a marché pour un autre DD avec un Linux dessus.
Je vous met le menu.lst
# 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=e26353fb-2374-4404-84b4-9b367f7c5f7b ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=e26353fb-2374-4404-84b4-9b367f7c5f7b
## 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 8.10, kernel 2.6.27-11-generic
uuid e26353fb-2374-4404-84b4-9b367f7c5f7b
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=e26353fb-2374-4404-84b4-9b367f7c5f7b ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid e26353fb-2374-4404-84b4-9b367f7c5f7b
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=e26353fb-2374-4404-84b4-9b367f7c5f7b ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid e26353fb-2374-4404-84b4-9b367f7c5f7b
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=e26353fb-2374-4404-84b4-9b367f7c5f7b ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid e26353fb-2374-4404-84b4-9b367f7c5f7b
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=e26353fb-2374-4404-84b4-9b367f7c5f7b ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid e26353fb-2374-4404-84b4-9b367f7c5f7b
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/sdb2
title Microsoft Windows XP Professionnel
root (hd1,1)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
et le fdisk -l :
Disque /dev/sda: 320.0 Go, 320072933376 octets
255 heads, 63 sectors/track, 38913 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x0007783b
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1824 14651248+ 83 Linux
/dev/sda2 1825 38913 297917392+ 5 Extended
/dev/sda5 1825 2067 1951866 82 Linux swap / Solaris
/dev/sda6 2068 38913 295965463+ 83 Linux
Disque /dev/sdb: 81.9 Go, 81964302336 octets
255 heads, 63 sectors/track, 9964 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0xd68ad68a
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 2 1935 15534855 5 Extended
/dev/sdb2 1936 6280 34901212+ c W95 FAT32 (LBA)
/dev/sdb3 6281 9964 29591730 7 HPFS/NTFS
/dev/sdb5 2 1935 15534823+ 7 HPFS/NTFS
Par contre le windows est sur /dev/sdb5 (les autres contiennent des soft et du stockage). Je pense que c'est parcequ'il avait été réinstallé (sans formater les autres partitions). Par contre, j'ai l'impression de sdb5 est inclus dans sdb1... je ne sais pas trop d'où ça vient...
Merci d'avance pour les conseils
#20 Le 06/03/2009, à 21:42
- Carroués
Re : Résolu error 12 généré par le grub
Bonsoir Leotus,
Ton problème est quoi au juste : Windows ne démarre pas, ou rien ne démarre ?
sdb5 est une partition étendue : je ne vois pas comment Windows démarrera. sdX1→4 = primaires (ou étendue), à partir de sdX5 = logique.
À part ça j'avoue que j'arrive juste d'une séance assez ardu de "gain de casse-croûte" ; j'ai pas bien ingurgité ton problème ! Ton Ubuntu était installé sur ce disque mais dans une autre tour ?
Hors ligne
#21 Le 07/03/2009, à 08:32
- Leotus
Re : Résolu error 12 généré par le grub
Merci Carroues
En effet, ce n'est pas très clair.
Ubuntu démarre sans problème mais j'ai une erreur 12 dans grub au moment de lancer windows. Les deux systems sont sur deux disques dur differents qui sont bien dans ce PC mais le windows a été installé dans une tour n°1 avant que le DD soit monté dans la tour n°2. Ubuntu lui a été installé dircetement dans la tour n°2. Et c'est dans la tour n°2 que se situe le problème.
Tu dis que Windows ne peux pas démarrer sur une partition étendue ? Celà signifie-t-il que si il est sur une partition étendue (ce qui semble être le cas) il me faut formater la partition en question pour en faire une partition primaire ou existe-t-il une "manière douce" de règler le problème ?
J'ai jeté un coup d'oeil au partitionnement dans GParted et il semblerait que :
/dev/sdb1 15Go extended
----->/dev/sdb5 15Go ntfs <--- contient Windows
/dev/sdb2 33Go fat32 (lba)
/dev/sdb3 28Go ntfs
#22 Le 07/03/2009, à 09:58
- Carroués
Re : Résolu error 12 généré par le grub
Je me demande si plus simplement tu ne te trompes pas et que le système se trouverait en sdb3. Si tu n'as entrepris aucun remaniement du disque, le système ne peut pas s'être déplacé tout seul, donc ne peut pas se trouver sur une partition logique.
Tente le coup en modifiant la fin de ton menu.lst :
→ sudo gedit /boot/grub/menu.lst
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb3
title Microsoft Windows XP Professionnel
root (hd1,2)
Par contre, même si j'ai raison, je ne garantis pas que XP puisse démarrer puisque le disque n'est plus raccordé à la carte-mère utilisée lors de l'installation.
Hors ligne
#23 Le 08/03/2009, à 11:38
- Leotus
Re : Résolu error 12 généré par le grub
J'ai essayé root (hd1.2) et là :
erreur 22 : no such partition
O_o
est-ce possible qu'il y ait une erreur dans la table des partitions ?
J'ai verifié en navigant, c'est bien le disque de 15Go qui contient windows.
#24 Le 08/03/2009, à 12:28
- Carroués
Re : Résolu error 12 généré par le grub
As tu bien saisi (hd1,2) avec une virgule ?
Hors ligne
#25 Le 08/03/2009, à 18:38
- Leotus
Re : Résolu error 12 généré par le grub
oui j'ai juste remplacé le caractère.