Linux
將 Windows 引導記錄添加到 Grub
我試圖讓視窗出現在我的 grub 選項中,以便我可以進入它。下面是我的驅動器。
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 298.1G 0 disk |-sda4 8:4 0 200.8G 0 part -WINDOWS |-sda2 8:2 0 3.7G 0 part [SWAP] FOR ARCH |-sda3 8:3 0 500M 0 part - WINDOWS BACKUP `-sda1 8:1 0 93.1G 0 part -ARCH LINUX
我將資訊添加到 grub 引導文件
$ sudo cat /etc/grub.d/40_custom #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "Windows 10" { set root='(hd0,4)' chainloader +1 }
Arch Linux 和 Arch Linux Advanced 引導仍然是我 grub 中的唯一選項?有人可以幫忙嗎??
根據https://wiki.archlinux.org/index.php/GRUB,您還應該執行類似的
grub-mkconfig -o /boot/grub/grub.cfg
實際從
/etc/grub.d
.