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
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
- sunrat
- 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
This has been covered in several topics already. os_prober is disabled in Debian 12. In /etc/default/grub you need to change
to
You may also need to Force grub-efi installation to the removable media path
Code: Select all
# GRUB_DISABLE_OS_PROBER=true
Code: Select all
GRUB_DISABLE_OS_PROBER=false
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Debian 12 Grub issue with OS on second drive
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.
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.
- sunrat
- 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
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
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: Debian 12 Grub issue with OS on second drive
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 ?
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
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
What do: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.
Code: Select all
efibootmgr -v
lsblk -f
parted -l
cat /etc/fstab ## from your Bookworm's / filesystem
Re: Debian 12 Grub issue with OS on second drive
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.
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.