Manjaro Difference between revisions of "UEFI - Install Guide/fa"

Difference between revisions of "UEFI - Install Guide/fa"

From Manjaro
(Created page with "*پس از انجام پارتیشن بندی، به Set Filesystem Mountpoints بروید. * مرحله مهم: پارتیشن ئی‌اِف‌آی را که ایجاد کر...")
(Updating to match new version of source page)
Tags: Mobile web edit Mobile edit
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
== مشترک ==
== مشترک ==


<div class="mw-translate-fuzzy">
* ۱. نگارش مانجاروی مورد علاقه‌تان (ایکس‌اِف‌سی‌ئی، گنوم، کِی‌دی‌ئی و ...) را از [https://manjaro.org/download/ اینجا] بارگیری کنید و توجه کنید که حتما باید ۶۴-بیت باشد.
* ۱. نگارش مانجاروی مورد علاقه‌تان (ایکس‌اِف‌سی‌ئی، گنوم، کِی‌دی‌ئی و ...) را از [https://manjaro.org/download/ اینجا] بارگیری کنید و توجه کنید که حتما باید ۶۴-بیت باشد.
</div>


*۲. پرونده ایزو را روی DVD بسوزانید یا روی USB بنویسید. برای جزئیات بیشتر به [[Special:MyLanguage/Burn_an_ISO_File|Burn an ISO File]] مراجعه کنید.
*۲. پرونده ایزو را روی DVD بسوزانید یا روی USB بنویسید. برای جزئیات بیشتر به [[Special:MyLanguage/Burn_an_ISO_File|Burn an ISO File]] مراجعه کنید.
Line 63: Line 65:
* مرحله مهم: پارتیشن ئی‌اِف‌آی را که ایجاد کرده اید به صورت VFAT فرمت کرده و در boot/efi/ سوار کنید.
* مرحله مهم: پارتیشن ئی‌اِف‌آی را که ایجاد کرده اید به صورت VFAT فرمت کرده و در boot/efi/ سوار کنید.


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|note|If you are re-using your EFI partition (that was created by Windows previously (or any other OS), then there is no need to format. Formatting will wipe the previous bootloader. Only mounting the EFI partition as '''/boot/efi''' is required in that case.}}
{{BoxInfo|note|If you are re-using your EFI partition (that was created by Windows previously (or any other OS), then there is no need to format. Formatting will wipe the previous bootloader. Only mounting the EFI partition as '''/boot/efi''' is required in that case.}}
</div>


==== نصب ====
==== نصب ====


<div lang="en" dir="ltr" class="mw-content-ltr">
* 9. ''Choose 3.'' Install system and wait...
* 9. ''Choose 3.'' Install system and wait...
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 10. Now, go to ''4. Configure System'' and configure it the way you like (username, password, mirrorlist, system-name, ...).
* 10. Now, go to ''4. Configure System'' and configure it the way you like (username, password, mirrorlist, system-name, ...).
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 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. When you are done, go to ''5. Install bootloader.'' Choose EFI_x86_64 > GRUB (2) UEFI x86_64,  ''DON'T select BIOS GRUB.''
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen.
* 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen.
{{BoxInfo|note|Formatting not required if reusing previous EFI partition.}}
{{BoxInfo|note|Formatting not required if reusing previous EFI partition.}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 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!
* 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!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes.
* 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 14. ''Click 6.'' Quit
* 14. ''Click 6.'' Quit
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now!
* 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
= Switching from BIOS to UEFI =
= Switching from BIOS to UEFI =
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
1) You need to create an ''ESP (EFI System Partition)''.
1) You need to create an ''ESP (EFI System Partition)''.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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.
</div>


You should also install/check whether following packages are present-
<div lang="en" dir="ltr" class="mw-content-ltr">
You should also install/check whether following packages are present:
</div>


  1. efibootmgr
  <div lang="en" dir="ltr" class="mw-content-ltr">
1. efibootmgr
  2. dosfstools
  2. dosfstools
  3. grub
  3. grub
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
[[Special:MyLanguage/Pacman_Overview|(How to install packages)]]
[[Special:MyLanguage/Pacman_Overview|(How to install packages)]]
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
2) Create the ''/boot/efi'' directory
2) Create the ''/boot/efi'' directory
{{UserCmd|command=sudo mkdir /boot/efi}}
{{UserCmd|command=sudo mkdir /boot/efi}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
3.) Mount the EFI partition as ''/boot/efi''
3.) Mount the EFI partition as ''/boot/efi''
  sudo mount /dev/sdXY /boot/efi
  sudo mount /dev/sdXY /boot/efi
