Bonjour,
voici un fichier de config, devant ajouter windows 7 et windows XP à grub2 (7 pour raison pro, XP pour raison de lan à venir et incompatibilité réseau de seven ^^).
#!/bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows 7" {
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
}
menuentry "Windows XP" {
insmod chain
insmod ntfs
search --fs-uuid --set 01CA9C7A38702FE0
chainloader +1
}
EOF
Je crois que tout tourne admirablement, en tout cas c’est correctement ajouté à grub.cfg.
Cependant, si windows 7 se lance correctement, XP ne fonctionne pas.
Cette solution m’a pourtant parue la plus simple.
voici l’organisation de mon disque :
[code]Nyarlathotep:/etc/grub.d# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc549c549
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 28719 209712510 7 HPFS/NTFS
/dev/sda3 28720 30397 13478535 83 Linux
/dev/sda4 30398 38913 68404770 f W95 Ext’d (LBA)
/dev/sda5 37869 38913 8393931 7 HPFS/NTFS
/dev/sda6 30398 32829 19534977 83 Linux
Partition table entries are not in disk order
[/code]
Xp se trouve sur sda5.
sda4 est une partition étendue, mon home est sur sda6
Quelqu’un a déjà fait la même chose ?