如何用systemd-boot引导加上window11?或者用clover引导来引导win11和arch?
离线
i think you don't install the systemd-boot
i used it
Becaus i installed the Blissos
then it broken my PC
so please install the grub2 (only my thinking)
离线
Hello
I think i find the anwser(cpu 64bits)
first use pacman to install the package "edk2-shell"
and copy the shellx64.efi
command "sudo pacman -S edk2-shell && cp /usr/share/edk2-shell/x64/Shell.efi /boot/shellx64.efi"
then reboot computer and select UEFI Shell
run "map" command
you can see the fs alias
third reboot to your ArchLinux
cd /boot
Create a UEFI Shell script "windows.nsh"
if you fs alias is"HD0b"
you write "HD0b:EFI\Microsoft\Boot\Bootmgfw.efi" to "windows.nsh"
go to /boot/loader/entries/
create "windows.conf"
write "title Windows
efi /shellx64.efi
options -nointerrupt -noconsolein -noconsoleout windows.nsh" to "windows.conf"
but if you update your kernel
the /boot/loader/entries/ will be reset!
so do it.
you can mkdir ~/systemd-windows_boot-backup
cd /etc/systemd/system
create "update-windows-boot.service"
write "[Unit]
Description=Update Windows boot entry
[Service]
ExecStart=/usr/bin/update-windows-entry.sh"
cd /usr/bin
create "update-windows-entry.sh"
write "#!/bin/bash
cp ~/systemd-windwos_boot-backup/conf/windows.nsh /boot/
cp ~/systemd-windows_boot-backup/windows.conf /boot/loader/entries/ "
then chmod 777 update-windows-entry.sh
go to /etc/pacman.d/hooks
create "update-windows-entry.hooks"
write " [Trigger]
Operation = Upgrade
Type = Package
Target = linux-cachyos
Target = linux-cachyos-lts
Target = linux-lts
Target = linux
[Action]
Description = Updating Windows boot entry...
When = PostTransaction
Exec = /usr/bin/systemctl start update-windows-boot.service"
all is OK
离线
如何用systemd-boot引导加上window11?或者用clover引导来引导win11和arch?
虽然但是,为啥不用grub
[mbm@ArchLinux:~]$ sudo rm -rf /*
离线
i think i have some wrong
it is " Create an UEFI Shell script "
who can translator it?
离线
将windows的efi分区挂载到/mnt,并将Microsoftk拷贝到/boot/EFI目录下,然后重启
sudo cp -ax /mnt/EFI/Microsoft/ /boot/EFI/
会自动增加一个windows的启动选项.
离线
将windows的efi分区挂载到/mnt,并将Microsoftk拷贝到/boot/EFI目录下,然后重启
sudo cp -ax /mnt/EFI/Microsoft/ /boot/EFI/
会自动增加一个windows的启动选项.
这个取决于主板,标准没有这种自动发现。
离线