You are not logged in.
Pages: 1
I searched the forum and found nothing that could help me. So I'm here
installed packages: grub, efibootmgr, os-prober, ntfs-3g
I can't boot my Windows through grub. I currently use 2 hds:
Linux = /dev/nvme0n1
Windows = /dev/sdd1
However, when I start Windows through grub, the following message appears:
error: no such device: Be48-708C.
error: disc 'hd3,gpt1' not found.
Press any button to continue...
It is an error-free translation, as Arch Linux is in my locale, and showed the message in Portuguese
This is my grub.cfg entry for Windows :
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sdd1)' --class windows --class os $menuentry_id_option 'osprober-efi-BE48-708C' {
insmod part_gpt
insmod fat
set root='hd3,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt1 --hint-efi=hd3,gpt1 --hint-baremetal=ahci3,gpt1 BE48-708C
else
search --no-floppy --fs-uuid --set=root BE48-708C
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
This is the command I use to generate grub:
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Installing for the x86_64-efi platform.
Installation completed. No errors reported.
# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
done
These are the commands in the os-prober package:
# grub-probe --target=hints_string /mnt/EFI/Microsoft/Boot/bootmgfw.efi
--hint-bios=hd3,gpt1 --hint-efi=hd3,gpt1 --hint-baremetal=ahci3,gpt1
# grub-probe --target=fs_uuid /mnt/EFI/Microsoft/Boot/bootmgfw.efi
BE48-708C
Disks in the system:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 219M 1 loop /var/lib/snapd/snap/gnome-3-34-1804/66
loop1 7:1 0 99,1M 1 loop /var/lib/snapd/snap/core/10958
loop2 7:2 0 64,8M 1 loop /var/lib/snapd/snap/gtk-common-themes/1514
loop3 7:3 0 51M 1 loop /var/lib/snapd/snap/snap-store/518
loop4 7:4 0 199,4M 1 loop /var/lib/snapd/snap/code/62
loop5 7:5 0 199,4M 1 loop /var/lib/snapd/snap/code/61
loop6 7:6 0 55,4M 1 loop /var/lib/snapd/snap/core18/1997
loop7 7:7 0 32,3M 1 loop /var/lib/snapd/snap/snapd/11588
sda 8:0 0 1,8T 0 disk
├─sda1 8:1 0 16M 0 part
└─sda2 8:2 0 1,8T 0 part
sdb 8:16 0 232,9G 0 disk
└─sdb1 8:17 0 232,9G 0 part
sdc 8:32 0 465,8G 0 disk
├─sdc1 8:33 0 1M 0 part
├─sdc2 8:34 0 127M 0 part
└─sdc3 8:35 0 465,6G 0 part
sdd 8:48 0 111,8G 0 disk
├─sdd1 8:49 0 100M 0 part /mnt
├─sdd2 8:50 0 16M 0 part
└─sdd3 8:51 0 111,7G 0 part
sde 8:64 0 698,6G 0 disk
└─sde1 8:65 0 698,6G 0 part
sdf 8:80 1 7,2G 0 disk
└─sdf1 8:81 1 7,2G 0 part
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1 259:1 0 16M 0 part
├─nvme0n1p2 259:2 0 811,5G 0 part
├─nvme0n1p3 259:3 0 1,9G 0 part [SWAP]
├─nvme0n1p4 259:4 0 488M 0 part /boot
└─nvme0n1p5 259:5 0 117,7G 0 part /
This is the disk on which Windows is installed:
# parted /dev/sdd print
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sdd: 120GB
Size of sector (lógico/físico): 512B/512B
Partition table: gpt
Disk options:
Number Start End Size Filesystem Name Options
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 123MB 16,8MB Microsoft reserved partition msftres
3 123MB 120GB 120GB ntfs Basic data partition msftdata
This is the disk on which Linux is installed:
# parted /dev/nvme0n1 print
Model: WDC WDS100T2B0C-00PXH0 (nvme)
Disk /dev/nvme0n1: 1000GB
Size of sector (lógico/físico): 512B/512B
Partition table: gpt
Disk options:
Number Start End Size Filesystem Name Options
1 17,4kB 16,8MB 16,8MB Mi msftres
2 16,8MB 871GB 871GB ntfs msftdata
3 871GB 873GB 2000MB linux-swap(v1) swap
4 873GB 874GB 512MB fat32 boot, esp
5 874GB 1000GB 126GB ext4
Last edited by LeonardoSidney (2021-04-15 14:23:13)
Offline
Probably a limitation of your UEFI and it doesn't expose the additional ESP during normal bootup. I'd just share the Windows EFI directly with GRUB and install GRUB there.
Offline
I had to disable Secure Boot and set OS Type to Other OS and disable Fast boot in BIOS to be able to boot Windows installed on another drive from GRUB.
# sudo os-prober
/dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
# sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
...
From my grub.cfg:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-6655-B7F1' {
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 6655-B7F1
else
search --no-floppy --fs-uuid --set=root 6655-B7F1
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
edit: turns out i sometimes get some erros while booting windows, for some reason entering end exiting bios solves the problem.
Last edited by harryy (2021-04-21 05:44:37)
Offline
Pages: 1