Bonjour à tous,
J'utilise de régulièrement Ubuntu en boot sur clé USB pour des interventions de maintenance sur PC.
Je voulais avoir la même chose sur Mac.
Pour le moment je suis sur la bonne voie.
J'ai crée une clé qui boot aussi bien sur PC que sur Mac, sauf que pas tous les Mac.
Pour le moment elle fonctionne sur les derniers Macbook air et sur les MacBook version alu.
Sur les derniers Macbook Pro, elle n'est pas reconnue.
Je lance donc une idée de projet avec une clé avec ubuntu en boot 100 % compatible PC/MAC (100% des macs intel).
Ma méthode :
1. créer deux partitions sur la clé
La plus petite formatée en HFS+ (“Mac OS Extended”)
Ensuite suivre la procédure donnée ici avec rEfIt
http://refit.sourceforge.net/doc/c1s1_install.html
Download the “Mac disk image” or any of the other two binary distributions from the home page. Double-click to mount or unpack them.
Copy the “efi” folder from the rEFIt distribution to the root level of your Mac OS X volume.
Open Terminal and enter the following commands:
cd /efi/refit
./enable.sh
Installing on a separate volume or external disk
If you’re uncomfortable with having rEFIt on your Mac OS X volume, you can install it on any other volume, as long as it is formatted in the HFS+ (“Mac OS Extended”) format. For example, you can install rEFIt on a USB flash drive.
The installation procedure is basically the same as explained above — copy the “efi” folder to the root of the volume, and run “enable.sh” inside the “efi/refit” directory. The path in Terminal will be different, for example “/Volumes/MyStick/efi/refit” if the volume is named “MyStick”.
If you want, you can use the provided “rEFIt.icns” icon as a volume icon.
2. Suivre la procédure donnée ici :
http://www.ubuntu.com/download/ubuntu/download
Download the desired file
Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight)
Convert the .iso file to .img using the convert option of hdiutil (e.g., hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)
Note: OS X tends to put the .dmg ending on the output file automatically.
Run diskutil list to get the current list of devices
Insert your flash media
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img or ./ubuntu.dmg).
Using /dev/rdisk instead of /dev/disk may be faster.
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the drive.
Run diskutil eject /dev/diskN and remove your flash media when the command completes
Restart your Mac and press alt while the Mac is restarting to choose the USB-Stick
Mon problème donc pour le moment OK sur PC, OK sur Mac mais pas tous.
Besoin de votre aide les amis.
😉