Questions tagged [grub]

This tag is ambiguous: use grub2 or grub-legacy as appropriate.

GNU GRUB (GRand Unified Bootloader) is a bootloader. It was originally intended as a common bootloader for various new operating systems conforming to the multiboot specification. Nowadays, many Linux distributions have adopted GRUB as their default bootloader.

There are two major versions of GRUB, with incompatible configuration files:

  • GRUB1, now known as GRUB Legacy, with version numbers up to 0.97;
  • GRUB2, with version numbers 1.90 and above.

Frequently Asked Questions:

External links

1579 questions
39
votes
2 answers

A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified

I am using 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux Debian GNU/Linux 7.1 (wheezy) Release: 7.1. I typed "sudo apt-get upgrade" and hoped for the best (I updated all my packages just before doing that with "sudo ap-get update"). I am…
Perlnika
  • 647
14
votes
3 answers

grub-install : command not found

I had Windows 8.1 and Kali Linux installed in an extended partition. For some reason, I only formatted the partition where Windows was installed and re-installed. Now it only boot into Windows and doesn't show grub. I'm using a live USB and tried to…
10
votes
5 answers

Let grub re-scan disks?

I placed a entry like this in grub4dos, rootnoverify (hd1) chainloader +1 boot But sometimes when I plug in my USB key too late, grub will not detect this usb key, is there anyway to let grub re-scan disk list? I need to know for both grub0.9X and…
daisy
  • 54,555
5
votes
2 answers

Force GRUB to boot into a specific kernel/OS?

I'm using both a Bluetooth mouse and keyboard, and frankly it's really annoying having to go grab a physical keyboard in order to boot into another kernel version or into Windows on another partition. Is there a way for me to tell GRUB that when it…
Naftuli Kay
  • 39,676
5
votes
1 answer

How to avoid interference of os-prober with an encrypted partition

On a linux server, I have dedicated a large partition, identified as /dev/sdb1, to an encrypted filesystem. I'm using losetup /dev/loop0 /dev/sdb1 cryptsetup -c aes -h sha512 create crypto /dev/loop0 mount /dev/mapper/crypto /var/crypto/db/ and a…
3
votes
2 answers

Deleted GRUB root directory. How do I reinstall grub?

I have the following partition structure /dev/loop0 squashfs /dev/sda1 system reserved ( ntfs ) /dev/sda2 ntfs ( windows partition ) /dev/sda3 ntfs /dev/sda5 ntfs /dev/sda6 ext4 I have Ubuntu installed inside windows. I formatted /dev/sda6…
3
votes
2 answers

Is it necessary to chroot while doing grub-install in recovery mode?

Just want to know for understanding purpose. What is the relevance of chroot, when you can anyways do --root-directory or --boot-directory or --efi-directory with grub-install at the time of executing grub-install from a recovery CD? Or you can use…
3
votes
1 answer

mount -o devpts pts /mnt/linux/dev/pts

When I install kali linux found grub can't install. Then I'm using live USB tried to reinstall grub: grub-install /dev/sda I get this error: grub-install: command not found I am following this answer until 5) mount -o devpts pts…
user261526
3
votes
1 answer

grub error: attempt to read or write outside of disk 'hd0'

I am getting the following grub error: attempt to read or write outside of disk 'hd0'. Is there any way to fix this error? I can't boot into Debian because of this. Partitions: SCSI1 (0,0,0) (sda) - 250.1 GB ATA WDC WD2500BEVE-0 #1 Primary 249.0…
Grey
  • 143
2
votes
1 answer

grub "out of memory" error due to too many disks?

I'm runnnig Debian Stable (Debian 12, Bookworm) on a new Dell PowerEdge R760xd2 server with 24 disks and 256 GByte of RAM. The initial installation (including a reboot into the newly installed OS) worked fine, but now grub fails to start. error: no…
C-Otto
  • 407
2
votes
2 answers

Which command was used to install grub?

I need to re-install grub (to fix the boot-hole security issue). I don't want to make a mistake, and because I'm not very comfortable with grub, I ask myself if there is a way to find the grub-install command which was used to install the current…
2
votes
1 answer

Adding debian installed on LUKS partition to boot option

I have installed debian on two partitions on a single hard drive. One is on ext4 partition and the other is on luks partition. Recently I updated grub in the debian on ext4 partition. Since then the debian luks is not detected. What can I do to add…
physu
  • 199
2
votes
1 answer

Unable to set default entry in grub menu

I have a computer with two different Debian operating systems installed on it. I usually use the first installed one, but I'm not able to correctly set up grub to use that as the default option: every time I turn on my computer, the second…
LuxGiammi
  • 357
  • 1
  • 2
  • 13
2
votes
1 answer

Changing root to new hard Disk partition breaks grub

My root partition was on /dev/sda1 and I changed the root partition to /dev/sda2. I updated the entry in /etc/fstab with the UUID of /dev/sda2. But, I am not sure, how would the grub know that the root partition has changed to the new UUID i.e.…
2
votes
2 answers

location of grub boot loader in HDD

I want to know the exact location of grub boot loader inside HDD. I know grub-install /dev/sda to install grub but does that mean it install grub across whole HDD.?
Rajnish Kumar Soni
  • 1,047
  • 2
  • 13
  • 20
1
2 3 4 5