Grub error 15

OS = xp et debian
fdisk -l :

xelos:/home/xelos# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6ebb4a49

Device Boot Start End Blocks Id System
/dev/hda1 5636 5697 498015 82 Linux swap / Solaris
/dev/hda2 * 514 5635 41142465 7 HPFS/NTFS
/dev/hda3 5698 6937 9960300 83 Linux
/dev/hda4 6938 9729 22426740 83 Linux

Partition table entries are not in disk order


xelos:/home/xelos# blkid
/dev/hda1: TYPE=“swap”
/dev/hda2: UUID=“E2105DEC105DC865” LABEL=“HP_PAVILION” TYPE=“ntfs”
/dev/hda4: UUID=“cb17846e-1b79-4da7-b7cc-8c0fd9d67d34” SEC_TYPE=“ext2” TYPE=“ext3”
/dev/hda3: UUID=“5ed5a689-69f3-4a35-8684-d5ef873c40c4” TYPE=“ext3”


DO NOT EDIT THIS FILE

It is automatically generated by /usr/sbin/grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

set default=0
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
set timeout=5

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

menuentry “Debian GNU/Linux, with Linux 2.6.30-1-686” {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
linux /boot/vmlinuz-2.6.30-1-686 root=UUID=5ed5a689-69f3-4a35-8684-d5ef873c40c4 ro quiet
initrd /boot/initrd.img-2.6.30-1-686
}
menuentry “Debian GNU/Linux, with Linux 2.6.30-1-686 (recovery mode)” {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
linux /boot/vmlinuz-2.6.30-1-686 root=UUID=5ed5a689-69f3-4a35-8684-d5ef873c40c4 ro single
initrd /boot/initrd.img-2.6.30-1-686
}
menuentry “Debian GNU/Linux, with Linux 2.6.26-2-686” {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
linux /boot/vmlinuz-2.6.26-2-686 root=UUID=5ed5a689-69f3-4a35-8684-d5ef873c40c4 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
}
menuentry “Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)” {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 5ed5a689-69f3-4a35-8684-d5ef873c40c4
linux /boot/vmlinuz-2.6.26-2-686 root=UUID=5ed5a689-69f3-4a35-8684-d5ef873c40c4 ro single
initrd /boot/initrd.img-2.6.26-2-686
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/30_os-prober

menuentry “Windows NT/2000/XP (loader) (on /dev/hda2)” {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set e2105dec105dc865
drivemap -s (hd0) ${root}
chainloader +1
}

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom

Salut,
Je ne vois pas d’erreur…

Ici > viewtopic.php?p=213208#p213208 “FLY” est parvenu à régler son problème d’erreur 15…

Il s’agit de démarrer avec SuperGrubCD (tu l’as…)

Puis

$ sudo apt-get install grub
$ sudo grub-install hd0
  1. enfin pour vérifier que c’est ok :

$ sudo grub grub> find /boot/grub/stage1

Ton Windows démarre convenablement ?
Si je peux me permettre… Je trouve “bizarre” d’avoir mis la swap en première partition… Une raison particulière pour avoir fait ce choix ?

EDIT : Regarde aussi ce lien > alicious.com/2009/grub-2-install-error-15/

xelos:/home/xelos# grub-install hd0
grub-probe: error: Cannot stat hd0' Invalid devicehd0’.
Try ``grub-setup --help’’ for more information.

windows démarre avec SGD.
pour le swap non non j’ai suivi un tutoriel et normalement la partition windows etait là avant que j’installe debian.

AHaha, excellent ton avatar du jour lol :laughing: :laughing:

Salut,

[quote=“XeloS”]xelos:/home/xelos# grub-install hd0
grub-probe: error: Cannot stat hd0' Invalid devicehd0’.
Try ``grub-setup --help’’ for more information.[/quote]

Tu peux donner le contenu de device.map ?
Chez moi ça donne ça :

~/ cat /boot/grub/device.map (hd0) /dev/sda (hd1) /dev/sdb (hd2) /dev/sdc (hd3) /dev/sdd (hd4) /dev/sde (hd5) /dev/sdf

Tu peux vérifier si ta config est bonne avec ça :

█▓▒░root@deb501░▒▓██▓▒░ mar. nov. 10 08:27:19 ~/ grub-probe --device /dev/sda1 ext2 █▓▒░root@deb501░▒▓██▓▒░ mar. nov. 10 08:27:24 ~/ grub-probe --device /dev/sda2 grub-probe: error: Cannot find a GRUB drive for /dev/sda2. Check your device.map.

Dans l’exemple ci-dessus c’est bon pour sda1 mais pas pour sda2…

[quote=“XeloS”]windows démarre avec SGD.[/quote] Kesako SGD (excuse mon ignorance…)

[quote=“llapingachos”]AHaha, excellent ton avatar du jour lol :laughing: :laughing:[/quote] :smt058 Copain !

xelos:/home/xelos# cat /boot/grub/device.map
(hd0) /dev/hda

SGD = super grub disk

xelos:/home/xelos# grub-probe --device /dev/hda
grub-probe: error: unknown filesystem
xelos:/home/xelos# grub-probe --device /dev/sda
grub-probe: error: Cannot stat /dev/sda' xelos:/home/xelos# grub-probe --device /dev/hda2 ntfs xelos:/home/xelos# grub-probe --device /dev/hda3 ext2 xelos:/home/xelos# grub-probe --device /dev/hda4 ext2 xelos:/home/xelos# grub-probe --device /dev/hda5 grub-probe: error: Cannot stat/dev/hda5’
xelos:/home/xelos# grub-probe --device /dev/hda6
grub-probe: error: Cannot stat `/dev/hda6’
xelos:/home/xelos# grub-probe --device /dev/hda
grub-probe: error: unknown filesystem
xelos:/home/xelos# grub-probe --device /dev/hda1
grub-probe: error: unknown filesystem
xelos:/home/xelos# grub-probe --device /dev/hda2
ntfs
xelos:/home/xelos#

Ben mon vieux… Je sent comme un légère point d’usure…

Grub-pc ne s’est très probablement pas bien installé dans le MBR… Je ne vois plus que ça.

Solution :

1 démarrer avec un LiveCD
2 “chrooter” le système qui ne démarre pas
3 réinstaller grub dans le mbr avec la commande grub-install /dev/hda

Détail des commandes (SI ton système est bien dans hda3 - l’avant-dernière partition… Sinon c’est hda4)

mkdir /mnt/hda3 mount /dev/hda3 /mnt/hda3 chroot /mnt/hda3 mount -t proc /proc /proc grub-install /dev/hda umount /proc reboot

Et tu retrouvera le sourire ! (j’espère, parce-que là… je commence à être à court d’idées…)

moi qui est en manque de cd.
je test dans quelques jours.

comme melvyn :

et en fait il y a un moment où il est demandé de saisir le disque où doit être faite l’installation… en fait j’avais fait [Entrée] sans avoir sélectionne le périphérique avec la touche [Espace]… du coup la seconde fois j’ai selectionné le disque proposé et tout est revenu à la normale.

presque un mois de galère pour çà

[quote=“XeloS”]comme melvyn :

et en fait il y a un moment où il est demandé de saisir le disque où doit être faite l’installation… en fait j’avais fait [Entrée] sans avoir sélectionne le périphérique avec la touche [Espace]… du coup la seconde fois j’ai selectionné le disque proposé et tout est revenu à la normale.

presque un mois de galère pour çà[/quote]

Il y a toujours un moment ou “la lumière” vient ! Au moins maintenant tu maîtrise a fond Grub2 :smiley: