- Modifié
Bonjour à tous
J'aimerai pouvoir démarrer mon winxp à partir de grub.
Je n'y arrive pas .
Voici le contexte.
[root@perso ~]# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 12761 102398310 8e Linux LVM
Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sdb2 5100 14946 79096027+ f W95 Ext'd (LBA)
/dev/sdb5 5100 14946 79095996 7 HPFS/NTFS
Disk /dev/sdc: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 14945 120045681 7 HPFS/NTFS
/dev/sdc2 14946 14946 8032+ f W95 Ext'd (LBA)
[root@perso ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VGsystem/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-1.2948.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2948.fc6 ro root=/dev/VGsystem/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2948.fc6.img
title Fedora Core (2.6.20-1.2944.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VGsystem/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2944.fc6.img
title winxp
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
[root@perso ~]# cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
[root@perso ~]#
Ma fedora est sur /dev/sda
Mon xp est sur /dev/sdb.
Aujourd'hui, pour booter sur l'un ou l'autre des OS, je modifie l'ordre de boot dans le bios.
Sur internet, j'ai lu que le mapping des disques pour windows pouvait ne pas marcher si on utilisait
un driver spécifique. ( je pense que c'est mon cas, car j'ai du modifier mon cd XP et integrer les drivers sata promise ).
J'ai essaye dans l'autre sens, c'est à dire de démarrer la fedora à partir du boot.ini de windows.
pour cela, j'ai récupère le secteur de boot.
dd if=/dev/sda of=/tmp/bootsect.lnx bs=512 count=1.
quand je demarre à partir d'xp j'ai une erreur grub 22.
Je pense que c'est normal (modif du bios, donc les disques ne sont plus dans le même ordre).
Voila, si quelqu'un à une idée, je suis preneur.
Merci
J'aimerai pouvoir démarrer mon winxp à partir de grub.
Je n'y arrive pas .
Voici le contexte.
[root@perso ~]# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 12761 102398310 8e Linux LVM
Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sdb2 5100 14946 79096027+ f W95 Ext'd (LBA)
/dev/sdb5 5100 14946 79095996 7 HPFS/NTFS
Disk /dev/sdc: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 14945 120045681 7 HPFS/NTFS
/dev/sdc2 14946 14946 8032+ f W95 Ext'd (LBA)
[root@perso ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VGsystem/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-1.2948.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2948.fc6 ro root=/dev/VGsystem/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2948.fc6.img
title Fedora Core (2.6.20-1.2944.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VGsystem/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2944.fc6.img
title winxp
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
[root@perso ~]# cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
[root@perso ~]#
Ma fedora est sur /dev/sda
Mon xp est sur /dev/sdb.
Aujourd'hui, pour booter sur l'un ou l'autre des OS, je modifie l'ordre de boot dans le bios.
Sur internet, j'ai lu que le mapping des disques pour windows pouvait ne pas marcher si on utilisait
un driver spécifique. ( je pense que c'est mon cas, car j'ai du modifier mon cd XP et integrer les drivers sata promise ).
J'ai essaye dans l'autre sens, c'est à dire de démarrer la fedora à partir du boot.ini de windows.
pour cela, j'ai récupère le secteur de boot.
dd if=/dev/sda of=/tmp/bootsect.lnx bs=512 count=1.
quand je demarre à partir d'xp j'ai une erreur grub 22.
Je pense que c'est normal (modif du bios, donc les disques ne sont plus dans le même ordre).
Voila, si quelqu'un à une idée, je suis preneur.
Merci