Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
I installed Debian 11.3 on an HP 250 G6 notebook (erase disk -> default partition table) using the graphical installer (not Calamares) from a bootable debian "netinst" USB drive created using dd, but the installer failed to install GRUB.
Code:
root@debian-hp:~# fdisk -l
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000LPCX-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1AF41D5B-2B0F-409E-A9B5-136B84A26955
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 974772223 973721600 464.3G Linux filesystem
/dev/sda3 974772224 976771071 1998848 976M Linux swap
The installer was complaining about EFI variables so I "chrooted" into the installed system using "recovery mode" and I installed efivars:
Code:
# apt install efivar
Then I reinstalled GRUB and it worked without errors. However, now I can only boot the system using the "Boot from EFI file" option in BIOS because of the EFI boot order:
I tried to change the order using the following command but nothing changes:
Code:
root@debian-hp:~# efibootmgr -o 0003,0002,2001,2002,0001,2004
Invalid BootOrder order entry value0003,0002,2001,2002,0001,2004
^
efibootmgr: entry 2004 does not exist
root@debian-hp:~# efibootmgr -o 0003,0002,2001,2002,0001
Could not set BootOrder: Interrupted system call
root@debian-hp:~# efibootmgr -o 0003,2001,2002,0001
Skipping unreadable variable "Boot0001": Interrupted system call
Skipping unreadable variable "Boot0002": Interrupted system call
Skipping unreadable variable "Boot0003": Interrupted system call
Skipping unreadable variable "Boot2001": Interrupted system call
Skipping unreadable variable "Boot2002": Interrupted system call
Invalid BootOrder order entry value0003
^
efibootmgr: entry 0003 does not exist
Could you please help me change the EFI priority or remove "ubuntu" option from the list so that my notebook will automatically load Debian GRUB bootloader on startup?
root@debian-hp:~# grub-install
Installing for x86_64-efi platform.
grub-install: warning: Cannot set EFI variable BootOrder.
grub-install: warning: efivarfs_set_variable: writing to fd 7 failed: Interrupted system call.
grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: Interrupted system call.
grub-install: error: failed to register the EFI boot entry: Interrupted system call.
I changed the UEFI boot order in BIOS and now it works, thank you very much!
Code:
root@debian-hp:~# efibootmgr
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,3003,0002,2001,2002,0001,2004
Boot0001* Notebook Hard Drive - WDC WD5000LPCX-60VHAT0
Boot0002* ubuntu
Boot0003* debian
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot3003* Internal Hard Disk or Solid State Disk
Do you know how I can remove the "ubuntu" entry from the list?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.