Questions tagged [grub2]

GRUB2 is the second revision of the GRand Unified Bootloader, with versions numbered 1.9x and 2.yz.

Filter by
Sorted by
Tagged with
32 votes
4 answers
32k views

Is GRUB the best bootloading solution? Is there an easier alternative?

I have had some rather bad experiences with GRUB2. I could say (and have said) some nasty things about its design and development process. I especially dislike its means of update: for whatever reason ...
user avatar
29 votes
7 answers
61k views

How can I prevent Windows from overwriting GRUB when using a dual-boot machine

I've been reading a lot about dual-booting, and it seems as easy as loading Windows and then loading Linux with GRUB, but everybody says that Windows loves to trash GRUB when it gets the opportunity. ...
user avatar
22 votes
3 answers
270k views

grub error: you need to load kernel first

I'm installing Debian 9 on an HP ProLiant DL180. When I boot from a USB drive, it opens grub2 and when I type boot it gives an error : you need to load kernel first.
user avatar
  • 387
84 votes
15 answers
545k views

GRUB starts in command line after reboot

I installed Linux Mint on my laptop along with a pre-installed Windows 10. When I turn on the computer, the normal GRUB menu appears most of the time: But after booting either Linux or Windows then ...
user avatar
3 votes
2 answers
10k views

Why booting into rescue mode menu doesn't do anything?

When I enter into grub menu, I get two entries : CentOS Linux (3.10.0-514.21.1.el7.x86_64) 7 (Core) CentOS Linux (0-rescue-e1ac24cbe9f94f2caa228d77e027be8b) 7 (Core) When I boot into the second line ...
user avatar
  • 1,165
55 votes
11 answers
92k views

How can I tell GRUB I want to reboot into Windows—before I reboot?

I have a dual boot Linux/windows system set up, and frequently switch from one to the other. I was thinking if I could add a menu item in one of the menus to reboot directly into windows, without ...
user avatar
  • 883
30 votes
2 answers
356k views

Recovering from 'grub rescue>' crash [closed]

Originally posted to AskUbuntu.com ... AskUbuntu has adopted a policy of closing questions about EOL (End Of Life) versions. There's a vocal contingent to remove them as well. To prevent ...
user avatar
  • 2,105
30 votes
4 answers
58k views

Installing Grub 2 on a USB flash drive

MultiBootISOs is a tool that let you install Grub on a USB flash drive. I really like it because it lets me boot from ISO files and let me put a bunch of ISOs on my USB and choose which one to boot. ...
user avatar
  • 19.4k
4 votes
3 answers
19k views

Cannot boot Linux Mint after installing Windows (First) and Linux Mint (Second)

I can't boot my Linux Mint after installation of Windows. First I installed Windows and then installed Linux Mint with the option of "Install along with windows". But after I completed the Mint ...
user avatar
59 votes
6 answers
87k views

Why does Linux allow ‘init=/bin/bash’?

I recently found out that if I edit GRUB before booting and I add rw init=/bin/bash I end up with a root shell. Being in a condition that I want to understand everything I would like to know why this ...
user avatar
61 votes
2 answers
67k views

How to know if I'm booting using UEFI?

I was searching, but didn't find an obvious way to know if GRUB is using UEFI in the system boot, or the BIOS compatibility mode, or a full fledged BIOS. I found only Windows methods. Is there ...
user avatar
  • 33.8k
23 votes
4 answers
86k views

Windows boot option is missing after installing CentOS 7, how can I get it back?

I recently installed CentOS 7 on a machine that has been running Windows 7. I did a dual boot installation and installed CentOS in a partition. But when I boot up my machine, it only gives me two ...
user avatar
  • 5,074
10 votes
6 answers
33k views

Add FreeBSD to GRUB2 boot menu

I have Gentoo x64 installed with Grub2 on my MBR drive. Today I installed FreeBSD x64 9.2. Now I'm in Gentoo and trying to add FreeBSD to grub2 menu list. grub2-install /dev/sda os-prober grub2-...
user avatar
  • 3,199
10 votes
2 answers
24k views

How do I prevent GRUB from using/starting any graphical UI?

I have a problem with an older Laptop (Fujitsu Siemens LifeBook S6010, to be precise) and an Ubuntu (10.10, Xubuntu desktop) installation (fresh install). During installation the graphics hardware ...
user avatar
  • 999
1 vote
1 answer
329 views

stuck at busy box, attempt to boot old linux at another partition

I have, and able to boot with arch Linux with kernel 5.10.34 normally. I have older Linux (linuxmint 20.1) on my sda6 with kernel 5.4.0-72 and 5.8.0-50. I am using grub-customizer. Kindly not answer ...
user avatar
51 votes
5 answers
86k views

Can GRUB font size be customised?

I would like to reduce the size of the font of GRUB boot loader. Is it possible and so how?
user avatar
  • 3,477
17 votes
1 answer
12k views

mistakenly deleted /boot folder and rebooted

