Bootcamp et partionnement de disque refus d'instalation

bnawfel78

Membre confirmé
30 Septembre 2004
21
0
Bonjour,
je rencontre un leger probleme concernant l'instalation de bootcamp car il refuse de partionné mon disque dur (clui ci est déja partionné en 2).
j'ai déja une partion system et l'autre de sauvegarde.
peut ton gardé ou y a t'il une astuce pour avoir 3 partitions dont celle de windows ?? :confused:
 
Suit la procédure pour installer un triple boot WINdaube, linux et Mac OSX. Dedans il y a un partitionnement à la main peut-être un début de piste de réponse à ta question.

Before you start

Before you begin you will need the following:
An Intel Mac
OSX install DVD(s)
A non-upgrade windows XP cd with SP2 slipstreamed
An x86 linux live cd/dvd (I used the gentoo 2006.0 live cd)
The Intel Mac firmware update (early 2006 models only)
Apple BootCamp
OSX 10.4.6 combo update
Please note that this procedure can potentally Destroy all data on you machine's hard disk drive, so make a backup first.
If you don't know how to make a clean back up of your system, you can visit the How_To_Backup_your_Mac page.
[edit]
A quick note on disk partitioning

If you want to just get on with installing, skip the next 2 sections and continue on to the procedure. Otherwise keep reading.
The primary problem with installing operating systems on a mac is the partitioning system. Intel macs use the new GPT method to partition drives. (GPT is part of the new Extensible Firmware Interface (EFI) standard proposed by Intel as a replacement for the outdated PC BIOS). This is supported by OSX (obviously) and linux. However windows can only be installed on a machine with a legacy (MBR) based partitioning system. In order to overcome this, bootcamp uses both systems, and herein lies the difficulty in triple booting. Currently there is no partitioning software available apart from diskutil (included with OSX 10.4.6) that can create dual gpt/mbr partition system drives. Current GPT based partitioners (eg parted) wipe the MBR partion, whereas current MBR partitioners (fdisk/partion magic) can't edit GPT.
In other words we have to manually partition the drive using diskutil in order to get the necessary partition structure for triple booting. However it gets worse. MBR only supports 4 primary partitions and GPT does not support extended partitions. Combining these two limitations means that a dual partition system disk can have a maximum of 4 primary partitions. In addition, apple reserves the first primary partition for their bootloader. That leaves us with only three partitions to play with, one for each OS. Hence, we cannot have a linux swap partition, instead we must create a swapfile. Also, for some reason bootcamp expects the windows "c:" drive to be the last partition present the drive. If it isn't windows setup will crash with a "cannot find hall.dll" error after the first reboot.
Finally, it is best to stick with the advice given by Apple and format the windows partition as FAT32. If you use NTFS there is a possibility the GPT/MBR partition tables will no longer agree. However if you do decide to stick with FAT32 your windows partition cannot be greater than 32GB.
[edit]
The science of chainloading

In order to boot linux, this method chainloads the lilo bootloader from the windows xp (ntldr) bootloader. The reasoning behind this is that bootcamp expects to find ntldr on the master boot record.
As for using grub, unfortunately it does not work with bootcamp. Grub tries to install the stage 1.5 code into the same section of disk reserved for the primary GPT record. Apple's firmware prevents this from occuring.
It may also be possible to boot linux directly via efi/elilo. If anyone figures out how, please add it below.
[edit]
Procedure

Install OSX as normal onto your hard disk drive with 1 single partition. Only install the base system at this point, in order to save time.
Boot into OSX. Install the OSX 10.4.6 combo update.
Install the firmware update for your mac, then install BootCamp.
Run the bootcamp assistant and create the XP driver cd. Then exit bootcamp. DO NOT PARTITION USING BOOTCAMP. Alternatively you can burn the disk without running the assistant. To do so CTRL-Click on the BootCamp assistant and select 'Show Package Contents'. Then copy the Contents/Resources/diskimage.dmg file to the desktop and use disk utility to burn that image to the cd.
Open up a terminal window and type the following in order to repartition the drive. In the example below I have repartitioned a 100Gb Hard disk to contain 60Gb OSX, 17Gb Linux and 15Gb windows partitions. You can change the volume names/sizes but not the order.
sudo diskutil resizeVolume disk0s2 60G Linux 17G "MS-DOS FAT32" 15G
Insert your WinXP cd and restart. When you hear the chime hold down c.
Windows setup will start. At the disk partition screen, select the c: drive. "Quick partition" it as FAT32. Setup will continue and eventually restart your computer.
After the first restart, hold down the option/alt key and select the windows HDD from the bootloader in order to continue setting up XP. You will need to repeat this until Windows is fully setup.
Finish up the XP install by using the Macintosh driver cd you created earilier to install the system drivers.
You now have a dual boot system, but we aren't finished yet.
Insert the Linux live cd, and restart. When you hear the chime, hold down the c button to boot into linux.
Set the live cds root password by typing
sudo passwd root
su to root, then format the linux partition, it should be /dev/sda3, but check first!
su
mke2fs -j /dev/sda3

Mount the ext3 partition you created and then create a swapfile. The example below creates a 2Gb swap, however feel free to choose a different amount if you wish.
mkdir /mnt/linux && mount -t ext3 /dev/sda3 /mnt/linux
dd if=/dev/zero of=/mnt/linux/swap bs=1024 count=2097152
mkswap /mnt/linux/swap
swapon /mnt/linux/swap

From here you need to bootstrap your favorite distro. Depending on the variant, this may also require you to compile your own kernel.
We now need to setup the lilo bootloader so that we can boot into Linux. Install lilo in the manner that is normal for your distro of choice.
Create the /etc/lilo.conf file as follows
# Global LILO settings
boot=/dev/sda3
prompt
timeout=50
default=Linux

# Kernel specific LILO settings
image=/boot/
label= Linux
read-only
root=/dev/sda3

Next Install lilo onto the partition record of your linux partition
/sbin/lilo

You now need to mount your windows partition, create a chainload file for ntldr and then add a reference to it in the windows boot.ini file.
mkdir /mnt/windows && mount -t vfat /dev/sda4 /mnt/windows
cd /mnt/windows
dd if=/dev/sda3 of=linux.mbr bs=512 count=1
cat 'C:\linux.mbr="XYZ Linux"' >> /mnt/windows/boot.ini
cd && umount /mnt/windows

Now restart your Mac. If everything has worked correctly, when you hold down the option/alt key, you will be presented with an option to boot to OSX and Windows. Select Windows. NTLDR will now show up and present you with the option to either boot into windows or linux. Select Linux to boot.
[edit]
Drivers

Version 8.24.6 or later of ati's notebook linux drivers support the X1600 card found the macbook pro. They are available on Ati's website
 
Les instructions d'installation de bootcamp précisent bien me semble-t'il que l'installation ne se fera que sur un disque NON partitionné. (càd avec 1 SEULE partition au départ).