Innerz Posted March 5, 2009 Share Posted March 5, 2009 Bon... avec ce tutoriel j'ai pas inventé le fil à couper le beurre, mais ça servira à plus d'un. 1. On lance Terminal 2. On va lister tous les disques dur, ainsi que leurs partitions avec la commande suivante : $ diskutil list On devrait obtenir quelque chose de ce genre là (dans ce cas 2 disques dur "disk0" et "disk1") : /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *465.8 Gi disk0 1: Apple_HFS TimeMachine 405.2 Gi disk0s1 2: Windows_NTFS Commun 60.5 Gi disk0s2 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *465.8 Gi disk1 1: Windows_NTFS XP 73.2 Gi disk1s1 2: Apple_HFS OSX 73.2 Gi disk1s2 3: Windows_NTFS Stockage 319.3 Gi disk1s3 On peut voir qu'OS X est installé sur "disk1s2" 3. Activation de la partition "disk1s2" avec "fdisk" On lance l'outil "fdisk" sur le "disk1" $ sudo fdisk -e /dev/rdisk1 On liste toute les commandes de "fdisk" avec "help" fdisk: 1> help help Command help list manual Show entire man page for fdisk reinit Re-initialize loaded MBR (to defaults) auto Auto-partition the disk with a partition style setpid Set the identifier of a given table entry disk Edit current drive stats edit Edit given table entry erase Erase current MBR flag Flag given table entry as bootable update Update machine code in loaded MBR select Select extended partition table entry MBR print Print loaded MBR partition table write Write loaded MBR to disk exit Exit edit of current MBR, without saving changes quit Quit edit of current MBR, saving current changes abort Abort program without saving current changes Remarque : Les commandes peuvent-être lancer juste en tapant la première lettre, ou bien en entier. On liste toutes les partitions de "disk1" fdisk: 1> p ("p" pour print) On obtient quelque chose de ce genre : Disk: /dev/rdisk1 geometry: 60801/255/63 [976771055 sectors] Offset: 0 Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ *1: 07 0 1 1 - 1023 254 63 [ 63 - 153597402] HPFS/QNX/AUX 2: AF 1023 254 63 - 1023 254 63 [ 153597465 - 153597465] HFS+ 3: 07 1023 254 63 - 1023 254 63 [ 307194930 - 669573135] HPFS/QNX/AUX 4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused fdisk: 1> On remarque que la partition activée est marquée d'une "*", en l'occurence la partition "1" (XP, HPFS/QNX/AUX). Mais ce que l'on veut c'est activé la partition "2" (OSX, HFS+) On active la partition "2" fdisk: 1> flag 2 Partition 2 marked active. On écrit sur la table de partition fdisk:*1> write Device could not be accessed exclusively. A reboot will be needed for changes to take effect. OK? [n] y Writing MBR at offset 0. On quitte "fdisk" fdisk: 1> quit Il ne reste plus qu'à redémarrer en croisant les doigts, comme dirait l'ami "Kext Helper" Link to comment Share on other sites More sharing options...
Recommended Posts