I mistakenly deleted the /boot folder from my filesystem, rebooted, and all I get now is this: error: file '/boot/grub/i368-pc/linux.mod' not found. grub rescue>
user avatar
16 votes
3 answers
49k views

Grub installation failed

I had a good running installation of Debian Jessie, but then I ran apt-get update && apt-get upgrade && apt-get dist-upgrade. And then after rebooting, it came directly to the BIOS. I ...
user avatar
7 votes
2 answers
26k views

Grub not loading config file or booting into linux automatically

I was trying to dual boot elementary os with windows on my laptop (Asus Zenbook UX305). To do that I shrank the windows partition using the windows disk manager, and then used the Elementary installer'...
user avatar
12 votes
2 answers
26k views

GRUB and LILO both fail to install to NVMe hard disk when installing Debian

I'm trying to install 64-bit Debian stable on a Lenovo Thinkpad. When I get to the installation step that installs the bootloader, I get this message: An installation step failed. You can try ...
user avatar
  • 1,341
17 votes
13 answers
99k views

not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I had Windows 10 and Manjaro on my laptop and everything was OK. Last day, I've installed Kali Linux in another partition. It has installed correctly and it works fine. But the problem is when I want ...
user avatar
6 votes
5 answers
27k views

Fedora won't boot after installing Nvidia drivers

I followed this tutorial about Nvidia drivers installation and I accidentally forget to do 5th point (disabling nouveau drivers), so now I can't boot my system. I know I am idiot but is there anything ...
user avatar
4 votes
3 answers
11k views

Grub - boot debian iso file from ntfs partition and install it

I have problem installing debian directly from hard drive. Say, i have a logical partition /dev/sda5 and there is debian DVD iso file located in (hd0,5)/iso/debian-8.0.0-amd64-DVD-1.iso with initrd ...
user avatar
  • 583
1 vote
2 answers
3k views

GRUB2 security vulnerability: pressing backspace 28 times: What are my risks? What should I do? [closed]

There have been reports yesterday about a new security vulnerablity: Lucian Constantin (2015-12-16). Vulnerability in popular bootloader puts locked-down Linux computers at risk. CSO Online. Patrick ...
user avatar
34 votes
1 answer
50k views

Can GRUB2 share the EFI system partition with Windows?

I have an existing Windows 7 GPT installation, which already has a EFI System partition. I am now trying to install a Linux on a separate harddisk, which is also GPT formatted. I did not find any ...
user avatar
  • 3,611
20 votes
2 answers
39k views

How to check on which drives grub2 has actually installed an MBR?

I'm on a Debian/Squeeze system (with a history going back to at least Woody) which was upgraded to grub2 as part of the Squeeze upgrade. All works well, but I'm about to mess with the disk ...
user avatar
  • 675
20 votes
10 answers
137k views

Grub error: file '/grub/i386-pc/normal.mod' not found?

I recently install arch (hopefully successfully) on my machine. When I went to reboot however I had a problem. I got a black screen with text saying Grub loading. Welcome to GRUB! error: file '/grub/...
user avatar
  • 499
8 votes
1 answer
21k views

Looking for the right way to rename the GRUB boot entries

I am taking about the naming of existing/default GRUB boot entry. Currently I've the following options at GRUB screen: Trisquel GNU/Linux Advanced options for Trisquel GNU/Linux Trisquel GNU/Linux, ...
user avatar
  • 21.6k
7 votes
3 answers
22k views

(UEFI) Chainloading GRUB from GRUB

Terminology: ESP = my FAT32 EFI partition. I want to: Have a self-contained GRUB install on my ESP that chainloads another GRUB bootloader on my distro root filesystem (/). I currently have several ...
user avatar
  • 420
25 votes
6 answers
166k views

grub-probe: error: failed to get canonical path of /cow

I'm trying to re-install grub from a USB drive. I run the following: sudo mount /dev/sda6 /mnt sudo grub-install --root-directory=/mnt /dev/sda I get the following error: grub-probe: error: failed ...
user avatar
  • 727
23 votes
5 answers
55k views

What is the difference between LILO and GRUB?

I am running a web server under Debian and I currently have GRUB installed. Should I consider using LILO instead of GRUB? And what are the advantages of each?
user avatar
14 votes
3 answers
9k views

Chainload two Grub2 installations

This is really getting me down. I have Gentoo and Ubuntu, both with Grub2. Gentoo has a dedicated /boot partition, while Ubuntu does not. I have a menuentry in Gentoo's /etc/grub.d/40_custom to boot ...
user avatar
  • 19.4k
11 votes
2 answers
84k views

How Do You Pass VGA/VESA Modes with GRUB2?

One of my machines has a 3 TB HD setup to triple boot into Mint 14 (Ubuntu 12.10 variant), Slackware 14.1 and Arch Linux. The HD is formatted using the GPT/Guid system. The Grub2 technically "belongs" ...
user avatar
  • 2,181
