#i wanna make it so that the boot menu does not open by default,instead it boots straight to win

272 messages · Page 1 of 1 (latest)

atomic willow
#

the boot menu should open when a certain key is pressed(?) is this possible?

atomic willow
#

like how bios opens when f12/etc is pressed

#

or any other way really

white pecan
river spire
#

and default entry to windows

atomic willow
#

ye

atomic willow
ivory badge
#

hold shift or Esc

#

or put 1 second time delay

atomic willow
ivory badge
#

Hit those after POST right at handoff

atomic willow
#

what is handoff?

#

and post?

ivory badge
#

or use Boot Repair to custom set time to 1 sec so u can easily interrupt

#

see power on self test

river spire
ivory badge
#

but if dealing with dual boots unless they were isolated , then why hide it?

river spire
ivory badge
#

put 0 in place of 5
put hidden in place of menu

river spire
#

okay nvm

#

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/425979
what I said earlier seems to be broken

ivory badge
river spire
ivory badge
#

Simpler way would just put Windows boot manager at top BIOS order

#

choose ubuntu at POST via boot menu key when wanted

river spire
#

good idea

atomic willow
#

and hitting f12 brings me to the bios settings

#

same with esc

ivory badge
#

so put 1 second

atomic willow
#

wont that make it visible?

#

for even one second?

ivory badge
#

does it matter?

atomic willow
#

i mean its pretty obvios to see something pop up for 1 second

atomic willow
#

it still has a 10 sec timer to select the highlighted os

#

it only matters if grub default is set to something not 0

ivory badge
atomic willow
#

ah

#

i realised
i havent put the settings for grub in ""

atomic willow
#

ok i just want-
win to boot by default,and linux to boot when a hotkey is pressed

#

ive been reading the grub documentation but its not really clear on how to do this

ivory badge
#

just hide grub menu as per the link I gave and that's it

atomic willow
#

ah

#

i also realised that just saving the grub file does now make it do its thing automatically

ivory badge
#

save file AND run the update command as shown

atomic willow
#

indeed

atomic willow
#

im not getting how to set the default number,like how do i find which one win is one?

#

found by trial and error

ivory badge
#

in BIOS boot priority setup, look for Windows Boot Manager, and move it to top of list.

#

then the "uefi ubuntu" second.

atomic willow
#

@ivory badge no matter what i do the grub menu keeps apperaing,even with GRUB_TIMEOUT_STYLE="hidden"
AND GRUB_TIMEOUT="0"

atomic willow
ivory badge
#

oh. then must be Windows Fast Startup messing up

atomic willow
#

i turned that off as well

ivory badge
#

go in n turn off

atomic willow
#

?

ivory badge
#

Believe me it causes problems. Now when you choose to start Windows from the black grub menu, does it successfully load up?

atomic willow
#

yes

ivory badge
#

well that's good

#

not sure why the BIOS list wont keep its set order

atomic willow
#

doesnt really matter,i found the number of win

ivory badge
#

efibootmgr in linux terminal will list the uefi bootables order

#

then sudo efibootmgr -o xxxx, yyyy

atomic willow
#

still dunmo how to.completely stop the boot manager from appearing

#

also.it says turning off fast startup doesnt affect restart

ivory badge
#

ya to windows

#

still fucks up linux. turn it off

atomic willow
#

setting grub_timeout to 0 makes it go to 10 secs

atomic willow
ivory badge
#

k put to 1 then

atomic willow
#

1 puts it to 1 second

#

which is still quite clearly visible

ivory badge
#

i think its just gonna show when 2 OS r installed

atomic willow
#

then what is the point of hidden timout

#

it litteraly says that it doesnt show the menu if its set to hidden

ivory badge
#

ok maybe custom.cfg isn't what u need. Run Boot Repair from Linux Mint USB session. use its Advanced repair options and set the visibility/timeout from there.

atomic willow
#

whats custom.cfg

#

?

ivory badge
#

that file from the link i sent

