X-Git-Url: https://code.delx.au/refind/blobdiff_plain/8d045bfe7efba49abd4c46054b4d53bafe58d3c6..a0a4ba44f4dc01c86499c0fc80730940b53f75c6:/docs/refind/installing.html diff --git a/docs/refind/installing.html b/docs/refind/installing.html index 7be19bd..3da2d2b 100644 --- a/docs/refind/installing.html +++ b/docs/refind/installing.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com

Originally written: 3/14/2012; last Web page update: -5/6/2012, referencing rEFInd 0.3.3

+10/6/2012, referencing rEFInd 0.4.6

I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!

@@ -92,7 +92,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com

-

Once you've uncompressed a rEFInd binary zip file, you must install it to your computer's ESP (or conceivably to some other location). The details of how you to this depend on your OS and your computer (UEFI-based PC vs. Macintosh). The upcoming sections provide details. For Linux and Mac OS X, you can use the installation script, install.sh, which provides easy one-command installation on most systems. Occasionally this script will fail, though, so I also provide explicit instructions for Linux and Mac OS X. Installation under Windows also must be done manually. In some cases, you'll have to deviate from the default naming conventions, as described in a section on this topic. If you're upgrading rEFInd, see the section on upgrading. Finally, I describe how to install some additional components you might find useful.

+

Once you've uncompressed a rEFInd binary zip file, you must install it to your computer's ESP (or conceivably to some other location). The details of how you do this depend on your OS and your computer (UEFI-based PC vs. Macintosh). The upcoming sections provide details. For Linux and Mac OS X, you can use the installation script, install.sh, which provides easy one-command installation on most systems. Occasionally this script will fail, though, so I also provide explicit instructions for Linux and Mac OS X. Installation under Windows also must be done manually. In some cases, you'll have to deviate from the default naming conventions, as described in a section on this topic. If you're upgrading rEFInd, see the section on upgrading. Finally, I describe how to install some additional components you might find useful. Note that this page describes installing the main rEFInd program; if you want to use the EFI filesystem drivers included with rEFInd, you should consult the page on using drivers with rEFInd.

Installing rEFInd Using install.sh under Linux or Mac OS X

@@ -135,6 +135,11 @@ WARNING: If you have an Advanced Format disk, *DO NOT* attempt to check the bless status with 'bless --info', since this is known to cause disk corruption on some systems!! +NOTE: If you want to boot an OS via BIOS emulation (such as Windows or some +Linux installations), you *MUST* edit the ///EFI/refind/refind.conf +file's 'scanfor' line to include the 'hdbios' option, and perhaps +'biosexternal' and 'cd', as well. + Installation has completed successfully. @@ -169,11 +174,30 @@ Installation has completed successfully. href="https://sourceforge.net/p/refind/discussion/general/thread/5c7d0195/">this forum thread
for a discussion of the topic. +
  • If you're replacing rEFIt with rEFInd on a Mac, there's a chance that + install.sh will warn you about the presence of a file called + /Library/StartupItems/rEFItBlesser and ask if you want to + delete the file. This file is designed to keep rEFIt set as the boot + manager by automatically re-blessing it if the default boot manager + changes. This is obviously undesirable if you install rEFInd as your + primary boot manager, so it's generally best to remove this file. If + you prefer to keep your options open, you can answer N when install.sh asks if you want to + delete rEFItBlesser, and instead manually copy it elsewhere. If you + subsequently decide to go back to using rEFIt as your primary boot + manager, you can restore rEFItBlesser to its place.
  • +
  • If you're using OS X and an Advanced Format disk, heed the warning that install.sh displays and do not use bless --info to check your installation status; this combination has been reported to cause disk corruption on some Macs!
  • +
  • If you intend to boot BIOS-based OSes, such as most Windows + installations and some Linux installations, you must edit the + refind.conf file, as noted near the end of the installation + script's output. (Note that rEFInd can only boot such OSes on Macs at + the moment.)
  • +

    In any event, you should peruse the script's output to ensure that everything looks OK. install.sh displays error messages when it encounters errors, such as if the ESP is mounted read-only or if you run out of disk space. You may need to correct such problems manually and re-run the script. In some cases you may need to fall back on manual installation, which gives you better control over details such as which partition to use for installation.

    @@ -198,12 +222,14 @@ Filesystem 1K-blocks Used Available Use% Mounted on
      -
    1. Type cp -r refind /boot/efi/EFI/ from the refind-version directory in which the refind directory exists. This copies all the files that rEFInd needs to work.
    2. +
    3. Type cp -r refind /boot/efi/EFI/ from the refind-version directory in which the refind directory exists. This copies all the files that rEFInd needs to work. Note that this includes all of rEFInd's drivers.
    4. Type cd /boot/efi/EFI/refind to change into rEFInd's new directory on the ESP.
    5. Type rm refind_ia32.efi to remove the IA32 binary if you're using an x86-64 (64-bit) system; or type rm refind_x64.efi to remove the x86-64 binary if you're using an x86 (32-bit) system. You can optionally rename the binary you keep as refind.efi, but this isn't required. (Note that you must keep the version that's the correct bit width for your EFI; if you've installed a 32-bit Linux on a 64-bit PC with a 64-bit EFI, you'd keep refind_x64.efi.
    6. +
    7. Optionally, type rm -r drivers_ia32 to remove the x86 drivers from an x86-64 system, or rm -r drivers_x64 to remove the x86-64 drivers from a 32-bit x86 system. You may also want to remove some or all of the drivers for the architecture you are using; if you don't need them, they'll slow down the start process. See the page on drivers for more on this topic.
    8. +
    9. Rename the configuration file by typing mv refind.conf-sample refind.conf. Consult the Editing the rEFInd Configuration File page for information on how to adjust your options.
    10. @@ -268,6 +294,15 @@ $ ioreg -l -p IODeviceTree | grep firmware-abi 64-bit EFI or sudo rm /efi/refind/refind_x64.efi on a Mac with a 32-bit EFI. +
    11. Optionally, remove the drivers directory for the architecture you're + not using—/efi/refind/drivers_ia32 or + /efi/refind/drivers_x64, as appropriate. You may also want to + remove some or all of the drivers for the architecture you are using; + if you don't need them, they'll slow down the start process. See the page on drivers for more on this topic. Note + that Apple's firmware includes its own HFS+ driver, so the HFS+ driver + provided with rEFInd is useless on Macs.
    12. +
    13. If this is your first installation, type sudo mv /efi/refind/refind.conf-sample /efi/refind/refind.conf (adjusting the path as necessary) to rename the sample configuration @@ -322,6 +357,8 @@ $ ioreg -l -p IODeviceTree | grep firmware-abi
    14. Type del refind_ia32.efi to delete the unused 32-bit version of rEFInd. (Windows only supports EFI boots on 64-bit EFI implementations and in 64-bit versions of Windows.)
    15. +
    16. Optionally type rd /s drivers_ia32 to delete the drivers_ia32 directory and its contents. You may also want to selectively delete some of the drivers in the drivers_x64 directory, depending on your needs. Unnecessary drivers may slow the rEFInd start process. See the page on drivers for more on this topic.
    17. +
    18. Type rename refind.conf-sample refind.conf to rename rEFInd's configuration file.
    19. Type bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi to set rEFInd as the default EFI boot program. Note that {bootmgr} is entered as such; that's not a notation for a variable.
    20. @@ -408,11 +445,15 @@ $ ioreg -l -p IODeviceTree | grep firmware-abi