Pages : 1
#1 Le 29/01/2008, à 13:11
- cam
[Résolu]Multi boot grub
Salut,
J'ai ya pas longtemps racheté un disque dur car j'avais besoin d'utiliser occasionnellement windows. Voici la configuration de mes disques (ils sont tout Sata)
J'utilises un controleur Intel ICH7 sur une carte mère Abit AW9D-MAX. Le premier disque dur branché est un raptor qui contient 2 partitions (/ et /home) + la partition swap. Le 2ème disque branché contient windows et les 2 suivants forment une grappe raid qui est montée dans mon arborescence linux..
J'ai modifié comme suit mon /boot/grub/menu.lst:
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)
root (hd1,0)
makeactive
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
Mon problème aujourd'hui est que les noyaux linux sont bootables sans problèmes mais que windows ne l'est pas! Quand je demande à booter windows, il me dit:
root (hd1,0)
Filesystem type unknown, partition type 0xfd
makeactive
chainloader +1
Error 13: Invalid or unsupported executable format.
Press any key to continue...
Comment pourrais-je faire pour booter windows? Ce n'est pas si grave parce que je n'utilise que très occasionnellement windows mais j'en ai besoin de temps de temps.
Dernière modification par cam (Le 03/02/2008, à 18:14)
ArchLinux ~ KDE 4.8.3 ~ Mac OSX 10.7.2
Hors ligne
#2 Le 29/01/2008, à 13:57
- cam
Re : [Résolu]Multi boot grub
Voici un fdisk -l:
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+ 7 HPFS/NTFS
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)
Et le device.map:
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
ArchLinux ~ KDE 4.8.3 ~ Mac OSX 10.7.2
Hors ligne
#3 Le 30/01/2008, à 13:13
- cam
Re : [Résolu]Multi boot grub
Trouvé
En fait, grub ne voit pas les disques dans l'ordre o๠ils sont branchés (mais un peu à l'arrache)
Quand j'essaie de booter sur windows avec la config ci-dessus, j'ai:
Filesystem type unknown, partition type 0xfd
Et dans le fdisk on voit:
/dev/sdc1 * 1 38913 312568641 fd Linux raid autodetect
Donc grub ne voit pas le hd1 comme étant le sdb mais comme sdc! Donc il faut mettre à la place dans grub hd2 au lieu de hd1. 1er problème réglé
2ème problème: Windows nécessite d'être le premier disque dur pour booter, on lui ajoute dans l'option (dans grub) map comme suit:
title Microsoft Windows XP SP2 (on /dev/sdb1)
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1
Et voilà , ça fonctionne!
Dernière modification par cam (Le 30/01/2008, à 13:16)
ArchLinux ~ KDE 4.8.3 ~ Mac OSX 10.7.2
Hors ligne
Pages : 1