Configuration d'un système UEFI Dual Boot aromatisé avec rEFInd


. - rEFInd Regular.

UEFI. , , . Dual Boot UEFI, - rEFInd. , , . «» , , , . — .

UEFI , . , GRUB / LILO / etc, UEFI. , , , , , , grub2-efi

, , . . .

  1. Windows 10 (8/8.1) /.
  2. Windows 10 .
  3. Linux- EFI () /.
  4. Linux- .
  5. rEFInd.
  6. GRUB rEFInd.


, 4 , .

: Legacy-bios, , , .. , , .. , , .


UEFI ESP-, 100-200 FAT32 ( FAT16), - Boot, Microsoft, Fedora, Ubuntu .. , . , 2 6 .

P.S. CodeRush , FS, :
. UEFI , . ESP , ) FAT ) ESP BootXXXX, .


.efi . debian grubx64.efi, Microsoft – bootmgr.efi.

Linux- ESP- /boot/efi, Debian : /boot/efi/EFI/debian/grubx64.efi

C , ?

, , efibootmgr, , , . , UEFI-. , , . Windows - GRUB Windows Boot Manager , . :
efibootmgr -b < > -< > < >
, efibootmgr -b 0 -B 0.

P.S. CodeRush , efibootmgr , EFI Shell.

GRUB , EFI/< >, , - chroot’ grub-install? .

, , efibootmgr , , UEFI, . ESP- , EFI Shell .

P.S. CodeRush
, UEFI 2.2 (SecureBoot UEFI 2.3.1C).


: efibootmgr NVRAM! UEFI NVRAM , . . UEFI Phoenix SCT ! , , , .

P.S. Secure Boot. UEFI , UEFI. Linux- , , .

.


: , . , , , - . .

Windows


Windows , . ? . , ? .

Linux, Windows , . , cmd.exe . , . FAT32:

diskpart
list disk
select disk < >
clean
create partition primary
select partition 1
active
format fs fat32 quick
assign
exit


ISO- . , UEFI- . Linux , FAT32 .

UEFI.

, : Windows 10 efi, , UEFI. .


Rufus. . Windows-only . Linux- ddresque Windows . , .

: , « » «GPT UEFI», . . ( 8-16 ).

, , UEFI.


UEFI- , «», . , . , , . , , 150 . ( — , ). «». , Windows . «». . EFI-. , 4 , NTFS. , Legacy- , - . Windows- , Linux , . .

, Windows UEFI-, / / . UEFI ( ASUS ASRock) . , , .

Windows , - , .


Linux?


. Windows Rufus. Linux- Rufus , syslinux : ISO DD. «.», , syslinux ISO. Ubuntu ( Server, Mate, GNOME), Fedora, RHEL7, Debian .

Dual Boot


Windows UEFI-. Debian , UEFI-mode. grub-, «- ».

Linux, , . . UEFI- Windows , Dual Boot .

Linux:
/dev/sda2 ( ) — /boot/efi. . , , . ext4 / Btrfs / ReiserFS / XFS / JFS , /. swap ( ) . , EFI/< > GRUB Windows (EFI/microsoft).

. : ESP- . , GRUB. GRUB , .. , , ESP BOOT. Debian .


, rEFInd


. GRUB2 , . BURG, «» GRUB, , . UEFI- — rEFInd. rEFInd , rEFIt, . Mac' Boot Camp, .

, rEFInd . Boot Manager, .efi- , UEFI /boot. , UEFI. Multi-Boot . rEFInd .efi-, UEFI Shell. EFI/refind/refind_x64.efi


, , . . Debian ( , ) , , - . , F2. /boot/refind_linux.conf ( — GUI, — ., , ). EFI/tools .efi-, UEFI Shell memtest86+. rEFInd .








?


Linux . , . .deb- .rpm-.

Slackware Gentoo, , .zip- , , .


EFI-:
cp -r /boot/efi/EFI /boot/EFI.bkp
, :
cd Downloads cd
:
sudo dpkg -i < >.deb sudo dnf install < >.rpm
dpkg , , gdebi (sudo apt-get install gdebi) sudo gdebi < >.deb.

RHEL CentOS, yum dnf.

rEFInd, . , . rEFInd , efibootmgr, rEFInd Boot Manager.

rEFInd , , :
refind-install
rEFInd , :
refind-mkdefault

.

?


, , . . rEFInd .efi- . , rEFInd.

Linux, . grubx64.efi! /boot ( cd , sudo ), su root'.

, , - . LiveCD, , .

— , 6, .

:
cd /boot/efi/EFI && ls
:
BOOT, microsoft, < >, refind tools.
- — .

1 ( , ):
rEFInd (!) GRUB . , Linux. , 4 : Windows, Linux , ( ) Linux. , .efi- EFI/BOOT. . ! , . . ?

GRUB:
sudo apt-get remove grub2 grub2-efi grub grub-efi
:
sudo dnf remove grub2

.

UEFI . work around . BOOT, refind BOOT, refind_x64.efi bootx64.efi. .


2 ( rEFInd, ):
, , . : /boot/efi/EFI/refind/refind.conf
scanfor menuentry, :

# ,
scanfor manual,external,optical
# Linux
menuentry Linux {
loader /EFI/ubuntu/grubx64.efi
icon /EFI/refind/icons/os_linux.png
}
# Windows 10
menuentry "Windows 10" {
loader \EFI\Microsoft\Boot\bootmgr.efi
icon /EFI/refind/icons/os_win.png
}


,



# -
timeout 20
# 300 , ,
#
screensaver 300
# -
resolution 1280 1024
# Linux. Plymouth
#
use_graphics_for linux
scanfor internal,external,optical,netboot,biosexternal
#
include themes/refind-theme-regular/theme.conf


Plymouth .



, .conf- . /boot/efi/EFI/refind/themes. - , mkdir.
themes git clone https://github.com/munlik/refind-theme-regular.git. include themes/refind-theme-regular/theme.conf
. .

, .

. - UEFI. rEFInd , , grub2-efi.

:

, , .

Source: https://habr.com/ru/post/fr394005/


All Articles