- Установите rEFInd на OS X 10.10 Yosemite
- Search
- Install the rEFInd boot manager on a computer running macOS
- Introduction
- Table of Contents
- Download rEFInd
- Disable System Integrity Protection
- Automatic rEFInd Installer
- Re-enable System Integrity Protection
- That’s it
- Manual installation
- Identify Your System
- Mount your EFI System Partition.
- Move the rEFInd files
- Remove Unnecessary rEFInd Files
- Rename rEFInd Config File
- Bless rEFInd
- Unmount the rEFInd directory
- Re-enable System Integrity Protection
- That’s it
- rowanphipps / macOS_rEFInd_guide.md
Установите rEFInd на OS X 10.10 Yosemite
Я хочу выполнить двойную загрузку моего macbook с Arch Linux и, таким образом, попытался установить rEFInd с помощью сценария установки, однако после установки rEFInd, похоже, вообще не запускается? Кто-нибудь сталкивался с такой же проблемой или есть возможные решения, как это исправить?
Просто хотел, чтобы вы знали, что я нашел решение, чтобы избежать теперь знаменитого «ожидания 30 секунд» 😉
У меня MacBook Air середины 2012 года. Я попробовал все ваши упомянутые решения, чтобы ускорить загрузку в Yosemite, но лучшим для меня было изменить имя папки refind в разделе EFI, а также переименовать файл refind.
В целях безопасности я добавил все папки «drivers_x64», выполнив ./install.sh —alldrivers установку rEFInd.
На моем разделе EFI в Yosemite (хранится в /dev/disk0s1 ) я переименовал папку «refind» в «BOOT»
Внутри этой папки я переименовал «refind_x64.efi» в «bootx64.efi»
Последние 2 шага позволили моему Mac мгновенно загрузиться с помощью rEFInd, теперь он не ждет около 30 секунд для сканирования диска EFI!
Я исправил проблему, просто добавив —alldrivers при установке refind. Двойная загрузка Yosemite теперь работает как раньше. Быстро, и все переделано в меню загрузки Refind.
Я собираюсь вновь ответить на свой вопрос здесь, потому что теперь есть официальное решение от REFInd, и, таким образом, я считаю, что это правильный путь для этого.
Официальные рекомендации можно найти на веб-сайте REFInd .
Ниже приведены шаги, представленные там:
- Загрузитесь с OS X, используя все доступные вам средства. Удержание Option (или Alt) при включении обычно дает вам собственный менеджер загрузки Apple, который должен позволить вам загрузиться в OS X. Если ваша установка rEFInd в данный момент начинается, но не показывает опцию OS X, перейдите к шагу # 7; но если rEFInd не запускается, выполните шаги № 2–7.
- Если вы внесли изменения в /EFI/refind/refind.conf , сделайте резервную копию.
- Удалить /EFI/refind дерево каталогов; теперь это бесполезно, и его присутствие может вызвать путаницу.
- Переустановите rEFInd, как описано на странице Установка rEFInd ; но обязательно используйте опцию —esp или —ownhfs device-file . Последнее предпочтительнее, но требует либо выделенного раздела для rEFInd, либо раздела данных HFS +, который в данный момент не загружается.
- Убедитесь, что раздел, в который вы установили rEFInd, смонтирован. Детали зависят от того, как вы его установили:
- Если вы установили rEFInd на свой ESP, введите mkdir / Volumes / esp, а затем sudo mount -t msdos / dev / disk0s1 / Volumes / esp , вероятно, будет работать, хотя в некоторых случаях ваш ESP не будет /dev/disk0s1 , поэтому вам, возможно, придется изменить эта деталь.
- Если вы использовали опцию установки файла устройства —ownhfs, целевой раздел уже должен быть смонтирован, обычно где-то в / Volumes. Если нет, найдите его и смонтируйте с помощью Дисковой утилиты или mount .
- Если вы создали резервную копию своего refind.conf файла, теперь вы можете скопировать его в новый refind.conf файл. Вы должны скопировать файл либо /Volumes/esp/EFI/refind/ (если вы использовали —esp и подключили ESP в /Volumes/esp ), либо /Volumes/Mountpoint/System/Library/CoreServices/ (если вы использовали выделенный том HFS +; обратите внимание, что Mountpoint это будет имя тома).
- Отредактируйте новый refind.conf файл, который должен быть расположен, как описано в предыдущем шаге. В вашем любимом редакторе найдите dont_scan_volumes строку, которая по умолчанию закомментирована символом # в начале строки. Раскомментируйте эту строку и удалите из нее пункт «Recovery HD». Некоторые пользователи сообщают, что им нужно ввести одну или две фиктивные записи, например dont_scan_volumes foo,bar , чтобы заставить его работать.
Я нашел обходной путь для использования rEFInd в Yosemite, но, пожалуйста, обратите внимание, что это, вероятно, не лучшее решение .
Я думаю, что причина того, что rEFInd больше не работает в Yosemite, заключается в том, что корневой раздел системы больше не находится в физическом разделе, поэтому rEFInd не сможет быть распознан на этапе загрузки. Итак, я попытался установить rEFInd вручную в раздел EFI, и это сработало.
Вот процедура:
1. Откройте Дисковую утилиту , выберите раздел EFI и смонтируйте его. Обычно точка монтирования должна быть / Volumes / EFI
2. Я предполагаю, что вы уже установили rEFInd, запустив сценарий install.sh с аргументами по умолчанию (rEFInd должен быть установлен в / EFI / refind ). Откройте терминал, введите следующие команды: cp -r /EFI/refind /Volumes/EFI/EFI/ sudo bless —mount /Volumes/EFI —setBoot —file /Volumes/EFI/EFI/refind/refind_x64.efi
Этот обходной путь имеет недостатки. На моем Macbook Air потребовалось 40 секунд, чтобы появилось меню rEFInd, и раздел Yosemite не был распознан и отображен в меню, только мой загрузчик linux (grub2efi) и раздел восстановления были обнаружены.
Если вы хотите загрузиться в Yosemite, вы должны удерживать Option во время запуска и выбрать свой раздел Yosemite.
Источник
Search
Install the rEFInd boot manager on a computer running macOS
Introduction
rEFInd is a boot manager which allows you to boot multiple operating systems from internal or external hard drives. rEFInd automatically detects EFI bootloaders and shows a graphical interface allowing the user to select which operating system they want to start.
These instructions will show you how to use the automatic rEFInd installer or to manually install rEFInd on a computer running macOS.
Table of Contents
Download rEFInd
Download the latest version of rEFInd from SourceForge.
Disable System Integrity Protection
System Integrity Protection (SIP) prevents certain folders from being modified even by the root user or by a user with root privileges. Mac OS 10.11 (El Capitan) and later have SIP turned on by default. SIP must be disabled in order to install rEFInd.
Check if System Integrity Protection is enabled:
If it returns System Integrity Protection status: enabled. , follow these steps to disable SIP before installing rEFInd:
- Restart your computer.
- While your computer is restarting hold down Command-R (⌘R). This will start your computer in Recovery mode.
- After your computer restarted, click on the Utilities menu and select Terminal.
- Enter csrutil disable .
- Restart your computer normally.
Automatic rEFInd Installer
- Uncompress the rEFInd zip file that you downloaded from SourceForge.
- Open Terminal and navigate into the uncompressed rEFInd folder.
- Then enter:
An automatic installer will install rEFInd into your EFI partition.
Re-enable System Integrity Protection
After you finish installing rEFInd, you should re-enable System Integrity Protection (SIP). The process of re-enabling SIP is almost identical to disabling it:
- Restart you computer.
- While it’s restarting hold down Command-R (⌘R). This will start it in Recovery mode.
- Click on the Utilities menu and select Terminal.
- Enter csrutil enable .
- Restart your computer normally.
That’s it
After restart, your computer will load the rEFInd boot manager automatically. You will see a screen like the one below. Use the left and right arrows to select an operating system.
Manual installation
These instructions will show you how to install rEFInd manually by copying specific files from the rEFInd zip file to a folder on your computer.
Identify Your System
First you need to identify if you have a 32-bit or 64-bit system.
Open Terminal and enter:
Terminal will return either EFI32 or EFI64 .
Mount your EFI System Partition.
The EFI System Partition (ESP) contains files that tell your computer which operating system to load while it is starting up.
To modify your computer’s ESP, create an empty folder and then mount the ESP to that folder.
Create a folder in Terminal: sudo mkdir Volumes/esp
Mount the ESP to that folder: sudo mount -t msdos /dev/disk0s1 Volumes/esp
Move the rEFInd files
Now move the files from the unzipped rEFInd folder to the ESP folder.
Create an empty folder in the ESP folder for the rEFInd files: sudo mkdir -p /Volumes/esp/efi/refind
In Terminal, navigate into the unzipped folder you downloaded from SourceForge and copy the rEFInd files to the new rEFInd folder you just created: sudo cp -r refind/* /Volumes/esp/efi/refind/
Remove Unnecessary rEFInd Files
There are several versions of rEFInd that were copied from the unzipped folder to the ESP folder, but you only need the one version that will work with your computer.
This step will show you how to remove the unnecessary versions of rEFInd from /Volumes/esp/efi/refind/ .
Apple computers don’t use an ARM CPU, so you can delete this file:
If you have a 64-bit computer, remove this file:
If you have a 32-bit computer, remove this file:
Rename rEFInd Config File
If this is your first installation of rEFInd, rename the refind.conf-sample file to refind.conf :
Bless rEFInd
The bless command makes a volume bootable. To bless this installation of rEFInd, enter:
Unmount the rEFInd directory
You can restart your computer now and it will automatically unmount the ESP and run rEFInd after it restarts. If you want to unmount the ESP folder before you restart your computer, enter the following command:
Re-enable System Integrity Protection
If you disabled System Integrity Protection (SIP), you should re-enable it after you’ve finished installing rEFInd. Re-enabling System Integrity Protection is almost identical to disabling it:
- Restart your computer.
- While it’s restarting hold down Command-R (⌘R). This will start your computer in Recovery mode.
- Click on the Utilities menu and select Terminal.
- Enter csrutil enable .
- Restart your computer normally.
That’s it
After restarting, your computer will load the rEFInd boot manager automatically. You will see a screen like the one below. Use the left and right arrows to select an operating system.
Ian Maddaus
Technical Writer
My primary interests are automating, processing, writing, and deploying software documentation.
Источник
rowanphipps / macOS_rEFInd_guide.md
A Guide to Multibooting a Mac
Disclaimer: This has the potential to destroy all the data on your drive. Make sure you have adequate (and verified working) backups before you proceed. You have been warned!
That being said this should leave all of your data untouched.
I have a mid-2012 15” non-Retina Mac book pro with a 1TB hard drive. I decided that I wanted to make my system faster by replacing the hard drive with an ssd and while I was at it I decided I also wanted to have Windows and Ubuntu partitions. Doing it this way meant that I had no data on the SSD while I experimented with partitions and boot managers although everything I did should be possible on a drive with an existing system.
- Multiple OSs installed with the ability to add more
- A nice, manageable boot loader
- Full disk encryption for macOS using filevault
- A Mac running a recent-ish version of macOS
- A linux ISO or install disk (Any should work but I picked Ubuntu Desktop)
- A windows iso or install disk
- An extra flash drive (may not be needed but can be very useful)
- A macOS installer for your chosen version of macOS (can be downloaded from the App Store)
- A second computer (again, may not be needed but also might be essential for troubleshooting)
- A copy of rEFInd
- a wired internet connection (in my experience this was necessary in order to get wifi working on Ubuntu but you mileage may vary)
Part 1: Installing rEFInd
These instructions assume an x86_64 architecture, if you for some reason have something different then you will need to pick a different set of files to copy across.
- Disable System Integrity Protections: this sounds bad but in order to mess with the EFI boot loader you have to do this.
- Boot into recovery mode
- Open terminal
- Run the command: csrutil disable to disable SIP
- Mount the EFI partition.
mkdir /Volumes/ESP
mount -t msdos /dev/disk0s1 /Volumes/ESP - Create a directory called REFIND in the EFI volume at /EFI/REFIND
- Copy the right files.
All paths are from the root of the rEFInd directory that you downloaded and all the files go into the directory you just created.- refind/drivers_x64/
- refind/icons/
- refind/refind_x64.efi
- refind/tools_x64/
- Copy the sample config file to the same place as the other files and rename it to refind.conf
- Bless rEFInd. bless —mount /Volumes/ESP —setBoot —file /Volumes/ESP/EFI/REFIND/refind_x64.efi —shortform
Part 2: Partitioning
Note: For reasons best know to itself, Windows refuses to install on a partition numbered higher than 5 (eg. disk0s5 ). MacOS wil be installed in one of the first partitions since it is already installed and linux doesn’t care where you install it to. Don’t worry about accidentally removing the recovery partition, you can get it back later and removing it my make it easier to get windows to install.
I felt that windows was the most likely to cause problems so I decided to do it first to minimize my losses if it failed and wiped everything.
Boot Camp drivers
In order for windows play nicely with mac hardware you need to install the bootcamp drivers.
- Open Boot Camp Assistant and click continue.
- On the second page select the option to download the latest Windows support software from apple an follow the instructions. This shouldn’t do anything to your hard drive.
- Restart the machine to get to the rEFInd menu
- Insert the Windows install media and press escape to make reFind regenerate its list of boot options.
- Select the Windows installer.
There will probably be two options where one of them is labled legacy. I have always avoided the legacy options and had good experiences so I would recommend picking the other option. - Once inside the installer, select advanced/custom install
- Select the correct partition and reformat it to ntfs.
If it then complains about the partition table just restart the machine and it might work the second time. If not then you could try repartitioning the drive again. - Finish the installation then install the bootcamp drivers once windows has booted
- Fix rEFInd
The Linux installation process is similar to windows but it doesn’t care which partition it is installed into. The exact process will vary between distributions but you will probably want to select the advanced option to make sure it only touches the correct partitions. If there is an option, I would recommend enabling proprietary drivers as this may help make wifi work. After the install is finished you will need to fix rEFInd again.
Part 5: Filevault
Try enabling it normally. (Hey, it might work, who knows!) If it complains about a lack of recovery disk then complete the section on recreating the recovery partition and try again.
Whenever you install a new OS or somtimes when you install updates, one of the operating systems may decide that you EFI boot selection is all broken and that it needs to be fixed. When this happens then when you reboot it will boot straight into that OS and skip rEFInd. Instructions for how to fix this are below and there is a script in the attached file.
- Restart and hold down the option key.
This tells the hardware to skip straight to the mac bootloader, allowing you to bypass your broken EFI settings. - Select your macOS partition to boot from.
- Open terminal
- Mount the ESP volume:
mkdir /Volumes/ESP
mount -t msdos /dev/disk0s1 /Volumes/ESP - Bless the reFind program bless —mount /Volumes/ESP —setBoot —file /Volumes/ESP/EFI/REFIND/refind_x64.efi —shortform
Everything should be fixed now and rEFInd should work as normal
Recreate Recovery Partition
- Download the Recovery Partition tool
This tool is very simple and does exactly what it claims to do. The only downside in my experience is that it gives no indication of progress. - Run it. You may need to provided it with an installer for your current version of macOS.
- Check to see if it worked.
Restart and hold option. If it worked you should see an option to boot into recovery mode.
If you got this far then you should still have a working macOS install and in addition you should now be using rEFInd and have one or more other operating systems installed. At this point adding, removing, or changing which OSs you have should be fairly simple and rEFInd should automatically detect them. From time to time installing updates will break you rEFInd configuration but when that happens just follow the instuctions to fix it and everything should be ok. Unfortunately System Integrity Protections are still disabled but if they are enabled again they will make it impossible to fix rEFInd and may break things.
Источник