X = Alphabet of the drive = a,b,c ...
X = Alphabet of the drive = a,b,c ...
Y = Partition number of the EFI partition = 1,2,3,4...
Y = Partition number of the EFI partition = 1,2,3,4...
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Example - ''/dev/sda4''
Example - ''/dev/sda4''
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
4.) Install Grub according to UEFI
4.) Install Grub according to UEFI
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck}}
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
5.) Update Grub configuration file.
5.) Update Grub configuration file.
{{UserCmd|command=sudo update-grub}}
{{UserCmd|command=sudo update-grub}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|note|If you get an error like:}}
{{BoxInfo|note|If you get an error like:}}
  path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting
  path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Then you will need to [https://wiki.archlinux.org/index.php/Change_Root chroot] as described [[Special:MyLanguage/Restore_the_GRUB_Bootloader#Identify_and_Prepare_the_Installed_Partition.28s.29|here]], and then perform Step 5 again.
Then you will need to [https://wiki.archlinux.org/index.php/Change_Root chroot] as described [[Special:MyLanguage/Restore_the_GRUB_Bootloader#Identify_and_Prepare_the_Installed_Partition.28s.29|here]], and then perform Step 5 again.
</div>


{{BoxInfo|نکته|اگر با خطای زیر مواجه شدید:
{{BoxInfo|نکته|اگر با خطای زیر مواجه شدید:
Line 126: Line 172:
  متغیرهای ئی‌اِف‌آی (EFI) در این سامانه پشتیبانی نمی‌شوند.
  متغیرهای ئی‌اِف‌آی (EFI) در این سامانه پشتیبانی نمی‌شوند.


<div lang="en" dir="ltr" class="mw-content-ltr">
then you could load the '''efivarfs''' module :
then you could load the '''efivarfs''' module :
{{UserCmd|command=sudo modprobe efivarfs}}
{{UserCmd|command=sudo modprobe efivarfs}}
}}
}}
</div>


'''جستارهای وابسته'''
'''جستارهای وابسته'''
Line 134: Line 182:
[[Special:MyLanguage/Restore the GRUB Bootloader|بارکنندهٔ راه‌انداز گراب را بازگردانید]]
[[Special:MyLanguage/Restore the GRUB Bootloader|بارکنندهٔ راه‌انداز گراب را بازگردانید]]


<div lang="en" dir="ltr" class="mw-content-ltr">
[https://forum.manjaro.org/t/using-livecd-v17-0-1-as-grub-to-boot-os-with-broken-bootloader/24916 Related Forum topic]
[https://forum.manjaro.org/t/using-livecd-v17-0-1-as-grub-to-boot-os-with-broken-bootloader/24916 Related Forum topic]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
= Dual booting with Windows =
= Dual booting with Windows =
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxSuccess|tip|Some manufactures EFI implementations cause GRUB not to be showed in the Boot Menu, or even if its there it can't be made default.}}
{{BoxSuccess|tip|Some manufactures EFI implementations cause GRUB not to be showed in the Boot Menu, or even if its there it can't be made default.}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
'''In such cases ''[http://www.rodsbooks.com/refind/index.html rEFInd]''''' can be used.
'''In such cases ''[http://www.rodsbooks.com/refind/index.html rEFInd]''''' can be used.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:Refind.png]]
[[File:Refind.png]]
</div>




There are two ways to install rEFInd-
<div lang="en" dir="ltr" class="mw-content-ltr">
There are two ways to install rEFInd:
</div>


1.Install rEFInd from its [https://www.rodsbooks.com/refind/installing.html website] (detailed) or '''install using pacman'''''(preferred)''-
<div lang="en" dir="ltr" class="mw-content-ltr">
1.Install rEFInd from its [https://www.rodsbooks.com/refind/installing.html website] (detailed) or '''install using pacman'''''(preferred)'':
{{UserCmd|command=sudo pacman -S refind}}
{{UserCmd|command=sudo pacman -S refind}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Files will be present in  /usr/share/refind .
Files will be present in  /usr/share/refind .
</div>


2.Or using the instructions on the rEFInd website: [http://www.rodsbooks.com/refind/installing.html]
<div lang="en" dir="ltr" class="mw-content-ltr">
2.Or using the instructions on the [http://www.rodsbooks.com/refind/installing.html rEFInd website]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== Instructions ==
== Instructions ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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 [https://wiki.archlinux.org/index.php/REFInd#Installation Arch wiki] for more details.
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 [https://wiki.archlinux.org/index.php/REFInd#Installation Arch wiki] for more details.
</div>


=== نصب دستی ===
=== نصب دستی ===


Inside the refind folder ('''/usr/share/refind'''), copy the files and folders to-
<div lang="en" dir="ltr" class="mw-content-ltr">
 
Inside the refind folder ('''/usr/share/refind'''), copy the files and folders to {{ic|/boot/efi/EFI/Boot/}}.
/boot/efi/EFI/Boot/
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|note|My ESP (EFI System Partition) is mounted at '''/boot/efi'''.}}
{{BoxInfo|note|My ESP (EFI System Partition) is mounted at '''/boot/efi'''.}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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 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.
</div>


You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200mb-1gb.
<div lang="en" dir="ltr" class="mw-content-ltr">
You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200MiB-1GiB.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Can mount it as /boot/efi by
Can mount it as /boot/efi by
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=sudo mount /dev/sdXN /boot/efi}}
{{UserCmd|command=sudo mount /dev/sdXN /boot/efi}}
X=a,b,c...
X=a,b,c...
N=1,2,3...
N=1,2,3...
These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier.
These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier.
</div>


Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present-
<div lang="en" dir="ltr" class="mw-content-ltr">
Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present:
  bootx64.efi
  bootx64.efi
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
You can '''''rename''''' it as  ''windows.bootx64.efi''
You can '''''rename''''' it as  ''windows.bootx64.efi''
Then you can rename ''refind_x64.efi'' to ''bootx64.efi''
Then you can rename ''refind_x64.efi'' to ''bootx64.efi''
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|note|A folder Manjaro (name could be some other also) containing the file ''grubx64.efi'' should also be present in '''/boot/efi/EFI/''' folder, which should contain the ''grubx64.efi'' file which will be used by rEFInd to boot Grub.}}
{{BoxInfo|note|A folder Manjaro (name could be some other also) containing the file ''grubx64.efi'' should also be present in '''/boot/efi/EFI/''' folder, which should contain the ''grubx64.efi'' file which will be used by rEFInd to boot Grub.}}
</div>


So it could be like-
<div lang="en" dir="ltr" class="mw-content-ltr">
So it could be like:
  /boot/efi/EFI/Manjaro/grubx64.efi
  /boot/efi/EFI/Manjaro/grubx64.efi
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
rEFInd would use this file for booting Manjaro.
rEFInd would use this file for booting Manjaro.
</div>


If you do not have this file or folder, try-
<div lang="en" dir="ltr" class="mw-content-ltr">
If you do not have this file or folder, try:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck}}
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
to create '''/boot/efi/EFI/Manjaro/grubx64.efi'''
to create '''/boot/efi/EFI/Manjaro/grubx64.efi'''
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
See also- [http://www.rodsbooks.com/refind/installing.html#naming http://www.rodsbooks.com/refind/installing.html#naming]
See also- [http://www.rodsbooks.com/refind/installing.html#naming http://www.rodsbooks.com/refind/installing.html#naming]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
=== An alternative: chainloading via GRUB ===
=== An alternative: chainloading via GRUB ===
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
An entry can be added to
An entry can be added to
{{File|file=/etc/grub.d/40_custom|
{{File|file=/etc/grub.d/40_custom|
Line 219: Line 322:
}}
}}
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present.
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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.
</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">
The chainloading will fail on some hardware (Lenovo Ideapad 110) with the "invalid signature" message - the Refind method will still work.
The chainloading will fail on some hardware (Lenovo Ideapad 110) with the "invalid signature" message - the Refind method will still work.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
= Extras =
= Extras =
</div>


== استفاده از روفوس (Rufus) در ویندوز برای ایجاد رسانهٔ نصب ==
== استفاده از روفوس (Rufus) در ویندوز برای ایجاد رسانهٔ نصب ==

Latest revision as of 11:21, 16 January 2023

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎français • ‎русский • ‎فارسی • ‎中文(中国大陆)‎

مقدمه

یوئی‌اِف‌آی نام مورد توافق برای استانداردهای ئی‌اِف‌آی (EFI) و یوئی‌اِف‌آی (UEFI) است که ادغام شدند. یو‌ئی‌اِف‌آی شامل ئی‌اِف‌آی نسخه یکِ قدیمی یا نسخه غیر استاندارد ئی‌اِف‌آی شرکت اپل نیست.

رایانهٔ هدف

هدف راهنمای زیر نصب مانجارو بر روی دستگاهی با یو‌ئی‌اِف‌آی فعال، راه‌اندازی امن غیرفعال، و استفاده از دیسک(های) با جدول افراز (پارتیشن) GPT است.

برای راه‌اندازی چندگانه، پارتیشن سیستم ئی‌اِف‌آی یا همان ESP که از قبل وجود دارد (یا ایجاد خواهد شد)، معمولاً می‌تواند بین چندین نصب لینوکس به اشتراک گذاشته شود.

گام‌ها

مشترک

  • ۱. نگارش مانجاروی مورد علاقه‌تان (ایکس‌اِف‌سی‌ئی، گنوم، کِی‌دی‌ئی و ...) را از اینجا بارگیری کنید و توجه کنید که حتما باید ۶۴-بیت باشد.
  • ۲. پرونده ایزو را روی DVD بسوزانید یا روی USB بنویسید. برای جزئیات بیشتر به Burn an ISO File مراجعه کنید.
  • ۳. بایوس خود را بررسی کنید؛ یوئی‌اِف‌آی باید روشن و راه‌اندازی امن (Secure boot) باید خاموش باشد.
  • ۴. از روی USB یا DVD سامانه خود راه‌اندازی کنید و از rEFInd - منوی اصلی استفاده کنید تا انتخاب کنید کدام درایور GPU را می‌خواهید نصب کنید، منبع باز یا اختصاصی:
دو گزینه دارید :
default : برای راه‌اندازی با درایور های آزاد باید این گزینه را انتخاب کنید.
nonfree : برای راه‌اندازی با درایور های اختصاصیِ پردازنده های AMD، ATI و Nvidia این گزینه را انتخاب کنید.

نصب‌کنندهٔ گرافیکی

نکته
مانجارو از نسخه 0.8.9، پشتیبانی از یو‌ئی‌اِف‌آی را در نصب‌کننده گرافیکی گنجانده است، بنابراین می‌توانید به سادگی نصب‌کننده گرافیکی را امتحان کنید و از دستورالعمل‌های ارائه‌شده در زیر برای نصب‌کننده خط‌فرمانی صرفنظر کنید.

برای استفاده از نصب‌کننده گرافیکی گزینه Install Manjaro را از صفحه خوش آمدگویی مانجارو یا از میزکار انتخاب کنید.

برای ESP (پارتیشن سیستم ئی‌اِف‌آی) که پرونده‌های دودوییِ گراب را ذخیره می کند، می توان یک پارتیشن ۵۱۲ مگابایتی از نوع fat32 در مرحله پارتیشن بندی ایجاد کرد و آن را روی boot/efi/ سوار کرد.

اگر بوت دوگانه دارید، می توان از یک پارتیشن ئی‌اِف‌آی که نصب قبلی ساخته شده نیز استفاده کرد

نصب‌کنندهٔ خط فرمانی

  • ۵. پایانه (ترمینال) را باز کنید و بنویسید:
user $ sudo setup COPY TO CLIPBOARD


  • ۶. اکنون، ما در نصب‌کننده خط فرمانی هستیم.
  • ۷. تاریخ و زمان را تنظیم کنید - یک پیکربندی بصری آسان.

آماده‌سازی دیسک

نکته
اگر دیسک‌تان از قبل آن‌گونه که می‌خواهید اِفرازش(پارتیشن‌بندی) شده است، می‌توانید از این گام بگذرید.
* وقتی روی پارتیشن بندی هارد درایوها کلیک می کنید، یک دیالوگ دریافت می کنید که می گوید آیا می خواهید از جدول افراز GUID (GPT) استفاده کنید، بله را انتخاب کنید.
  • دیسک(های) خود را همانطور که می خواهید پارتیشن بندی کنید (دستورالعمل های مربوط به پارتیشن بندی دستی فراتر از محدوده این راهنما است، برخی جزئیات در اینجا موجود است).
  • مرحله مهم: یک پارتیشن ئی‌اِف‌آی ۵۰ تا ۲۵۰ مگابایتی ایجاد کنید، پارتیشن من ۱۰۰ مگابایت است (کد: ef00)

تنظیم نقاط سوار شدن فایل سیستم

*پس از انجام پارتیشن بندی، به Set Filesystem Mountpoints بروید.
  • مرحله مهم: پارتیشن ئی‌اِف‌آی را که ایجاد کرده اید به صورت VFAT فرمت کرده و در boot/efi/ سوار کنید.
note
If you are re-using your EFI partition (that was created by Windows previously (or any other OS), then there is no need to format. Formatting will wipe the previous bootloader. Only mounting the EFI partition as /boot/efi is required in that case.

نصب

  • 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.
note
Formatting not required if reusing previous EFI partition.
  • 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

user $ sudo mkdir /boot/efi COPY TO CLIPBOARD


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

user $ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck COPY TO CLIPBOARD

5.) Update Grub configuration file.

user $ sudo update-grub COPY TO CLIPBOARD

note
If you get an error like:
path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting

Then you will need to chroot as described here, and then perform Step 5 again.


نکته
{{{2}}}

جستارهای وابسته

بارکنندهٔ راه‌انداز گراب را بازگردانید

Dual booting with Windows

tip
Some manufactures EFI implementations cause GRUB not to be showed in the Boot Menu, or even if its there it can't be made default.


In such cases rEFInd can be used.


Refind.png


There are two ways to install rEFInd:

1.Install rEFInd from its website (detailed) or install using pacman(preferred):

user $ sudo pacman -S refind COPY TO CLIPBOARD

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.

نصب دستی

Inside the refind folder (/usr/share/refind), copy the files and folders to /boot/efi/EFI/Boot/.

note
My ESP (EFI System Partition) is mounted at /boot/efi.

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

user $ sudo mount /dev/sdXN /boot/efi COPY TO CLIPBOARD

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.

note
A folder Manjaro (name could be some other also) containing the file grubx64.efi should also be present in /boot/efi/EFI/ folder, which should contain the grubx64.efi file which will be used by rEFInd to boot Grub.

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:

user $ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck COPY TO CLIPBOARD

to create /boot/efi/EFI/Manjaro/grubx64.efi


An alternative: chainloading via GRUB


An entry can be added to

/etc/grub.d/40_custom
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

استفاده از روفوس (Rufus) در ویندوز برای ایجاد رسانهٔ نصب

کاربران روفوس می‌توانند از این تنظیمات استفاده کنند:

* بر روی نقشک دی‌وی‌دی کلیک کرده و .iso خود را بار کنید
* در فهرست سمت چپ نقشک دی‌وی‌دی، تصویر DD را انتخاب کنید
* افزاره: «یو‌اِس‌بی خود را انتخاب کنید» (اخطار: درست انتخاب کنید، افزاره انتخاب شده قالب‌بندی(فُرمت) خواهد شد!!!)
* طرح افراز(پارتیشن): طرح افراز جی‌پی‌تی برای رایانه‌های یو‌ئی‌اِف‌آی
* File system: FAT32
* Cluster size: "Don't modify"
* Volume label: "Don't modify"
* روی شروع کلیک کنید و کار تمام است (۲~۵ دقیقه تا کامل شود).

بازخورد

سوال، انتقاد، پشنهاد؟ لطفا اینجا بفرستید.

پیوند به بیرون

ویدیوی یوتیوب: https://www.youtube.com/watch?v=36tDZIXn3-k

Cookies help us deliver our services. By using our services, you agree to our use of cookies.