#PC booting to non existing windows partition [Resolved]

33 messages · Page 1 of 1 (latest)

mossy copper
#

I got a ~2 year old lenovo Legion pre-built, Tried to dual boot and then reverted back to a pure linux system. only issue is that my system keeps trying to boot to windows even though there is no windows partition. attempts to change the order in bios (that has no locks on it as far as i can tell) reverts on next boot.
The only partitions on my ssd are a 536mb (EFI System) partition mounted at /boot/efi
and then the main storage that is my FS root.

I should also mention that it attempts to boot directly to windows, completely bypassing grub witch itself had windows as not the first option.

any solution that doesnt involve me ripping out my SSD or needing to nuke my install would be greatly appreciated. nekoLost

#

pretty sure it doesnt matter, not running arch, swapped to ubuntu 23.04 due to some issues arch had with my peripherals. should not matter as its a grub / uefi / boot order issue im having. i only want the one but my system insists windows still exists.

hollow marsh
#

efibootmgr -v

#

also, install grub using the --removable flag

mossy copper
hollow marsh
#

it puts the efi payload into the default path, which motherboards loves to auto generate and entry for in the boot table anyway

#

bonus point: it increases the chance that your system will boot in case of e.g. a firmware upgrade which wipes the nvram entries

#

but as asked, what is the output from efibootmgr -v

mossy copper
#

windows is Boot0004*

#

i dont understand why windows needs to constantly change the boot order on my system. just randomly gets an update and it forces itself back to the top.

hollow marsh
#

delete entry 4 and see if that helps

mossy copper
#

lookin through the man to get the syntax.

#

efibootmgr -b 4 -B?

hollow marsh
#

you can also do the good old hack of installing the grub efi to the windows path too, since some firmware are insane and insists on booting things from there

#

-B 0004

mossy copper
#

life is good

#

thanks

#

PC booting to non existing windows partition [Resolved]

#

gonna look into that grub efi thing

hollow marsh
#

see if it stays away after a reboot first, if it does, no need to do anything else

mossy copper
#

i want to rid my system of the firmware if i can. im done with windows and just dont want it to rear its head again. ever.

hollow marsh
#

other than optionally grub-install --removable ...

mossy copper
#

i need to re-build my grub again anyway

#

still has the windows path showing on it

hollow marsh
#

prefers systemd-boot

mossy copper
#

yeah systemd is good. makes life ez. does ubuntu have systemd or is it still init?

#

yes it does

hollow marsh
#

systemd-boot as in the bootloader

mossy copper
#

ye was wondering if my system just had systemd in general. systemctl is there so should be an easy thing to set up.

hollow marsh
#

and ubuntu moved to systemd after debian did in deb9 or whenever it was

mossy copper