installation worked like a charm, but grub doesnt shows up at boot..
hello
here on two different laptops i have a problem : there are already both on windows, but the simple attempt to install linux is a bit complicated. the LMDE systems boot up well from liveusb. The installation works like a charm. But after a reboot, systematically the computer boot up into windows, with not showing the grub menu. Because it doesnt boot up directly on grub.efi well, if I F9 the bios at startup, the bios itself can find within the HDD the both windows and grub efi files and boot up well on linux ; but my wish is to get the grub firstly (whom contains windows's entry) from bios. I can't change the efi variables from the bios, as it's a insydebios one. how could i fix it? i tried a/ by distinguish both /boot/efi mount point and partition at the partition step of installation wizard, with no effect b/ to install grub, in the step after, on the /dev/sda2 (instead of default /dev/sda), where sda2 is vfat efi partition (with windows), and sda8 the / root system partition, with no effect.. i have well as the same as others computer with the same win8 and linux systems, the same /boot/efi/EFI variables, as Boot/debian/Microsoft. im totally lost, im wondering why the computer always boot up directly on mswindows instead of grub.. i already tried those attempts, with no more success : https://bbs.archlinux.org/viewtopic....28724#p1728724 https://askubuntu.com/a/831241 https://askubuntu.com/a/1069886 https://askubuntu.com/a/1203713 without forgetting the mount -t efivarfs efivarfs /sys/firmware/efi/efivars what am i doing wrong? the last time i observed a such issue, it was on a similar lenovo laptop, i did this (to separate /boot/efi by creating a completely new efi partition, then asking the installer to install grub on /dev/sda10 instead of /dev/sda) : Quote:
|
Do you have the Linux OS set to first boot priority in the BIOS? If you can use the F9 key for a one time boot option to boot Linux you need to make the change permanent. What is the boot order from: sudo efibootmgr -v?
|
This is what works on my hp: f10 to access bios/firmware 'system configuration'>'boot options'>'os boot manager' use f5 f6 key to move items up and down to change order, f10 to save and exit.
|
Generally, the one time boot option for an HP is the F9 key and access to the BIOS is with the F10 key and you may find the options you are looking for under System Configuration or under Boot Options. I don't know about Lenovo but as pointed out above, it is a simple task to change the boot priority in the BIOS with HP.
|
5 Attachment(s)
hello
thank you all for your replies Quote:
F9 could well boot into linux. BUT. Yes, there is a but : using liveusb/mount/grub-install/update-grub/efibootmgr-o + boot-repair, did NOT repair it. everytime, it boots back on windows's efi im wondering about using the g50-70 trick, whom consists to create a vfat-formated efi partition and to install on /grub/sda8 at that time (it's the situation of the quoted part of my first post) for the lenovo flex20405, for a huge time i had to F11 immediately at bootup to avoid going into windows's efi. thus, since i did a simple : Quote:
here is the gparted thing for that flex20405 : https://img.y-y.li/CK5XNnaj/OFIgpCEM.png where here is the mount : https://paste.debian.net/1303849/ thus, about the hp G7, im on it since almost three days, i tried everything : bios update this evening (no change) mount whole thing, as Quote:
Quote:
for the hp g7 2257sf, i still have, after all those commands, plus the efibootmgr -o [debianfirst,then common order], still the computers boots up on windows'efi. here are some links about this : https://forums.linuxmint.com/viewtop...0eb6c&start=20 https://www.happyassassin.net/posts/...lly-work-then/ https://forums.linuxmint.com/viewtop...?f=46&t=371385 https://forum.ubuntu-fr.org/viewtopic.php?id=1944101 https://ubuntuforums.org/showthread.php?t=2102211 https://forums.linuxmint.com/viewtopic.php?t=370869 https://askubuntu.com/questions/2442...y-new-efi-file https://ubuntuforums.org/archive/ind...t-2227889.html i can use the F9 key to boot under linux, yes, at bios's boot up. Quote:
Quote:
the thing is, im not looking to "find a way to boot on linux by F9/EFI", almost all efi computers have it im looking for a solution, where after a common linux's wizard installation including grub installation, after update-grub/grub-install with recheck option, after boot-repair tool attempt, after efibootmgr -o orders change, to get another way to avoid windows's boot first, than to replace directly msftwindows's efi file by grub's efi one. hp is supposed to work, afhrew.... here are attempts with efibootmgr -o, all finishing by rebooting on windows8 directly : https://paste.debian.net/1303850/ https://paste.debian.net/1303851/ https://paste.debian.net/1303852/ https://paste.debian.net/1303854/ only the -n option from F9-key booted linux/grub makes the computer booting directly on grub/linux. Not -o . Or anything else. but i dont want to be restricted to such manipulation, just want if somebody without my password wants to reboot, the choice of win/nux should be made by grub, not windows directly if no keystroke is entered... yepp, everytime i poweroff the computer completely (no reboot) to test if the latest manipulation could avoid windows efi boots directly. until here, none worked on that hp g7. |
Quote:
most efibootmgr changes do not work on HP computers but you can very easily make the change once you learn how to actually access the BIOS. Where you make the change will vary as an earlier post above says it is under System Configuration while on mine it is under Boot Options. You find OS Boot Manager and you can make the change there by using the F6 key to move a highlighted entry up or the F5 key to move an entry down. This information is printed on that page in your BIOS firmware. I don't have a Lenovo so I have no idea how that would work. I see reference in your posts to boot repair. Is there any particular reason why you did not use the Create BootInfo Summary Option suggested on the boot repair page? That would give members here a link to view details on your system. When you use the one time F9 boot option to boot LMDE, can you view your EFI partition? Can you see the proper files and directories there? Do you have a directory for LMDE? I don't know what it would be called, debian?? At this point I would suggest you run boot repair and post the link you get it when it finishes so there is some detailed information specific to your computer. |
Maybe this will work: back up the EFI/BOOT/Bootx64.efi file on the efi partition and replace it by copying Slackware grubx64.efi on the efi partition to EFI/BOOT/Bootx64.efi on the efi partition
|
|
2 Attachment(s)
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Run this command to add a boot entry into the bios for LMDE.
Code:
sudo efibootmgr -c -d /dev/sda --part=2 -L LMDE -l \\EFI\\debian\\shimx64.efi |
The Boot Info log you posted is interesting as I don't believe I have seen this before. Your efibootmgr output shows the current boot as 0002 which below shows debian as 0002 so that would be your LMDE. Curiously, 0002 does not show in the boot order so I see the problem. Obviously, you can't put it first if it does not show an entry. I don't know why that would happen. You could try the suggestion in the post above but if that fails, I expect it is hardware related. Is this the HP or the Lenovo?
|
This solution only works as long as you boot into lmde. After booting into Windows will have to use f9 key to boot back into lmde.
Create a /etc/rc.local file with this in it: Code:
#!/bin/bash Code:
sudo chmod +x /etc/rc.local https://www.linuxbabe.com/linux-serv...l-with-systemd On reboots from lmde should have the grub menu. The real solution is to find where in the bios to make lmde/debian first in the boot order or do as suggested with the EFI/bootx64.efi file |
Quote:
https://img.y-y.li/gallery#uiCzKXXH/...s/mpzJoC7i.jpg |
What is in os boot manager? There should be more items inside os boot manager.
|
As for the BIOS entry key on HP machines it is esc and the one time boot selector key is f9 however, the temporary boot option isn't a permanent solution.
I'd recommend that the OP consider investigate installing the grub II boot loader and let OS-Robber discover the windows 8 installation. Furthermore Windows 8 has long been EOLed see included link https://learn.microsoft.com/en-us/li...cts/windows-81 |
All times are GMT -5. The time now is 04:56 AM. |