atomic willow
atomic willow
ivory badge
#

yeah

#

boot repair is a program in the desktop

atomic willow
#

ah then i have to flash the usb again

#

might take a while

#

the built in usb image writer does format it before writing right? @ivory badge

#

would hate if it didnt

ivory badge
#

yeah or just ventoy the drive so u dont have to waste the drive everytime

atomic willow
#

what does ventoy the drive mean

ivory badge
#

it's a loader program to make the usb bootable

#

then u just copy and paste the ISO to it

atomic willow
#

ah thats interesting,i was using that usb for a recovery drive anyway

ivory badge
#

yeah so u ventoy it once, leave Mint iso for emergencies, plus any other bootable recovery images/service, plus any other files.

atomic willow
#

how large is the iso in the drive again

ivory badge
#

mint ISO is 2.8 GB

#

last I checked

#

whether u use USB Image Writer, or Ventoy, it will be wiped. The difference is on ventoy u only have to set it up once.

atomic willow
#

i inserted the drive and restarted and nothing different came up

ivory badge
#

what exactly did you do?

atomic willow
#

plugged in the usb and restarted

#

the normal grub boot menu showed up

ivory badge
#

😐

atomic willow
#

what

ivory badge
#

i told u to do the Advanced Boot Repair

atomic willow
#

i thought that would have been a program that was preisntalled

ivory badge
#

it is preinstalled.. in the live ISO

atomic willow
#

so how do i acces it?

ivory badge
#

boot the live ISO up.

atomic willow
#

and that means...?

ivory badge
#

boot up the usb stick, the same way u did before u installed Linux Mint

atomic willow
#

the way i installed lin mint was go into win and click on advanced restart or something similar

#

just plugging in the usb didnt do much for em

ivory badge
#

u gotta press the BIOS BOOT MENU KEY within the first 2 seconds when u power on ur computer

#

then pick UEFI USB device

atomic willow
ivory badge
#

did it boot to the live desktop?

atomic willow
#

theres the option to

ivory badge
#

do it

atomic willow
#

why coudnt i do this from normal.lin mint?

ivory badge
#

cuz it doesnt have it

#

nor would it work

atomic willow
#

i dont wanna do this again so tell exactly what

ivory badge
#

dial it down to 1 second, or uncheck the unhide box altogether.

#

you can read the report I think it gives once it finishes.

atomic willow
#

also it says "grub-efi purge cancelled"

ivory badge
#

don't purge

atomic willow
#

also,the boot menu is still visible.and has a timer of 5 secs

#

ill try to do all of this is in the config file

atomic willow
#

nope

#

exact same thing

ivory badge
#

watch 2nd video. u may have to redo it proper

#

if you only have one drive to hold both OS, then watch the first 6 minutes only

#

but it's better with 2 drives, and the Method A shown at 7 minutes in

atomic willow
#

and no,i dont think i made any errors booting it the first time

ivory badge
#

is yours single-disk?

atomic willow
#

yes

ivory badge
#

which OS are you currently on with atm?

atomic willow
#

and i moved win up the list of things you mentioned

#

and not lin or the grub menu show

#

...at all

ivory badge
#

are you at the Windows desktop?

atomic willow
#

also i cant get into POST anymore

atomic willow
ivory badge
#

run msinfo32

atomic willow
#

thats.command right?

ivory badge
#

what does it list for BIOS MODE: ?

atomic willow
#

uefi

ivory badge
#

do from run box

#

ok

atomic willow
ivory badge
#

nvm

atomic willow
#

oh yea i remember

#

it workwd as a command as well anyway

ivory badge
#

ok next,

#

search 'powershell' in menu, right click it, open as administrator, enter: powercfg /h off

atomic willow
#

then?

#

what does any of this do?

ivory badge
#

next, close all that, right click start button, hold down shift key and select "restart"

atomic willow
#

ive gotten into the advanced boot something something

ivory badge
#

that should get you to a blue page, select enter UEFI setup

#

then in there go to boot:

