Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 12 Grub issue with OS on second drive

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
stroh
Posts: 5
Joined: 2024-02-29 03:28

Debian 12 Grub issue with OS on second drive

#1 Post 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

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: Debian 12 Grub issue with OS on second drive

#2 Post 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
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

stroh
Posts: 5
Joined: 2024-02-29 03:28

Re: Debian 12 Grub issue with OS on second drive

#3 Post 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.

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: Debian 12 Grub issue with OS on second drive

#4 Post 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.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

stroh
Posts: 5
Joined: 2024-02-29 03:28

Re: Debian 12 Grub issue with OS on second drive

#5 Post 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 ?

stroh
Posts: 5
Joined: 2024-02-29 03:28

Re: Debian 12 Grub issue with OS on second drive

#6 Post 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

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: Debian 12 Grub issue with OS on second drive

#7 Post 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.

stroh
Posts: 5
Joined: 2024-02-29 03:28

Re: Debian 12 Grub issue with OS on second drive

#8 Post 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.

Post Reply