How to boot Windows UEFI from Debian legacy Grub with two SSD drives?
3
votes
0
answers
148
views
I am using Debian 12, and I am trying to add a new line in the grub menu. This PC has two SSD drives, the first one has Windows 10 and the second one has Debian 12. **How can I boot Windows from the Debian Grub?** The output of
lsblk -f
is:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sdb
├─sda1 ext4 1.0 fec4ac01-0518-472e-a773-398e89e38283 378.9G 14% /
├─sda2
└─sda5 swap 1 1bb8cacf-1774-44b8-9ae7-f939de2cf231 [SWAP]
nvme0n1
├─nvme0n1p1 vfat FAT32 4643-C150
├─nvme0n1p2
├─nvme0n1p3 ntfs 18964D7F964D5DFE
└─nvme0n1p4 ntfs 3480ABF880ABBF2C
And the output of sudo blkid /dev/nvme0n1p3
is:
BLOCK_SIZE="512" UUID="18964D7F964D5DFE" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="548d364e-48f1-499a-8eb3-75e127585773"
After that I updated the grub:
sudo update-grub
The file in /etc/grub.d/40_custom
is:
#!/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"{
search --fs-uuid --no-floppy --set=root 18964D7F964D5DFE
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
But after the reboot, the grub entry appers but there is a message that says that there is not any system...
Any ideas to solve this?
Thanks in advance!
Asked by mabvmex
(71 rep)
Feb 18, 2024, 01:10 AM
Last activity: Feb 18, 2024, 01:17 PM
Last activity: Feb 18, 2024, 01:17 PM