Questions tagged [boot-loader]

A boot loader (aka bootstrap loader) is the program that loads up the operating system kernel (or another boot-loader), e.g., GNU GRUB, LILO, SYSLINUX, or rEFInd. Use this tag for questions about installing, configuring or trouble-shooting software that is used to load Unix-like operating systems. Questions about boot loaders on Android or iOS devices are generally off-topic and are better asked on android.stackexchange.com or apple.stackexchange.com.

When a computer is powered on, it first runs firmware code stored in its persistent/read-only memory. With personal computers, this firmware program is known as the power-on self-test (POST). The last action of the ROM-based boot-sequence is to load a boot-loader program from disk (or the network).

The boot-loader typically loads an operating system kernel and hands over execution to the kernel. In some situations, multiple stages of different boot loaders can be used where one boot loader hands control over to another; this situation is referred to as chain loading.

Related tags

  • – more general questions on the process of loading the OS
  • – a simple bootloader for booting Linux on PCs
  • – a more versatile boot-loader developed by GNU
  • GRUB Legacy is the first version of GNU GRUB
  • GRUB, the second version of GNU GRUB is a complete rewrite to replace the previous version
  • – suite of lightweight master boot record (MBR) boot loaders
  • – rEFInd is a boot manager for EFI and UEFI-based machines. Technically it’s not a boot loader since it doesn’t actually load an Operating System kernel.

Related links

Further reading

700 questions
102
votes
15 answers

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 rebooting, I GRUB starts in command line mode, as…
Antoine Aubry
  • 1,081
  • 2
  • 8
  • 10
46
votes
9 answers

What is the /boot partition really for?

I'm reading a relatively old text on Linux partitions and file systems (the LPIC 1 Certification Bible). It says: Some versions of the Linux boot loaders cannot access a kernel that is outside the first 1024 cylinders on a disk. By putting the…
SRYZDN
  • 1,069
  • 2
  • 11
  • 12
40
votes
7 answers

Why do most distributions chain UEFI and grub?

Most distributions install a additional boot loader on an UEFI system. UEFI itself is a boot loader, it offers a menu to select different operating systems or individual kernels. Furthermore, the UEFI settings can easily be altered with userspace…
Marco
  • 33,188
  • 10
  • 112
  • 146
35
votes
1 answer

"EFI\boot\bootx64.efi" vs "EFI\ubuntu\grubx64.efi" vs "/boot/grub/x86_64-efi/grub.efi" vs "C:\Windows\Boot\EFI\*"

I have installed Ubuntu 19 64bit alongside Windows 10 64bit and I found that I have 3 different EFI files in different locations: EFI\boot\bootx64.efi EFI\ubuntu\grubx64.efi /boot/grub/x86_64-efi/grub.efi What are the differences between these…
Yousha Aleayoub
  • 738
  • 2
  • 9
  • 21
34
votes
3 answers

What is the "Bootable flag" option when installing a distro?

Is the "bootable flag" needed in today's distributions? If not, then why is it still in the installers? What is it exactly?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
30
votes
3 answers

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. The problem is, this is a Windows tool, and I…
phunehehe
  • 20,030
  • 27
  • 99
  • 151
29
votes
2 answers

Why do embedded systems need device tree while pcs don't?

When booting a kernel in an embedded device, you need to supply a device tree to the Linux kernel, while booting a kernel on a regular x86 pc doesn't require a device tree -- why? As I understand, on an x86 pc the kernel "probes" for hardware…
MOHAMMAD RASIM
  • 460
  • 5
  • 11
29
votes
2 answers

Recovering from 'grub rescue>' crash

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 possible loss of this popular question (342335 views to…
DocSalvager
  • 2,143
  • 2
  • 25
  • 38
27
votes
1 answer

How does the kernel know it's resuming from hibernation, not booting?

When a Linux system hibernates and resumes from hibernation, I think that the kernel needs to know that it's resuming, not booting. Otherwise, the kernel will start the usual boot process, and will not load the swapped data. How does the kernel know…
user356126
  • 599
  • 4
  • 11
25
votes
1 answer

Arch Linux grub installation error "airootfs"

I was following the official installation tutorial. Everything was smooth until the boot loader section. I had encountered the error of /usr/bin/grub-probe: error: failed to get canonical path of 'airootfs'. same as this question while executing…
李智修
  • 373
  • 1
  • 3
  • 7
23
votes
4 answers

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 CentOS options. It does not give me the option to…
CodeMed
  • 5,079
  • 45
  • 100
  • 147
22
votes
5 answers

How did Linux/xBSD boot before GRUB?

According to Wikipedia, GRUB was released in 1995. By that point Linux and xBSD existed for several years. I know early Unix versions were tied to hardware in the 70s and 80s, but Linux and xBSD were free to distribute and install. Which begs the…
Sergiy Kolodyazhnyy
  • 16,187
  • 11
  • 53
  • 104
20
votes
4 answers

PKCS#7 signature not signed with a trusted key

Installed Ubuntu with SIP disabled on MacBook 2017 - 0 issues, booted in seconds. I have been building it out and created a problem while trying to make the WiFi work. At some point (it was very late) a combination of 3 things happened: I enabled…
Earthling
  • 201
  • 1
  • 2
  • 3
18
votes
3 answers

FreeNAS grub2 booting ISO

I've got usb-keys setup to multi-boot different Linux images. I wouldn't mind adding FreeNAS, and there's a doc with samples to add to grub.cfg menuentry "FreeNAS-8.0.4-RELEASE-x64" { insmod ufs2 insmod iso9660 #…
Thermionix
  • 566
  • 6
  • 15
18
votes
5 answers

Laptop boots directly to Ubuntu, can't access BIOS or Boot menu anymore

I'm running Laptop with single OS: UbuntuMATE 15.04 Beta1 64bit on Toshiba laptop Core i3. After burning "Elementary OS" on a live USB drive using UNetbootin, what happened is: -After reboot, laptop directly shows UbuntuMATE boot screen, doesn't…
1
2 3
46 47