Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [grub2-mkconfig]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Grub cryptomount with BtrFS RAID: how?

I'm on Ubuntu 23.10, with three LUKS disks (whole disk, no partitions). Inside of them is a btrfs RAID1. /boot is combined with /root, inside of LUKS. Having done grub-update and then grub-install ...
Diagon's user avatar
  • 680
0 votes
0 answers
86 views

grub2: which /boot/efi/EFI/*/grub.cfg does it read?

I have a dualboot linux, fedora and almalinux. After installing almalinux, I couldn't see the fedora's kernel versions, just multiple entries of Fedora. Most of the links I found are wrong. https://...
None's user avatar
  • 647
1 vote
1 answer
72 views

Moving /boot, how to update grub to find new location /boot/grub2/i386-pc/{core,boot}.img

Grub2 systems hard-code the location of stage2 files. This info is stored in the bootloader partition. I understand that grub-install will write this and more. My question is how does grub2-install ...
Steve H's user avatar
  • 15
1 vote
1 answer
346 views

modprobe: FATAL: Module dm_mod not found in directory /lib/modules/6.6.16

I have built a custom kernel and given a CONFIG_LOCALVERSION of -grant-nvme during compilation. However, when I try to boot into it, no matter what I do, grub seems to look for /lib/modules/6.6.16 and ...
Grant Curell's user avatar
1 vote
1 answer
605 views

Repair Fedora GRUB after grub2-mkconfig gone wrong

I was trying to enable fractional scaling in Fedora 39 using ChatGPT and he recommended the following: # NVIDIA's proprietary driver requires DRM KMS to be disabled for Wayland to work. # Edit the ...
Camilo Martinez M.'s user avatar
2 votes
1 answer
884 views

The grub2-mkconfig does not propagate renamed root logical volume on RHEL 9

On the RHEL 9.3 I have renamed the logical volume (LV) /dev/lvm01/root to /dev/lvm01/root.vol. I did everything to make the new name correctly recognized: changed /etc/fstab entry reloaded systemd ...
Jaroslav Kucera's user avatar
1 vote
1 answer
815 views

update-grub ignoring GRUB_GFXMODE only

I uncommented /etc/default/grub and changed to following: GRUB_GFXMODE=2560x1440x32 Then, ran sudo update-grub without issues. Now, the /boot/grub/grub.cfg still contains: ... if loadfont $font ; ...
Anutrix's user avatar
  • 341
1 vote
0 answers
136 views

Use device tree or Kconfig to load a driver

I would like to add and enable a new device in an embedded Linux image. Is it enough to just specify the information in a device tree file and then the driver for the device will get loaded based on ...
Engineer999's user avatar
  • 1,171
1 vote
1 answer
1k views

Low resolution grub arch nvidia

This is not a big deal but this has been frustrating for a while now. My graphic card is an RTX 3070 When I boot with grub I am stuck with a very low resolution, probably 1024. I checked the command ...
zakrapovic's user avatar
2 votes
0 answers
2k views

Updated GRUB on Arch Linux, tried fix but GRUB gives error: Symbol grub_debug_malloc not found

I posted this same post on r/archlinux but have not gotten much results. I updated Arch Linux (vanilla), but now GRUB boots into firmware.  (I am sure a lot of you guys have known this issue, and I ...
user541458's user avatar
0 votes
1 answer
142 views

Booting into Xen with grub2-mkconfig 2.03 on centos8 x86_64

Linux localhost.localdomain 4.18.0-394.el8.x86_64 #1 SMP Tue May 31 16:19:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux grub2-mkconfig (GRUB) 2.03 On my centos8, I have installed centos-release-...
Bruno Schroeder's user avatar
0 votes
0 answers
2k views

System fails to boot new kernel after CentOS 9 Stream migration

I have performed a migration from CentOS 8 Stream to Centos 9 Stream on a VPS server of mine with directions I found on Github which have worked, except grub still boots the old kernel from when the ...
John Tate's user avatar
  • 1,990
1 vote
0 answers
683 views

Fix grub to boot correctly into CentOS

I had a dual-boot computer with windows and CentOS 8 [A] on it, each one in different partitions. I created a new partition and successfully installed CentOS Stream [B] on it, but now I'm unable to ...
Gypaets's user avatar
  • 417
1 vote
1 answer
2k views

grub-mkconfig - one Linux kernel, multiple boot entries with different kernel options

GRUB version: 2.04-20 One Linux kernel only; I need to have two GRUB entries to boot the kernel with different set of kernel options. For the time being, after each grub-mkconfig or update-grub2 which ...
Krackout's user avatar
  • 2,742
0 votes
0 answers
339 views

How to reconfigure Grub2 setup after moving from LVM to non-LVM setup

I reconfigured a Fedora installation from an LVM configuration to use plain partitions running EXT4. Of course, grub.cfg still contains the old LVM mount names (fedora_localhost-root, ...
Not a machine's user avatar
0 votes
1 answer
431 views

update-grub finds two copies of all distros

Here is the output of update-grub on my system with an external (/dev/sdb) and internal (/dev/sda) SSD. Anybody know why I see two copies of each boot OS? Or how to start fresh? root@hp:~# update-...
AlMo320's user avatar
  • 11
0 votes
1 answer
826 views

GRUB on EFI system does not automatically load grub.conf

After a Rocky Linux migration (pun intended) no bootloader was found when booting. Booting in rescue mode from a USB drive, I was able to restore a GRUB prompt when booting normally. From that prompt, ...
Fred's user avatar
  • 101
0 votes
1 answer
1k views

os-prober fails to report my current OS, thus update-grub missed it

os-prober fails to report my current OS, thus update-grub missed the very OS I need when generating the boot menu entries. What's the fix? The detailed background is here, basically my system was ...
xpt's user avatar
  • 1,644
0 votes
0 answers
885 views

Changing default GRUB values in /etc/grub.d in archlinux

I need some help with the grub configuration. I am trying to change some values in /etc/default/grub without changing it in that file, and adding the changes in a file in /etc/grub.d/ directory For ...
Tinasour's user avatar
0 votes
1 answer
2k views

/usr/bin/grub-probe: error: failed to get canonical path of `/'

I'm trying to install GRUB from a live USB onto a different drive. While grub-install works fine, grub-mkconfig -o /mnt/boot/grub/grub.cfg (/mnt being the mount-point of the drive I'm installing to) ...
NobodySpecial's user avatar
0 votes
1 answer
2k views

grub-mkconfig adding entry for other Linux system but ignoring its Grub config

I've got a machine with two Linux systems and Windows. When I run grub-mkconfig from my Ubuntu Mate system, it identifies and creates entries for itself, the second Linux system (KISS Linux), and ...
lowercasename's user avatar
0 votes
1 answer
357 views

How to make sure grub2 has the drivers it needs during a Linux installation?

I'm installing a GNU/Linux system; specifically, it's antiX GNU/Linux 19.3. I'm on a rather old system - from around 2000, and it's a 32-bit processor. Now, if I just go through the installer and only ...
einpoklum's user avatar
  • 9,662
1 vote
3 answers
2k views

How do I start a Windows 10 partition on a MBR partitioned disk on a system that otherwise uses GPT/UEFI GRUB?

Okay, let me explain. This is a UEFI computer. It has two disks. The primary disk is partitioned with GPT and boots via GRUB2 to an Arch Linux partition. The secondary disk is partitioned with MBR and ...
Anthony's user avatar
  • 111
0 votes
0 answers
490 views

Fedora 30: How to create dual boot with Windows 7?

I have read through all the similar questions here on SE and I am not seeing an answer to my question. My workstation currently has Fedora 30 running and grub2 installed. This is pure BIOS, no EFI in ...
Not a machine's user avatar
0 votes
1 answer
14k views

os-prober Doesn't Detect Windows 10 in Archlinux [duplicate]

I installed Arch recently (as in, yesterday). I was able to successfully install Grub in the EFI system Partition with grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --...
Akshat Vats's user avatar
1 vote
0 answers
26 views

No grub screen when i start my system

no grub screen after installing ubuntu 18.04 it takes me straight to linux (i am a new person)
Swojas Bhalunkar's user avatar
2 votes
1 answer
7k views

grub-mkconfig gives error in chroot environment

I'm trying to make a Debian installation manually from scratch to an external disk within a live Debian CD. I created a Debian Stretch rootfs via multistrap by following the instructions from here (...
ceremcem's user avatar
  • 2,361
5 votes
1 answer
3k views

What is the correct way to handle default kernelopts in Fedora 31?

I'm running Fedora 31 and when I installed it (F29) I added the option mem_sleep_default=deep to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub. Now I wanted to remove that option but found the file ...
P1zz4br0etch3n's user avatar
0 votes
0 answers
99 views

GRUB does not show selection of OS

I have installed Arch Linux and GRUB afresh. It seems to have worked alright, but when I now boot from the harddisk, I only get the GRUB prompt, without any operating systems to boot. My guess is that ...
pfnuesel's user avatar
  • 5,928
3 votes
2 answers
6k views

update-grub2 creates grub.cfg.new instead of grub.cfg

When I run update-grub2 on my Debian Buster server, instead of creating a grub.cfg it creates a grub.cfg.new, even though grub.cfg does not exist. And because of this my machine boots into a broken ...
Hunter.S.Thompson's user avatar
0 votes
1 answer
330 views

How to headless dual-boot Linuxes?

I'm home user of Centos 7. I've install Centos 8 additionaly. I will install Centos 9 over Centos 7 in the future. So I have and will have old copy and new os on the same hard disk. [root@Prestigio ...
user1855805's user avatar
4 votes
1 answer
3k views

Why isn't my compiled kernel showing up in the GRUB boot menu?

I am trying to compile and install my own kernel (5.2.0-rc7) and everything seems to be working fine until I reboot to actually boot into it and am unable to select it from my GRUB boot menu. I have ...
guribe94's user avatar
  • 143
1 vote
0 answers
392 views

Can I interpret Grub2's post-MBR gap?

While setting up a RAW disk image for use in a QEMU-based virtual machine, I became frustrated because QEMU would load GRUB but then GRUB would not load a menu of OSes to boot into. I've come to the ...
Huckle's user avatar
  • 1,025
3 votes
1 answer
3k views

CentOS 7 stuck at grub prompt after upgrading Kernel

I tried to upgrade the Kernel using YUM and when I ran [root@AFIBAMBOO bin]# grub2-mkconfig -o /boot/grub2/grub.cfg No path or device is specified. Usage: grub2-probe [OPTION...] [OPTION]... [PATH|...
anwar ul hasan's user avatar
1 vote
1 answer
6k views

Failed finding GRUB drives of recently installed distros on another drive, edit device.map?

I am running Linux Mint 19.1 on a Samsung 860 EVO 500 GB (dev/sdb) along with Windows 10 on it and recently added a Crucial MX500 1TB (dev/sda) to try out and use more distros, both of them are ...
user avatar
0 votes
2 answers
1k views

Setting Kernel parameters when grub.cfg is on another distro

My setup is: -Windows 10 on a M.2 SSD -Ubuntu 18.04 on a normal ssd (sdb) -Arch Linux on sdb as well but on different partitions I first installed ubuntu with grub and later added arch linux ...
Kaiton's user avatar
  • 9
3 votes
1 answer
6k views

Using Label in grub on Debian 9

I installed my server with Debian 9 and Grub with a LABEL. In my /etc/fstab I see My label as followed: LABEL=root / ext4 errors=remount-ro 0 1 /dev/sr0 /media/cdrom0 udf,...
Noob's user avatar
  • 161
1 vote
0 answers
1k views

ARCH grub-mkconfig doesn't do anything

i tried installing ARCH and everything seems to work pretty fine. I followed this installation for the most part (https://gitlab.com/jsherman82/notes/blob/master/arch.md) But i seem to have a problem ...
Michael Schmid's user avatar
1 vote
2 answers
2k views

I can't make a GRUB config

A few weeks ago, I accidentally updated my kernel, and out of nowhere I got these strange pixelated lines all over my screen. So, I decided to try and use the linux-lts kernel. But, when I tried to ...
Gosh Darn's user avatar
1 vote
0 answers
2k views

grub2-mkconfig creates grub2-efi.cfg different from the existing one, but why?

On Fedora 29 on a machine with UEFI hardware. Trying to generate a new /etc/grub2-efi.cfg. Dry run first! Change nothing in /etc/default/grub. (Actually wanted to remove rhgb quiet from the ...
David Tonhofer's user avatar
0 votes
1 answer
4k views

/etc/default/grub: line 60: terminal_output: command not found [closed]

I am using centos7 when I run command sudo grub2-mkconfig -o /boot/grub2/grub.cfg I get error /etc/default/grub: line 60: terminal_output: command not found The lines after 60 of /etc/default/grub ...
Prvt_Yadav's user avatar
  • 5,902
2 votes
3 answers
14k views

Configure separated GRUB to run Linux from LVM ddrescued device

I got new 120GB SSD and I want to restore my Linux Mint from my ddrescued /dev/mapper/mint--vg-root I splited SSD to 500MB sdb1 Ext4 and 119GB sdb2 LVM as it was before crash. Then I created mint-vg ...
serebuka's user avatar
4 votes
1 answer
4k views

Grub2 not finding windows partition

I have brand new laptop with windows 10. Using NVME ssd drive. I am trying to do multiboot using UEFI. For some reason, grub-mkconfig -o /boot/grub/grub.cfg is not finding my windows partition. I ...
dman's user avatar
  • 537