Questions tagged [grub2]
GRUB (GRand Unified Bootloader) is a bootloader package to load operating systems. GRUB2 is a rewrite, and the dominant version since 2009.
163
questions
1
vote
0
answers
22
views
Changes in grub.cfg custom Ubuntu 22.04 ISO not present on boot
I'm trying to follow instructions on how to make autoinstall Ubuntu ISO, but however I modify linux line in grub.cfg configuration file during customization of Ubuntu Server 22.04 ISO, modifications ...
1
vote
0
answers
43
views
How to boot debian from both drives from a MD-RAID1 with LVM
i use a debian box with a MD-RAID1 with two drives and a LVM.
My problem is that, obviously, i#m only able to boot from the first drive, but not the second.
root@myhost:/home/myuser# fdisk -l
Disk /...
0
votes
0
answers
71
views
Fixing LVM boot after disk clone
I have a NVME boot disk that was running low on space in my proxmox server. After using Clonezilla to clone the disk to another larger NVME things are unstable.
The boot disk has 2 Logical volumes on ...
0
votes
0
answers
260
views
Cannot boot on Arch Linux after modifying kernel parameters with GRUB
Looking for a way to set my backlights on my laptop running Arch Linux (and Windows on a dual boot), I edited the /etc/default/grub file to change a kernel parameter. Here is what I changed:
# before ...
0
votes
0
answers
84
views
Detect the boot device (UEFI and GPT)
I'm a little confused, because I can't find a solution to the problem with simple methods or tools.
Situation: I need to identify the disk-device (not a partition) where the system is booted from (or ...
0
votes
0
answers
208
views
How to setup background image in grub of Fedora 37 xfce spin?
I installed Fedora 37 XFCE spin on my Lenovo Yoga 4k laptop.
The Grub options during the startup looks so small.
So I installed sudo dnf install grub-customizer to easily change the grub config ...
2
votes
1
answer
517
views
Fix kernel issues in rescue mode
I have updated the kernel in a VPS Centos 7, and after rebooting, the machine is not responding anymore, including with SSH.
I connected to the VPS via a temporary rescue linux machine from where I ...
2
votes
1
answer
108
views
GRUB fails to start kernel after net_dhcp
I originally ran into this problem trying to redeploy a machine using MAAS, but I can reproduce it just with the already-installed OS and GRUB, with Ubuntu 20.04. The machine is set up for UEFI boot.
...
1
vote
0
answers
23
views
is it possible to go back one level depends on some condition in grub menuentry?
It looks like it is not possible to abort a menuentry content, for example:
submenu test1 {
menuentry test2 {
echo "play1"
cmd1 # even this failed, it still continue to next line
...
1
vote
0
answers
101
views
Can grub2 chainloader a efi application on a filesystem other than FAT32?
I have a efi application in XFS partition. (hd0,gpt2)/test/EFI/BOOT/BOOTX64.EFI I try to chainloader it by:
set root="(hd0,gpt2)/test"
chainloader /EFI/BOOT/BOOTX64.EFI
But chainloader ...
0
votes
0
answers
16
views
How can I find the full list of acceptable `boot=` option of kernel?
I usually see options like boot=casper or boot=live. However, I cannot find anything describe the actual meaning of this option and I cannot find any piece of code handle this option at all. From ...
0
votes
0
answers
50
views
Booting from different LVM snapshots
I am setting up a system for testing software installations automatically. For that, I created an LVM snapshot of a fresh Debian installation. In this snapshot, I want to automatically install, ...
1
vote
0
answers
198
views
grub2 font advice doesn't work
I'm running Fedora 31 on a Lenovo T470p, with GNU GRUB version 2.03 platform x86_64-efi .
I wish to have a far larger font.
As many, many suggestions on the internet advise:
1] I've added the ...
0
votes
1
answer
491
views
Fedora 31 Grub2 configuration change isn't being applied
I've changed GRUB_TIMEOUT=-1 in my /etc/default/grub because I want the grub boot loader to wait forever for me to choose my operating system.
Most of the internet says to run update-grub after ...
1
vote
0
answers
959
views
Grub error with tpm module in Fedora
I have a problem booting my fedora 36 (in version 35 the same thing happens to me and I have tried to reinstall from 0 with the same result). When I boot the grub I get this error.
error ..... tpm.c:...
0
votes
0
answers
83
views
Updating menu entry in grub 10_linux file
I have a bash script from which i want to update class variable with --unrestricted menu entry in the grub bootloader 10_linux file.
So far i try simple search and replace using the sed command to do ...
1
vote
1
answer
783
views
How to recover from the GRUB losing its entries and faced with only "grub> _" at boot?
I performed a system upgrade from CentOS 7 to AlmaLinux 8 rather successfully (as noted here). During the process something strange happened and GRUB lost its boot entries entirely and my limited ...
0
votes
1
answer
1k
views
dpkg: error processing package linux-image-4.15.0-175-generic (/boot/grub/menu.lst not found)
I have this issue on Ubuntu 18.04 Server, probably because /boot/grub/menu.lst doesn't exist:
root@myserver:~# apt install -f
Reading package lists... Done
Building dependency tree
Reading ...
0
votes
1
answer
420
views
How would I configure grub to skip the menu or set a timeout?
I was able to successfully configure PXE and pressed to get an entirely automated install running except for 1 issue: The GRUB menu pauses indefinitely until the user selects an option.
I've got my ...
0
votes
2
answers
817
views
Tell Linux/GRUB to start iPXE on next boot?
I've just discovered the wonder that is iPXE.
Im running various versions of Debian on many different computers, and would like to remotely tell them to reboot into iPXE, and have iPXE automatically ...
2
votes
0
answers
632
views
How to prevent changes of GRUB_ENABLE_BLSCFG in /etc/default/grub
With Rocky Linux 8.4 (clone of RHEL 8.4) in /etc/default/grub I have GRUB_ENABLE_BLSCFG=false
A “dnf update” that included grub2-tools changed it back to GRUB_ENABLE_BLSCFG=true
Is there some way to ...
2
votes
0
answers
736
views
Changing your kernel in AWS appears to break boot sequence (grub config issue?)
Using Ubuntu 20.04 on AWS (ec2), I wanted to change my kernel from AWS to a generic one. When I try it the suggested way with changing the Grub Config, it stops the machine.
This is because Jibri (...
0
votes
0
answers
331
views
Why does grub's os-prober add entries with `linux` instead of `linuxefi`
On my system, I have two copies of CentOS 7 installed, and one copy of Windows 10 Pro. Every system is bootable and works correctly, and is fully up to date (kernels, packages, the works).
When I run ...
0
votes
0
answers
215
views
Properly Configuring Grub for a Two-drive raid1 to Support Boot After a Drive Failure
Edit:
So, I think the question still applies below, but I realized that the system is actually booting on the second drive, it's just missing /home, /boot and /etc/fstab. I am sure there is more ...
0
votes
1
answer
922
views
ESXi installation PXE boot with GRUB on BIOS (not EFI)
all documents mention syslinux/pxelinux as a way to pxeboot ESXi installation, but I'd like to stay with GRUB 2. How to do that?
I'm able, of course, to load GRUB 2 via network (i386-pc/core.0 for non-...
0
votes
0
answers
88
views
How to avoid password change when boot GRUB in debian 10 system?
Per this post,I know it's easy to change password when boot GRUB.
When I read set debian grub password ,I run command as below:
cat << EOF >> /boot/grub/menu.lst
timeout 3
password hackme
...
1
vote
1
answer
308
views
Urgent help needed with GRUB centos
Today I had an email of OVH saying my server was hacked (it was nothing more than a wordpress plugin of a client messing around) but it ended with my server forced to Rescue Mode and I'm not able to ...
0
votes
1
answer
2k
views
grub rescue on Ubuntu 18.04 with btrfs partition
I have a small server (HP ProLiant MicroServer Gen8) running Ubuntu 18.04 64 bit with the latest HWE generic kernel (5.4.0.74.83~18.04.67); it has two SATA drives, GPT partitioned but booting in ...
0
votes
0
answers
31
views
Reshape root disk from raid1 to raid5 on live system
I have server with CentOS 7 and grub2.
It is in hosting company so I can not reinstall it.
Server root / is installed on (mdadm) RAID1. Size is 4 TB, but is made somehow without EFI.
These is small /...
1
vote
0
answers
254
views
Apache2 stopped working after upgrade to v2.4 ((38)Function not implemented: AH00141)
I was happily running apache2 and mysql on a Ubuntu 16.04 server with no problems, but yesterday I noticed that there were a bunch of updates available and I installed them using apt-get.
One of the ...
0
votes
0
answers
120
views
Virtualbox not recognizing GRUB
I ripped a Linux Mint partition into a file using the dd command:
sudo dd if=PART_PATH of=OUTPUT_PATH/ubuntu.bin
Then I converted it into a *.vdi
VBoxManage convertdd PATH_TO_ubuntu.bin ubuntu.vdi --...
1
vote
0
answers
714
views
Grub2-install: warning: Couldn't find physical volume in Centos 7
After replacing the disk with raid 1, I have this problem:
grub2-install --recheck /dev/nvme0n1
Installing for i386-pc platform.
grub2-install: warning: Couldn't find physical volume `(null)'. Some ...
1
vote
1
answer
617
views
Create GRUB Entry for Booting into CentOS Installation Media
Normally when installing CentOS 7, you download the ISO, write it to a thumb drive and boot it. However, I have a unique scenario where I'd like to be able to place the CentOS 7 installation files on ...
0
votes
0
answers
200
views
How to move /boot and / to different disk
I have Debian server with multiple HDDs.
/, /home/, swap and others are LVM Logical Volumes.
/boot is on a small partition at the beginning of one of the physical HDDs.
fstab uses UUID for /boot and /...
0
votes
0
answers
216
views
GRUB2 theme looks broken after update (2.02->2.04)
Coming from Grub 2.02, and upgrading to 2.04, adding it to our TFTP server for PXE booting; I built the new grub2 image as in:
/tmp/rebuild_grub/bin/grub2-mkimage -c ./grub-embedded.cfg -p '(tftp)/...
0
votes
0
answers
68
views
Detect different keys on GRUB2 menu
I have a GRUB configuration that looks like the following, where I would like to detect different key inputs so I can act accordingly, but this does not work by default:
echo ""
echo -n &...
1
vote
1
answer
1k
views
Move root partition from one disk to another in Debian 10
I have installed Debian 10 on a hard disk in a partition in a logical volume(name: deb10). Now I want to move the running installation to a logical volume on a SSD(name: deb10ssd).
I copied the files ...
1
vote
1
answer
513
views
Auto boot degraded RAID1 on Debian 10 (Buster)
I want my server to boot without manual intervention on degraded RAID1 from second drive on Debian 10 (Buster).
It boots when I detach the second hard disk but it doesn't boot when I detach the first ...
0
votes
1
answer
1k
views
Wrong grub2 prefix when booting over network
I have dnsmasq in proxy mode, serving pxe service and tftp server using this config:
port=0
log-dhcp
log-queries
log-facility=/var/log/dnsmasq.log
dhcp-range=192.168.0.0,proxy
enable-tftp
tftp-root=/...
0
votes
2
answers
166
views
CentOS 7: small smiley face on boot?
I've got a problem with a CentOS 7 dedicated server. I've had it for years, and never had any problems with it until now.
I did a yum update the other day, and then rebooted the machine, and it ...
0
votes
1
answer
4k
views
How to get rid of GRUB2 error "failure reading sector 0xb30 from `fd0'" on HP server
When I boot into my HP ProLiant DL120 G7 server's GRUB2 rescue shell, I get the following output:
error: failure reading sector 0xb30 from `fd0'.
error: failure reading sector 0x0 from `fd0'.
error: ...
0
votes
3
answers
161
views
unattended memtest: is it practical?
I will be building a medium scale cluster (20 nodes, expanding later) and for various reasons, using commodity hardware should give me a significant cost saving (even allowing for shorter operational ...
0
votes
0
answers
339
views
No boot in Devuan after installation - EFI Shell
I installed Devuan ASCII on a virtual machine on VirtualBox. Installation went smooth, but after installation I get the following EFI shell
See the image
But any attempt to enter a BLK* device ended ...
3
votes
0
answers
5k
views
Booting a squashed filesystem from ISO
I am trying to create a UEFI bootable CD ISO with a squashed filesystem from a virtual machine, which I provisioned with the stuff I need.
To explain:
I use packer and a kickstart file to install ...
2
votes
1
answer
713
views
In CentOS 7, is there a way to specify which block devices should be tuned with the scheduler (or ELEVATOR)?
In CentOS 6, there was /etc/tune-profiles/my-server/ktune.sysconfig with this text(I'm referring to the comments that explain what the code is doing):
# This is the I/O scheduler ktune will use. ...
0
votes
1
answer
794
views
Centos 7 no input in grub serial console
I use serial over lan console on intel S1200V3RPL server board. It worked nicely, but filesystem got corrupted and I had to reinstall. I've setup serial console the same way,but there is no input in ...
1
vote
0
answers
1k
views
Chainloading syslinux using grub2
I created a syslinux/isolinux hybrid CD iso to boot either legacy bios or eufi depending on what is needed. The legacy bios part works well and has worked for many years. I am using the newest (6.0.3) ...
2
votes
1
answer
222
views
Are my EFI partitions mutually bootable? How to interpret the output of efibootmgr -v
I have two GPT formatted disks both starting with EFI partitions and followed by a single physical raid partition. I installed ubuntu-server 16.04 with software raid over these two raid partitions and ...
0
votes
1
answer
2k
views
Ubuntu 18.04 server failed grub install
I am trying a fresh install of Ubuntu 18.04 server, without an internet connection (not Live) on my Dell PowerEdge R640. The machine came with a Boot Optimized Storage SSD (RAID 1), which is where I'm ...
0
votes
1
answer
3k
views
Centos server gets stuck on grub prompt
I have a server on OVH with Cpanel which has 2 x 2TB partitions and its lsblk command output looks like this. http://prntscr.com/nz4xd2
A few days back I ran some upgrades and after rebooting my ...