LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Out or memory (https://www.linuxquestions.org/questions/debian-26/out-or-memory-4175732379/)

AllanP 01-02-2024 02:39 PM

Out or memory
 
Debain has Grub and when I select Mint to load I get the message "Error: Out of memory hit any key to continue" hitting any key does nothing only Ctrl Alt Delete to reboot. I tried a few more times then switched to Ubuntu and took control of Grub. Rebooted and selected Mint and it loaded fine.
Edit: Also on that subject Debian Grub doesn't recognise Windows 11. This is on laptop; where on PC with W10 it loads fine. This may have something to do with UEFI; not sure though.
It is the PC Debian with Grub error message.

mrmazda 01-02-2024 03:32 PM

You have not made it clear what problem you are trying to solve.

Debian, in accordance with Grub upstream, switched to not by default including Windows in its Grub menu. You can easily change that by editing /etc/default/grub to include GRUB_DISABLE_OS_PROBER="false" (instead of true), and then regenerating grub.cfg. Due to this upstream switch, more distros are probably making the same change. On UEFI systems this is a minor issue, because boot selection of OS can be made via the UEFI BIOS BBS menu.

The out of memory is error is commonly encountered when there are multiple versions of Grub on the installed system. Only one Grub is actually needed per PC or laptop if GRUB_DISABLE_OS_PROBER="true" is employed on the installed Grub, and/or if optional features of Grub are appropriately configured.

AllanP 01-02-2024 03:58 PM

Quote:

Originally Posted by mrmazda (Post 6474236)
You have not made it clear what problem you are trying to solve.

Debian, in accordance with Grub upstream, switched to not by default including Windows in its Grub menu. You can easily change that by editing /etc/default/grub to include GRUB_DISABLE_OS_PROBER="false" (instead of true), and then regenerating grub.cfg. Due to this upstream switch, more distros are probably making the same change. On UEFI systems this is a minor issue, because boot selection of OS can be made via the UEFI BIOS BBS menu.

The out of memory is error is commonly encountered when there are multiple versions of Grub on the installed system. Only one Grub is actually needed per PC or laptop if GRUB_DISABLE_OS_PROBER="true" is employed on the installed Grub, and/or if optional features of Grub are appropriately configured.

default/grub OS_Prober was set to false.

On the error message: All was fine last time I booted Mint and I don't think I did anything to cause it. I did update-grub in Debian but that didn't help. I have Grub on Ubunru and it's fine there. Thanks for the help

syg00 01-02-2024 09:14 PM

Caveat: I use neither Debian nor Ubuntu.

I note this error report from early '23, but later reports included as well. I wonder if Debian has regressed (or never implemented) the fix ...

mrapathy 01-15-2024 10:45 AM

what happens when you use bios boot menu if you have one. key to access it varies per system. f10 or f12 though could be something else.

how much free space you got in your uefi boot partition? seen the problem before with old boot mbr on platter drives with large kernel either corrupt or too big for mbr.

after changing the os prober setting you need to run sudo update-grub

AllanP 01-15-2024 11:12 AM

Quote:

Originally Posted by mrapathy (Post 6476921)
what happens when you use bios boot menu if you have one. key to access it varies per system. f10 or f12 though could be something else.

how much free space you got in your uefi boot partition? seen the problem before with old boot mbr on platter drives with large kernel either corrupt or too big for mbr.

after changing the os prober setting you need to run sudo update-grub

Yes I can select Ubuntu or Windows in Boot menu; not necessary though. All I did was select Ubuntu in Demian's Grub and give Grub to Ubuntu where all four OS's boot fine. So it really isn't a problem, but I like to try and figure out these glitches.
My EFI on sda1 has 1GB and 40.56 MiB used. Yes aware of updating Grub.

yancek 01-15-2024 11:35 AM

Quote:

My EFI on sda1 has 1GB and 40.56 MiB used.
Does your EFI partition have directories named Microsoft, ubuntu and debian? Are all of these OS's on the same physical hard drive?

AllanP 01-15-2024 11:49 AM

1 Attachment(s)
Quote:

Originally Posted by yancek (Post 6476931)
Does your EFI partition have directories named Microsoft, ubuntu and debian? Are all of these OS's on the same physical hard drive?

Have deleted former input as was on wrong computer. So on laptop Debian grub worked fine; on PC now and using Ubuntu for Grub. So yes all on the same drive. 1GB EFI on sda1 flagged "esp boot". Upped from a on to 2 TB ssd.
Only 58 MiB's used on EFI out of 1GB.


All times are GMT -5. The time now is 11:31 PM.