Linux 启动页面添加Windows选项

  1. 挂载windows
mkdir -p /mnt/windows
mount /dev/sda1 /mnt/window
  1. 全局扫描引导
grub-mkconfig -o /boot/grub/grub.cfg
  • 如果成功,会输出类似于以下的信息
    Generating grub configuration file ...
    Found theme: /usr/share/grub/themes/manjaro/theme.txt
    Found linux image: /boot/vmlinuz-5.15-x86_64
    Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
    Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
    Warning: os-prober will be executed to detect other bootable partitions.
    Its output will be used to detect bootable binaries on them and create new boot entries.
    Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for UEFI Firmware Settings ...
    Found memtest86+ image: /boot/memtest86+/memtest.bin
    /usr/bin/grub-probe: warning: unknown device type nvme0n1.
    done
    
posted @ 2022-05-09 13:39  随风丶oc  阅读(345)  评论(0编辑  收藏  举报