User:Maffblaster/Drafts/os-prober

From Gentoo Wiki
Jump to:navigation Jump to:search

os-prober is a set of enhancement scripts for the GRUB secondary boot loader that enables automatic menu-entry creation for bootable operating systems.

Troubleshooting

os-prober is being run, but not detecting Windows EFI files

Problem: os-prober is running after GRUB runs, however it is not detecting bootable Windows EFI files, even though they exist in the ESP.

root #parted /dev/nvme1n1 print
GNU Parted 3.6
Using /dev/nvme1n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: SAMSUNG MZVLB512HAJQ-000L7 (nvme)
Disk /dev/nvme1n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  268MB  267MB   fat32        EFI system partition          msftdata
 2      269MB   286MB  16.8MB               Microsoft reserved partition  msftres
 3      286MB   511GB  511GB   ntfs         Basic data partition          msftdata
 4      511GB   512GB  633MB   ntfs                                       hidden, diag

Solution: Set the esp flag to on for the EFI System Partition:

root #parted /dev/nvme1n1 set 1 esp on
root #parted /dev/nvme1n1 print
Model: SAMSUNG MZVLB512HAJQ-000L7 (nvme)
Disk /dev/nvme1n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  268MB  267MB   fat32        EFI system partition          boot, esp
 2      269MB   286MB  16.8MB               Microsoft reserved partition  msftres
 3      286MB   511GB  511GB   ntfs         Basic data partition          msftdata
 4      511GB   512GB  633MB   ntfs                                       hidden, diag

See also