[résolu] Problème Grub Debian/Win

Bonsoir à tous,

J’ai dû racheter un disque dur récemment parce que j’ai occasionnellement besoin d’aller sous windows. J’ai installé windows sur le disque dur et je l’ai branché en second sur la carte mère. (mes disques durs sous tous en sata). J’ai donc modifié mon menu.lst comme suit:

[code]default 0

timeout 10

color cyan/blue white/blue

## End Default Options

title Debian GNU/Linux, kernel 2.6.22-3-686 (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-3-686 root=/dev/sda2 ro
initrd /boot/initrd.img-2.6.22-3-686
savedefault

title Debian GNU/Linux, kernel 2.6.18-5-686 (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/sda2 ro
initrd /boot/initrd.img-2.6.18-5-686
savedefault

title Microsoft Windows XP SP2 (on /dev/sdb1)
rootnoverify (hd1,0)
makeactive
chainloader +1

END DEBIAN AUTOMAGIC KERNELS LIST[/code]

Mes deux noyaux linux bootent parfaitement mais windows ne boote pas et je ne comprends pas où j’ai oublié quelque chose. Voilà ce qui s’affiche quand j’essaie de booter windows:

[code]rootnoverify (hd1,0)
Filesystem type unknown, partition type 0xfd
makeactive
chainloader +1

Error 13: Invalid or unsupported executable format.

Press any key to continue…[/code]

Est-ce que quelqu’un aurait une idée de la solution? Pour info voici un fdisk:

[code]Disk /dev/sda: 74.0 GB, 74000000000 bytes
255 heads, 63 sectors/track, 8996 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00029ad0

Device Boot Start End Blocks Id System
/dev/sda1 * 1 486 3903763+ 82 Linux swap / Solaris
/dev/sda2 487 2353 14996677+ 83 Linux
/dev/sda3 2354 8996 53359897+ 83 Linux

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d3f33

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 6527 52428096 7 HPFS/NTFS
/dev/sdb2 6528 30400 191759872+ f W95 Ext’d (LBA)
/dev/sdb5 6528 13054 52428096 7 HPFS/NTFS
/dev/sdb6 13055 30400 139331713+ 83 Linux

Disk /dev/sdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003286b

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 38913 312568641 fd Linux raid autodetect

Disk /dev/sdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19e219e1

Device Boot Start End Blocks Id System
/dev/sdd1 1 38913 312568641 fd Linux raid autodetect

Disk /dev/md0: 640.1 GB, 640140443648 bytes
2 heads, 4 sectors/track, 156284288 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn’t contain a valid partition table

Disk /dev/sde: 2071 MB, 2071986176 bytes
129 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 4128 * 512 = 2113536 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sde1 * 1 981 2023408 6 FAT16
Partition 1 has different physical/logical endings:
phys=(988, 128, 32) logical=(980, 43, 32)[/code]

et mon device.map:

code /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc[/code]

.

J’ai pas bien compris pourquoi tu me dis de booter sur la première partition de hd2 vu que hd2 correspond à sdc (le premier disque de ma grappe raid). Je n’ai pas bien compris non plus l’utilité de map malgré avoir été lire la doc grub. La doc sur la géométrie, je regarde ça plus attentivement demain :wink:

En tout cas, ce que tu m’as dit de modifier dans mon menu.lst ne me permet pas de booter sur windows. J’ai ça maintenant:

[code]rootnoverify (hd2,0)
map (hd0)(hd2)

Error 11: Unrecognized device string.

Press any key to continue…[/code]

.

Merci de tes réponses claires, je vois ça de suite :slightly_smiling:
Pour ce qui est du 0/O je connais bien ce genre de problèmes et j’y fais attention :wink:

Tu avais raison :wink: J’avais oublié l’espace pour le map. Ca marche impec :wink: Merci pour l’explication de l’utilité de la commande map.
J’ai cependant une question, es-tu en mesure de m’expliquer pourquoi il voit le sdc comme hd1 alors qu’à en croire le device.map ça devrait être le hd2?

.

Ok, merci pour le coup de main et les infos :smiley: ça fait toujours plaisir que tout fonctionne comme on le souhaite! :mrgreen: