Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-27-2022, 06:53 PM
|
#1
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Rep:
|
How to reinstall grub as my main boot loader?
I am using Ubuntu 20.04
Recently, I my HDMI port wasn't working. I took the laptop to HP. They very nicely said, "You still have guarantee, we will replace the whole motherboard, because the HDMI is an integral part of the motherboard."
Thanks!
Yesterday, I got my laptop back, but Ubuntu seemed to be gone, no grub bootloader, just Windows boot.
I called the guy, he said, press F9 on boot.
Sure enough, up comes an HP bootloader, showing Windows as number one and Ubuntu as number 2. Press the down arrow, and enter and grub boot loader starts.
How can I get back to the situation just grub bootloader, with Ubu at the top? Or change the HP bootloader to have Ubu at the top?
I should say, "without risking destroying the MBR" I need this laptop every day!
|
|
|
09-27-2022, 06:59 PM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You say HP bootloader, sounds like EFI menu to me. For EFI use efibootmgr command line application, it allows you to change boot order and much more.
|
|
|
09-27-2022, 07:33 PM
|
#3
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,776
|
Press f10 to get into firmware/bios settings, find the boot menu, select os-manager, move Ubuntu to the top with f5 f6 keys, press f10 to save.
Last edited by colorpurple21859; 09-27-2022 at 07:34 PM.
|
|
|
09-28-2022, 01:09 AM
|
#4
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,346
|
Pedroski, colorpurple's and Emerson's directions are two completely different methods of achieving the same desired result, assuming F10 is the correct key for getting into your laptop's UEFI BIOS' settings. 
|
|
|
09-28-2022, 01:44 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,336
|
So, if the m/board was replaced, how did the Ubuntu entry get into the NVRAM on the motherboard ???.
Paint my cynical ... 
|
|
|
09-28-2022, 01:45 AM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,336
|
So, if the m/board was replaced, how did the Ubuntu entry get into the NVRAM on the motherboard ???.
Paint me skeptical ... 
Last edited by syg00; 09-28-2022 at 01:45 AM.
Reason: typo
|
|
|
09-28-2022, 01:57 AM
|
#7
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,346
|
Computers want to boot. They look for something apparently bootable, and if they find something fulfilling requirements, they proceed. UEFI didn't change this basic behavior. 
|
|
|
09-28-2022, 03:07 AM
|
#8
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,336
|
No EFI variables, no boot entry. If it was (re)set to factory, there is no way a linux entry would be present.
But, if it now works, all's good ...
|
|
|
09-28-2022, 07:30 AM
|
#9
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,233
|
efibootmgr generally won't work on an HP for whatever reason. I've been able to use it to add an entry but cannot delete or change the order with efibootmgr. I've seen numerous threads here and on other forums describing this problem with HP.
The method described in post 3 will work.
|
|
|
09-28-2022, 07:38 PM
|
#10
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
Ok, thanks everyone, I will try the bios first, that is F10 on boot.
How that got into the NVRAM, I don't know! The techs at HP must have changed something!
|
|
|
09-28-2022, 10:35 PM
|
#11
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
Well that worked great:
Go to bios -> boot options -> UEFI Boot Order
Up comes a little window. Windows was on top. Press F6 and Windows moves down, F10 to save and then grub starts!!
Thanks for your tips and advice!
|
|
|
09-29-2022, 11:58 AM
|
#12
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
With linux there are many ways to skin that cat.
Many of us started using linux in the beginning and bios settings (legacy or uefi) are often your friend.
|
|
|
09-29-2022, 01:53 PM
|
#13
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,346
|
Quote:
Originally Posted by Pedroski
How that got into the NVRAM, I don't know! The techs at HP must have changed something!
|
They changed the motherboard, thus the default BIOS settings came along for the ride. If they wished to verify the new motherboard operated correctly, they would almost certainly have booted Windows, not Linux.
|
|
|
09-29-2022, 09:52 PM
|
#14
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
Yes, I didn't give them a password for Linux, just for Windows.
I haven't met any Chinese who use Linux. There must be some!
|
|
|
All times are GMT -5. The time now is 06:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|