Installer Ubuntu en multi boot
Un cas particulier de configuration qui est très difficile à trouver sur le net :fou:
particularités: 3 Disques Durs
DD1 :Mandrake 10.1
DD2 :Windows XP & Ubuntu Warty
DD3 :Disque de stockage en NTFS (pas d'OS)
Le problème est le suivant: Windows n'est pas le premier, donc il faut le leurer:
J'ai choisi le Grub d'ubuntu, et j'ai viré le
sudo
Voilà comment faire: en root
Voici mon fdisk -l:
Code :
Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 20449 10306264+ 83 Linux
/dev/hda2 20450 158816 69736968 5 Extended
/dev/hda5 20450 21964 763528+ 82 Linux swap
/dev/hda6 21965 52708 15494944+ 83 Linux
/dev/hda7 52709 158816 53478400+ 83 Linux
Disk /dev/hdb: 41.1 GB, 41174138880 bytes
16 heads, 63 sectors/track, 79780 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 40641 20482843+ c W95 FAT32 (LBA)
/dev/hdb2 40642 52266 5859000 83 Linux
/dev/hdb3 52267 79780 13867056 f W95 Ext'd (LBA)
/dev/hdb5 52267 54045 896553 83 Linux
/dev/hdb6 54046 79780 12970408+ 83 Linux
Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 2 9729 78140160 f W95 Ext'd (LBA)
/dev/hdd5 2 9729 78140128+ 7 HPFS/NTFS
Il faut donc configurer GRUB comme suit:
# cd /boot/grub/
# emacs menu.lst
Code :
title Ubuntu, kernel 2.6.8.1-5-386
root (hd1,1)
kernel /boot/vmlinuz-2.6.8.1-5-386 root=/dev/hdb2 ro quiet splash vga=773
initrd /boot/initrd.img-2.6.8.1-5-386
savedefault
boot
title Ubuntu, kernel 2.6.8.1-5-386 (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.8.1-5-386 root=/dev/hdb2 ro single
initrd /boot/initrd.img-2.6.8.1-5-386
savedefault
boot
title Memory test
root (hd1,1)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title linux (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro acpi=ht splash=silent
initrd /boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title linux-nonfb (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro acpi=ht
initrd /boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title failsafe (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro failsafe acpi=ht
initrd /boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdb1
# C'est ici qu'il faut leurer windows afin qu'il pense qu'il est le premier sur le
# boot avec les options 'map'
title Windows NT/2000/XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
#Démarrer depuis disquette
title floppy
root (fd0)
chainloader +1
Ainsi donc, pour leurer windows j'ai mis
map (hd0) (hd1)
map (hd1) (hd0)
et pour qu'il ne vérifie pas le root:
rootnoverify (hd1,0) --> Ce qui signifie que windows est sur le disque dur n°2, dans la partition n°1. (on 0=1 en fait, par exemple si ça avait été sur mon troisième disque dur, dans la deuxième partie == (hd2,1))
Oui mais voilà quand je boote, windows ne boote pas sans message d'erreur!
Pour cela, il faut aller dans le bios, et mettre le disque dur où est installé windows en mode
LBA, et non plus en auto (il apparaissait déjà dans mon fdisk -l

)!
Voilà cette dernière étape m'a pris 2 jours à découvrir, c'est pour cela que je vous en fait profiter.
Donc: on peut très bien installer Windows en esclave
