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.
166
questions
0
votes
1
answer
96
views
Grub showing "attempt to read or write outside of disk 'hd0'" error when running in a proxmox VM
After installing a Debian 11 in a proxmox VM (with packer), grub would fail to boot into the newly created VM showing the error attempt to read or write outside of disk 'hd0'.
When installing a VM ...
0
votes
0
answers
195
views
Linux network OS boot from grub bootloader ISO
I have an idea to boot the system with network files for automated installation of OS
I have created an ISO with gub-mkrescure with just a grub inside it, so when it boots the grub menu will appear ...
0
votes
1
answer
242
views
Grub2 Error grub-boot-success.service: Main process exited, code=exited, status=1/FAILURE
I'm running a VPS with Alma Linux 8.8.0 with WHM/cPanel and 60 or so users, multiple websites etc.
I'm regularly seeing these in the server 'messages' log:
Nov 16 11:39:01 ark grub2-set-bootflag[...
4
votes
2
answers
4k
views
Debian 12 (bookworm): Installing a software RAID 1 fails with grub error
For a while I have been trying to set up a new server system with a RAID 1 as boot source. That RAID consists of two 4TB Harddisks. So I boot from an USB stick that I have prepared with the ...
1
vote
0
answers
521
views
How to use grub as netboot menu with ipxe?
I am setting up a small office’s netboot solution. I have the machines configured to pxe boot an initial ipxe.efi nbp with an embedded ipxe script to chain request against a matchbox server for my k8s ...
0
votes
1
answer
273
views
pbkdf2 password on grub doesn't work on my Ubuntu 22.04 Vm
I installed a Ubuntu 22.04.3 LTS on a VirtualBox VM. After install process, I configured pbkdf2 as explained here https://help.ubuntu.com/community/Grub2/Passwords. I also verified grub.cfg after I ...
0
votes
0
answers
18
views
not possible run windows from other this after install grub
I have this disks
sudo fdisk -l
[sudo] password for grek:
Disk /dev/loop0: 91.69 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / ...
0
votes
0
answers
128
views
Grub2 unable to detect MBR disks
While adding a new SSD to my system I went to GPT / UEFI and installed new Ubuntu as well as grub2. Grub2 is working and is able to boot ubuntu/win bootmanager on this new SSD.
I'd like to boot my old ...
1
vote
1
answer
754
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
199
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
304
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
558
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 ...
2
votes
1
answer
996
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
242
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
55
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
135
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 ...
1
vote
0
answers
300
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
935
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
1k
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:...
1
vote
1
answer
2k
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
2k
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
703
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
1k
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 ...
3
votes
0
answers
986
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
1k
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
481
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
462
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
1k
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
108
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
2
answers
390
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
3k
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
33
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
319
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
203
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
891
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
977
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
261
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 /...
1
vote
0
answers
258
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
82
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
617
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
184
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
5k
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
207
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
432
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
6k
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
828
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
967
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) ...