Difference between revisions of "UEFI - Install Guide/zh-cn"
Views
Actions
Namespaces
Variants
Tools
(Updating to match new version of source page) |
(Created page with "=== 另一个可选项:通过 GRUB 链式启动(chainloading)===") |
||
Line 3: | Line 3: | ||
= 前言 = | = 前言 = | ||
UEFI 通常是指已经合并的 EFI 标准和 UEFI 标准的统称,但是它不包括旧版本的 EFI v1,也不包括苹果公司(Apple)自己的非标准版本的 EFI。 | |||
UEFI | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 13: | Line 9: | ||
</div> | </div> | ||
本篇指南主要针对于在启用 UEFI、禁用安全启动(Secure boot)、以及使用 GUID 分区表的计算机上安装 Manjaro 的场景。 | |||
对于多系统启动、已经有(或者准备创建)EFI 系统分区的情况,通常需要阅读多系统安装指南。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 25: | Line 17: | ||
</div> | </div> | ||
== 前置步骤(Common) == | |||
= | |||
1、下载您自己偏爱的 Manjaro 版本,比如 XFCE, Gnome, KDE, Budgie, Cinnamon, I3, Sway 或者 Mate。 | |||
2、把下载好的 .iso 文件烧录到 USB 或者 DVD,请移步 [[Special:MyLanguage/Burn_an_ISO_File|烧录 ISO 文件]] 阅读详细刻录指南。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 41: | Line 27: | ||
</div> | </div> | ||
4、启动您刚刚刻录好的 USB 或者 DVD,通过 rEFInd - 主菜单选择您想要安装的 GPU 驱动,开源驱动或者是专有驱动 | |||
* 通过开源驱动启动 - | |||
* | 选择 ''open-source - free'' GPU drivers | ||
* 通过专有驱动启动 - | |||
选择 '''proprietary''' GPU drivers | |||
from Nvidia or ATI | |||
from Nvidia or ATI | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 57: | Line 39: | ||
</div> | </div> | ||
{{BoxSuccess|tip|自 Manjaro 0.8.9 版本开始,图形化安装已经支持 UEFI 安装,所以您也可以尝试图形化安装方式,直接跳过下边的命令行(CLI)安装指南即可。}} | |||
{{BoxSuccess|tip| | |||
直接从 Manjaro 欢迎界面或者桌面选择 '''Install Manjaro''' 选项即可使用图形化安装器。 | |||
对于 ESP(EFI系统分区),它将用于存储 EFI Grub 二进制文件,可以在分区步骤中给一个 512mb 分区,格式化为 fat32,并将其挂在到 ''/boot/efi''。 | |||
如果您是双系统启动的话,也可以使用之前安装的 EFI 分区。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 77: | Line 51: | ||
</div> | </div> | ||
* 5-b、打开终端(terminal)并输入: | |||
* 5- | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 85: | Line 57: | ||
</div> | </div> | ||
* 6、现在我们就打开命令行(CLI)安装了。 | |||
* | |||
* 7、''选择 1.'' 设置日期和时间 - 一个简单的配置 | |||
* | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 97: | Line 65: | ||
</div> | </div> | ||
{{BoxSuccess|tip|如果您已经使用自己喜欢的方式给硬盘分区好了,那这个就可以跳过了。}} | |||
{{BoxSuccess|tip| | |||
* 当您 ''点击 2.'' 磁盘分区,将会出现一个对话框 "是否使用 GUID 分区表 (GPT)", '''选择 Yes'''. | |||
* | * 按自己喜欢的方式的给磁盘进行分区(手动分区方式已经超出本篇指南的范畴,可以移步[[Special:MyLanguage/Cfdisk_Basic_Partitioning_Scenarios|这里]] 获取详情) | ||
* ''最重要的一步:'' 创建一个 50~250MB 的 EFI 分区,我自己的是 100MB (分区代码是: ef00) | |||
==== 设置文件系统和挂载点 ==== | |||
==== | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 254: | Line 211: | ||
</div> | </div> | ||
= 与 Windows 多启动 = | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 373: | Line 328: | ||
</div> | </div> | ||
=== 另一个可选项:通过 GRUB 链式启动(chainloading)=== | |||
Line 398: | Line 351: | ||
</div> | </div> | ||
[https://forum.manjaro.org/t/detecting-efi-files-and-booting-them-from-grub/38083 论坛相关话题] | |||
[https://forum.manjaro.org/t/detecting-efi-files-and-booting-them-from-grub/38083 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Line 434: | Line 385: | ||
</div> | </div> | ||
有任何问题、建议、批评? 请发布到 [https://forum.manjaro.org/ 这里] | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 18:32, 26 April 2023
前言
UEFI 通常是指已经合并的 EFI 标准和 UEFI 标准的统称,但是它不包括旧版本的 EFI v1,也不包括苹果公司(Apple)自己的非标准版本的 EFI。
Target computer
本篇指南主要针对于在启用 UEFI、禁用安全启动(Secure boot)、以及使用 GUID 分区表的计算机上安装 Manjaro 的场景。
对于多系统启动、已经有(或者准备创建)EFI 系统分区的情况,通常需要阅读多系统安装指南。
The steps
前置步骤(Common)
1、下载您自己偏爱的 Manjaro 版本,比如 XFCE, Gnome, KDE, Budgie, Cinnamon, I3, Sway 或者 Mate。
2、把下载好的 .iso 文件烧录到 USB 或者 DVD,请移步 烧录 ISO 文件 阅读详细刻录指南。
- 3. Check your BIOS, UEFI must be ON and Secure boot OFF.
4、启动您刚刚刻录好的 USB 或者 DVD,通过 rEFInd - 主菜单选择您想要安装的 GPU 驱动,开源驱动或者是专有驱动
* 通过开源驱动启动 - 选择 open-source - free GPU drivers
- 通过专有驱动启动 -
选择 proprietary GPU drivers from Nvidia or ATI
Graphical Installer
直接从 Manjaro 欢迎界面或者桌面选择 Install Manjaro 选项即可使用图形化安装器。
对于 ESP(EFI系统分区),它将用于存储 EFI Grub 二进制文件,可以在分区步骤中给一个 512mb 分区,格式化为 fat32,并将其挂在到 /boot/efi。
如果您是双系统启动的话,也可以使用之前安装的 EFI 分区。
CLI installer
- 5-b、打开终端(terminal)并输入:
- 6、现在我们就打开命令行(CLI)安装了。
- 7、选择 1. 设置日期和时间 - 一个简单的配置
Disk preparation
* 当您 点击 2. 磁盘分区,将会出现一个对话框 "是否使用 GUID 分区表 (GPT)", 选择 Yes.
- 按自己喜欢的方式的给磁盘进行分区(手动分区方式已经超出本篇指南的范畴,可以移步这里 获取详情)
- 最重要的一步: 创建一个 50~250MB 的 EFI 分区,我自己的是 100MB (分区代码是: ef00)
设置文件系统和挂载点
- After the partitioning is done, go to 4. Set Filesystem
Mountpoints. * Important Step: Format the EFI Partition you created as VFAT and mount on /boot/efi
Installation
- 9. Choose 3. Install system and wait...
- 10. Now, go to 4. Configure System and configure it the way you like (username, password, mirrorlist, system-name, ...).
- 11. When you are done, go to 5. Install bootloader. Choose EFI_x86_64 > GRUB (2) UEFI x86_64, DON'T select BIOS GRUB.
- 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen.
- 12. If it gives a error in the final stages saying "efivars kernel module was not properly loaded", don't worry, the system will work fine!
- 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes.
- 14. Click 6. Quit
- 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now!
Switching from BIOS to UEFI
1) You need to create an ESP (EFI System Partition).
It is a FAT32 partition which has the .efi files for booting, which you can create using gparted or gdisk. (Size at least 200-300 MiB.) Ensure the flags `boot` and `esp` are set on this partition.
You should also install/check whether following packages are present:
1. efibootmgr
2. dosfstools 3. grub
2) Create the /boot/efi directory
3.) Mount the EFI partition as /boot/efi
sudo mount /dev/sdXY /boot/efi
X = Alphabet of the drive = a,b,c ... Y = Partition number of the EFI partition = 1,2,3,4...
Example - /dev/sda4
4.) Install Grub according to UEFI
5.) Update Grub configuration file.
path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting
See also
与 Windows 多启动
In such cases rEFInd can be used.
There are two ways to install rEFInd:
1.Install rEFInd from its website (detailed) or install using pacman(preferred):
Files will be present in /usr/share/refind .
2.Or using the instructions on the rEFInd website
Instructions
The refind-install command can be used to automatically install rEFInd (the EFI partition may need to be mounted for this to work). See the Arch wiki for more details.
Manual install
Inside the refind folder (/usr/share/refind), copy the files and folders to /boot/efi/EFI/Boot/
.
You need to copy these files to the Boot folder on your EFI partition, and the Boot folder itself will be present inside the EFI folder on the EFI Partition, so take note of it.
You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200MiB-1GiB.
Can mount it as /boot/efi by
X=a,b,c... N=1,2,3... These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier.
Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present:
bootx64.efi
You can rename it as windows.bootx64.efi Then you can rename refind_x64.efi to bootx64.efi
The bootx64.efi files boot by default, hence rEFInd should now boot by default, and detect grubx64.efi(linux-manjaro) and efibootmgfw.efi (windows) automatically.
So it could be like:
/boot/efi/EFI/Manjaro/grubx64.efi
rEFInd would use this file for booting Manjaro.
If you do not have this file or folder, try:
to create /boot/efi/EFI/Manjaro/grubx64.efi
另一个可选项:通过 GRUB 链式启动(chainloading)
An entry can be added to
menuentry 'Windows8 (UEFI)' { insmod ntfs set root=(hd0,gpt4) chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi boot }
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present.
After adding the above entry, running sudo update-grub updates the GRUB configuration file so that an entry named Windows8 (UEFI) is added to the GRUB boot menu.
The chainloading will fail on some hardware (Lenovo Ideapad 110) with the "invalid signature" message - the Refind method will still work.
Extras
Using Rufus on Windows to create installation media
Rufus users can use the following settings:
- Click on the DVD icon and load your .iso
* In the menu left of the DVD icon, select DD Image * Device: "choose your USB" (Attention: choose correctly, the device selected here will be formatted!!!) * Partition scheme: GPT partition scheme for UEFI computer * File system: FAT32 * Cluster size: "Don't modify" * Volume label: "Don't modify" * Click Start, and you are done (takes 2~5 min to complete).
Feedback
有任何问题、建议、批评? 请发布到 这里
External Links
Youtube video: https://www.youtube.com/watch?v=36tDZIXn3-k