atomic willow
#

yes from here i can also select use a device and loas into linux

ivory badge
#

what is the boot mode set to?

atomic willow
#

uefi.only

ivory badge
#

should be as just uefi. no legacy or csm

atomic willow
#

also legacy boot is unsupported

atomic willow
ivory badge
#

next, is there an option in the advanced or boot or config category saying "quick boot" or similar?

atomic willow
#

there is secure boot (which is turned off) and fast boot(ive set it to minimal,which is the lowest)

#

well?

ivory badge
#

put fast boot to thorough

#

or off

#

if off is an option

atomic willow
#

you realise those are opposites right?

#

off isnt

ivory badge
#

no

#

off means DONT rush the boot

#

similar to thorough

atomic willow
#

ok first of all what is this all for

ivory badge
#

u want help or no?

atomic willow
#

i do,but im not gonna blindly follow instructions

#

and i do thank you for your involvment thus far

ivory badge
#

it's so ur boot doesnt skip over stuff

#

the whole issue is clear from wen something was pushing ubuntu back to top of list

#

next put uefi usb to top priority

#

u'll need to do the default boot repair to fix whatever mess u did editing grub

#

after all of that, go back to BIOS via the hotkey at startup

atomic willow
ivory badge
#

move windows to the top

#

and it should stay

atomic willow
#

when i just.load with ubuntu the grub menu is appears

#

ill check if it puched ubuntu back up

#

also in my desperation i got a grub gui modifier

#

it does the same things as doing it by text along with not working

#

but it might help someone else so ill post it

#

apparently the hack was to keep the timout 0.1 which the gui does

ivory badge
#

literally a fresh ticket jst opened re: problems doing that

atomic willow
#

damn

#

link?

ivory badge
atomic willow
#

ubuntu is at the top,and i had fast boot to thourugh

#

wait

ivory badge
#

did u do the default boot repair to get everything bacck to baseline?

atomic willow
#

shoudnt secure boot also be on

ivory badge
#

up to u but it may or may not interfere.

ivory badge
#

idk how accepting Mint 22 is of SB

atomic willow
#

stunner whats your daily driver os

ivory badge
#

mx linux

atomic willow
#

never heard of it

ivory badge
#

idk u said it did

#

windows should remain at the top of the BIOS priority list

#

it will auto boot to windows , no menus

atomic willow
#

but when it does that i cant get into bios POST for somereason

atomic willow
#

i want the menu when i press shift or esc

ivory badge
#

when u want Linux, u hit the F key or whatever to choose other bootable options, then pick ubuntu, and hit enter twice

atomic willow
#

and then i go into bios everytime and rearrange the boot order

#

i ooen my comp mulitple times a day for both man

ivory badge
#

alternately u can install rEFInd

#

it will give u a pretty menu to boot either

atomic willow
#

i already have grub?

#

can refind do what im asking ?

ivory badge
#

the BIOS may even have a settable timeout for that hotkey

atomic willow
#

i have been pressing when it litterally says "f12 boot options" on the screen

ivory badge
#

and what shows up?

atomic willow
#

windows opens

ivory badge
#

well damn

#

install refind then

atomic willow
#

what is that?

ivory badge
#

and put refind loader as first efi device in bios list

atomic willow
#

oh that
my brain didnt parse it as the same thing

atomic willow
#

i can also put ubuntu on top and have grub load

ivory badge
#

ofc it should

ivory badge
#

and live with a 1 second timer it wont kill u

atomic willow
#

it might

ivory badge
#

that's all i got

atomic willow
#

ok it seems reifind can

#

do what grub is supposed to

atomic willow
#

no refind sucks worse than grub

#

fuck

atomic willow
#
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
atomic willow
#

@ivory badge found the culprit

#

in the file /boot/grub/grub.cfg

#
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

#

this line of code is causing it

#

the problem is whenever i change it and run sudo update grub it changes it right back to this code

atomic willow
#

i changed it and had to reinstall the bootloader

atomic willow