9 votes
2 answers
16k views

How does grub2 load the kernel from an LVM volume?

Grub2 is able to load the kernel even if /boot is placed on an LVM volume. To use this feature one needs to add insmod lvm (the module can be on the grub bios partition that is not on an LVM volume) ...
user avatar
  • 213
8 votes
1 answer
7k views

How to install Linux distro to a second hdd from within a running Linux Desktop Environment?

More specifically, I am running Fedora18 on my main HDD. I have a second HDD in the "UltraBay" slot of my ThinkPad W520--eSata connection. Is there a possibility to avoid creating a LiveCD/USB, ...
user avatar
  • 2,921
7 votes
2 answers
8k views

How to create a ZFS zpool that GRUB can read

The Arch Linux ZFS wiki page explains grub-compatible pool creation, as does this page about booting Fedora, but I have not been able to create a pool that is readable by Grub. The Arch Linux wiki ...
user avatar
  • 6,648
4 votes
8 answers
13k views

Syntax error in grub.cfg on update-grub (Grub 2) (memtest86+)

When I run update-grub or I try to reinstall it, I get a "syntax error". The output is somewhat like this: error: syntax error. error: Incorrect command. error: syntax error. error: line no: 262 ...
user avatar
  • 1,187
8 votes
5 answers
17k views

ntldr.mod missing from GRUB2

I use Debian Wheezy on EFI motherboard and need ntldr module in GRUB2 to load bootmgr of Windows 7 installer, because the way it starts on its own (apparently, using the boot sector of the USB flash ...
user avatar
  • 209
8 votes
1 answer
1k views

Is there any way to boot from iso while running system from live disk?

This is bit complicated question let me explain what is expected: I know that we can add GRUB menuentry with location of ISO file and boot from ISO using GRUB entry. (i.e this method) But suppose ...
user avatar
  • 21.6k
7 votes
3 answers
11k views

How to make grub work again after drive reassignment?

My config: opensuse 11.4, boot partition at pendrive and hard drives with partitions sda1, sda2, sdb1. Today I changed chassis for my computer, and by mistake I attached second drive to SATA 3 ...
user avatar
  • 5,686
4 votes
1 answer
15k views

update-grub vs. grub-install?

Some examples found online say that update-grub should be run AFTER grub-install. Others reverse the order. Which is correct? If I have two Linux installations (one on sda and one on sdb), if I run ...
user avatar
  • 61
1 vote
1 answer
2k views

Creating A Standalone Bootable USB Drive

I Have a 16GB USB drive. I found out that multiple partitions on USB drives are possible. I need to make two partitions, one that contains Linux OS and the other one for storing files. A system like ...
user avatar
7 votes
1 answer
29k views

Two linux distributions, grub does not detect other one

I have two linux distributions installed on my PC, linux Mint and Debian, both having separate boot partitions and both are installed on luks encrypted volumes. Debian was installed first, then I ...
user avatar
  • 213
7 votes
1 answer
12k views

UEFI install (14.04) boots to GRUB command prompt, no GUI

I just installed zorin 9 core (14.04) on my Hard-Disk in UEFI mode. But, when I boot, all that comes up is a GRUB2 command line. I've searched for solution and came up with this command configfile (...
user avatar
6 votes
4 answers
16k views

How to change Grub 2 default permanently?

Fedora now uses Grub 2. Whenever it does a kernel upgrade, it loses my default boot option (Windows). How can I fix this? I resent Grub 2 over this, because the old Grub respected my choices.
user avatar
4 votes
2 answers
4k views

Iso booting with grub2

I am using Linux Mint 10, and it is installed on sda8. I edited /etc/grub.d/40_custom: #!/bin/sh echo "Adding 40_custom.">&2 exec tail -n +3 $0 # This file provides an easy way to add custom ...
user avatar
  • 141
3 votes
2 answers
4k views

Linux on Hard Drive Partition, Bootloader on USB Flash Drive

How can I use a USB flash drive to boot Linux from a partition on (another) hard drive? I'm trying to install Linux on an encrypted partition on the hard drive (using LVM on LUKS). Since /boot must ...
user avatar
3 votes
4 answers
10k views

After reinstalling Linux Mint, Windows 7 does not boot

Final edit: I tried each and every single fix on the question, but I ended up just restoring an image I made a year ago of the freshly installed system using clonezilla. After that, I ran rescatux to ...
user avatar
1 vote
2 answers
6k views

What is the chroot command used for when resetting a password in RHEL/CentOS 7?

I'm trying to wrap my mind around exactly how password reset procedures work in CentOS/RHEL 7 and I'm missing some fundamental knowledge. In several different examples I see that chroot /sysroot is ...
user avatar
  • 8,289
0 votes
3 answers
10k views

new Debian install will not boot

I have just installed Debian 10 (Buster). It worked fine, until I did a reboot. Now it will not boot. I re-loading installer. When I try to re-install grub, it wants me to re-partition the disk (even ...
user avatar