Page 1 of 1

Debian 12 Grub issue with OS on second drive

Posted: 2024-02-29 03:42
by stroh
Hi,

I have Debian 12 installed on my main drive but for a work program i need to have windows installed so i installed a second drive. I can manually change the boot priority and boot into windows on the second drive but it does not show up on grub.

sudo os-prober gives 0 results
sudo update-grub has not worked

i ran boot-repair-disk and this link has the output http://sprunge.us/1MJW9Q

if someone could help me out or point me in the right direction it would be greatly appreciated.

Thank you

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-02-29 03:56
by sunrat
This has been covered in several topics already. os_prober is disabled in Debian 12. In /etc/default/grub you need to change

Code: Select all

# GRUB_DISABLE_OS_PROBER=true
to

Code: Select all

GRUB_DISABLE_OS_PROBER=false
You may also need to Force grub-efi installation to the removable media path

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-03 01:15
by stroh
Hi Sunrat,

Thank you for your reply.

Prior to posting i did edit /etc/default/grub and removed the # and set value to false

I clicked the link for the Force grub-efi installation but is says forbidden on the page.

I search the forums and read more and tried a couple things but i still cannot get it.

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-03 03:00
by sunrat
stroh wrote: 2024-03-03 01:15 I search the forums and read more and tried a couple things but i still cannot get it.
Hmm, wiki link works here. I've heard some people's internet won't allow it.
Basically

Code: Select all

dpkg-reconfigure grub-efi-amd64
and answer yes when it asks to force installation to removable.

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-04 00:39
by stroh
I ran the command,

Linux command line: left blank
default menu entry: quiet
os-prober: tried both yes and no
Force extra installation to the EFI removable path: yes
Update NVRAM for auto boot: tried both yes and no

all install with no error reported but none recognize the windows installation on the other hard drive

do you have any other ideas i could try ?

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-04 00:51
by stroh
and now that i have done the different commands, the system will not boot to the second drive even if i put it into first place in the boot priority

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-07 20:29
by mrmazda
What do:

Code: Select all

efibootmgr -v
lsblk -f
parted -l
cat /etc/fstab ## from your Bookworm's / filesystem
report? Please copy and paste input/output from these commands into code blocks (</> icon above input window) here. To facilitate this you can redirect these commands to one or more files via booting live installation or rescue media in UEFI mode.

Re: Debian 12 Grub issue with OS on second drive

Posted: 2024-03-24 00:45
by stroh
Thank you all for your help.

The issue was on the Windows side that I overlooked. I need to change the disk from MBR to GPT

From the Windows command prompt i ran as admistrator

mbr2gpt /validate /allowFullOS
mbr2gpt /convert /allowFullOS

and then reboot into Debian and ran

dpkg-reconfigure grub-efi-amd64

it added windows and fixed.