Это старая версия документа!


ElementaryOS

  • sudo mount /dev/sda2 /mnt
  • sudo mount /dev/sda3 /mnt/home
  • mount -t proc proc /mnt/proc
  • mount -t sysfs sys /mnt/sys
  • mount -o bind /dev /mnt/dev
  • mount -t devpts pts /mnt/dev/pts/
  • cp /etc/resolv.conf /mnt/etc/resolv.conf
  • chroot /mnt
  • sudo mkdir /boot/efi
  • sudo mount /dev/sda1 /boot/efi
  • sudo grub-install –target=x86_64-efi –efi-directory=/boot/efi –bootloader-id=ubuntu –recheck
  • sudo update-grub
  • apt-get install –reinstall grub-efi-amd64
  • update-grub
  • mkfs.vfat -F32 /dev/sda1
  • grub-install /dev/sda

linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1 initrd /boot/initrd.img-3.13.0-29-generic

  • sudo mkdir /boot/efi
  • sudo mount /dev/sda2 /boot/efi
  • sudo apt-get install grub-efi-amd64
  • sudo grub-install /dev/sda
  • sudo update-grub
  • sudo add-apt-repository ppa:yannubuntu/boot-repair
  • sudo apt-get update
  • sudo apt-get install -y boot-repair && (boot-repair &)
  1. Back your shit up
  2. No really, make sure you have a working backup. This procedure has been tested multiple times, but it's still possible things will go wrong and lose data.
  3. Download rEFInd (http://www.rodsbooks.com/refind/getting.html) as a "Binary zip file" and decompress it. Open Terminal and cd into the decompressed folder.
  4. Install rEFInd to the ESP partition ($ ./install.sh –esp –alldrivers)
  5. Mount your ESP partition ($ mkdir /Volumes/ESP && sudo mount -t msdos /dev/disk0s1 /Volumes/ESP/)
  6. Rename the refind directory ($ mv /Volumes/ESP/EFI/refind /Volumes/ESP/EFI/BOOT)
  7. Rename the refind EFI blob ($ mv /Volumes/ESP/EFI/BOOT/refind_x64.efi /Volumes/ESP/EFI/BOOT/bootx64.efi)
  8. Fire up Disk Utility and make a new partition/replace your old Linux install partition with a new partition formatted as FAT. Name it something catchy, like "FREYA" (it'll be overwritten in step #14)
  9. Plug your USB drive with elementary OS Freya (If you need to make one, check this out or this for a more-stable manual guide) into your computer.
  10. Pray
  11. Reboot and choose the option that indicates that the OS lives on an external/USB disk.
  12. Choose to "Try Elementary OS" and, when it boots, search for Terminal
  13. Type $ ubiquity -b into the Terminal window - when the installer asks about partitioning, make sure you choose Something Else….
  14. Find the partiton you created in step #8 and format that as Ext4 and set its mount point to /. GRUB will not be installed, since you used the -b option for the installer. This setup is completely GRUB free, using rEFInd & EFI-stub loading (the new hotness).
  15. Finish installing and restart.
  16. Pray
  17. Assuming all went well, you should see Ubuntu options in the rEFInd menu. Choose it.
  18. Pray
  19. You're now dual-booting Freya and OS X. Woot.
  20. (optional) Make your rEFInd nicer. You can install a theme, get rid of the duplicate entries, etc. If you want to know how to do that stuff let me know and I'll document it. Here's what my setup looks like
  1. (optional) If you use an older build, like Beta 1, the WiFi may not work out of the box. In this case you need to install the related drivers manually:
    1. Somehow get a temporary internet connection, e.g. via your smartphone's USB/Bluetooth tethering function or (not tested yet!) a Thunderbold to RJ45 adapter
    2. execute sudo apt-get install bcmwl-kernel-source in a terminal to install the driver and its dependencies