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
28
votes
4answers
28k 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 ...
22
votes
6answers
36k 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. ...
30
votes
4answers
55k 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. ...
3
votes
2answers
7k 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 ...
27
votes
2answers
334k 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 ...
40
votes
10answers
65k 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 ...
9
votes
2answers
110k 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.
4
votes
3answers
17k 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 ...
23
votes
4answers
79k 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 ...
11
votes
6answers
28k 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-...
10
votes
2answers
21k 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 ...
52
votes
6answers
68k 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 ...
42
votes
16answers
265k 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 ...
56
votes
2answers
56k 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 ...
40
votes
5answers
63k 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?
16
votes
1answer
10k 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>
10
votes
1answer
24k 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 ...
6
votes
5answers
25k 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 ...
4
votes
3answers
10k 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 ...
4
votes
2answers
13k 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'...
1
vote
2answers
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 ...
31
votes
1answer
46k 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 ...
18
votes
2answers
36k 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 ...
14
votes
3answers
35k 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 ...
18
votes
5answers
32k views

Arch GRUB asking for /run/lvm/lvmetad.socket on a non lvm disk

I am running this script based on the ArchWiki setup procedure. It fails on the GRUB configuration step I am using the archlinux-2013.12.01-dual.iso inside VMware Player with 1 GB ram, sda is 810 MB....
22
votes
5answers
52k 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?
14
votes
3answers
8k 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 ...
11
votes
2answers
77k 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" ...
4
votes
1answer
14k 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, ...
9
votes
2answers
14k 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) ...
8
votes
1answer
5k 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, ...
5
votes
1answer
5k 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 ...
18
votes
5answers
110k 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 ...
8
votes
1answer
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 ...
7
votes
1answer
1k views

How can I prevent someone from gaining root access through the bootloader?

On Ubuntu 10.10 I can login as root without the root password by replacing ro quiet splash with rw init=/bin/bash. How can I secure my machine and disable this backdoor?
7
votes
3answers
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 ...
2
votes
1answer
11k 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 ...
1
vote
1answer
1k 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 ...
7
votes
1answer
11k 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 (...
4
votes
2answers
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 ...
3
votes
4answers
9k 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 ...
3
votes
2answers
3k 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 ...
1
vote
2answers
4k 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 ...
0
votes
3answers
3k 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 ...
7
votes
5answers
11k 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 ...
7
votes
2answers
25k views

Ubuntu 14 server edition, how to boot into single-user mode?

I'm new in Linux and just have basic knowledge about it. In the past I've tested to boot into single-user mode in some Linux distribution by just append " single" to the boot command. However, I don't ...
5
votes
1answer
17k 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 ...
4
votes
2answers
334 views

How do I make sure grub is only installed once?

I currently have Windows on one partition, and Ubuntu on another. I'd like to install Quimo, and possibly Mint and/or Lubuntu as well. How do I make sure that only Ubuntu has Grub, and that the ...
2
votes
3answers
8k views

No matter how many times I try re-installing Linux Mint, I get a GRUB error. How do I fix it?

I have been trying to install Linux Mint 16 Petra using a removable USB thumb drive on my laptop, and after multiple attempts, I get the same error every time: error: file '/boot/grub/i386-pc/normal....
2
votes
2answers
576 views

Prevent GRUB from showing up by default?

Whenever I boot on Ubuntu, I see the entire GRUB menu by default. Is there a way I could make it simply auto-boot if uninterrupted within X seconds? I remember that this was the case on previous ...