Questions tagged [grub]

GENERAL GRUB SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. GRUB, the GNU GRand Unified Bootloader, is a boot loader used on x86 systems, typically used to boot Linux. Questions about using or configuring GRUB are rarely on-topic for Stack Overflow outside of unusual circumstances.

GRUB is the reference implementation of the Multiboot Specification, which provides a user the choice to boot one of multiple operating systems installed on a computer or select a specific kernel configuration available on a particular operating system's partitions.

As GRUB is not a tool specifically used for software development, questions about it will typically be considered off-topic on Stack Overflow unless it is being used in a particularly unusual manner, e.g. if you are developing custom modules for GRUB, or if you have developed your own operating system kernel.

If you are having a problem with using or configuring GRUB on your computer, please consider asking your question on SuperUser.com, the Stack Exchange site for computer enthusiasts and power users, or on a site specific to the Linux distribution you are using, such as the Ask Ubuntu Stack Exchange or UNIX & Linux Stack Exchange.

171 questions
4
votes
3 answers

How to use QEMU properly with multi boot headers

I am learning the basic of OS making. I have made a multi boot header compliant .asm file and a .c file. The code in the .asm file calls the main function of .c file. The problem is that QEMU is unable to boot from the file produced after the…
Pratik Singhal
  • 6,283
  • 10
  • 55
  • 97
3
votes
1 answer

What is the grub/machine include directory in GRUB source code?

I have always wondered how does GRUB 2 work. While reading it's source code, I saw that there are some #include directives which include seemingly nonexistent "grub/machine/...", for example in grub-core/boot/i386/pc/boot.S bootloader file there…
NotYourFox
  • 35
  • 5
3
votes
1 answer

grub doesn't seem to load my kernel correctly

I use grub to load my kernel. Although I specified .=0x100 0000 in the linker script, I can only find a valid MultiBoot2 header at 0x10 0000. After comparing them one by one, I found that it is not my kernel. And use gdb to debug Found that qemu's…
AlanCui
  • 137
  • 9
3
votes
1 answer

Using grub in floppy image file to start your own kernel inside bochs

Basically I've followed the instructions here http://sig9.com/bochs-grub to create a bare image file which does nothing but lets the BIOS start GRUB. The problems are: The kernel I am writing will be 32-bit, using…
Flavius
  • 13,566
  • 13
  • 80
  • 126
3
votes
1 answer

Simplest chainloading a boot manager

In order to boot from flash memory drive we load disks using the BIOS interrupt 13h in real mode with specifying the disk 0x80. Another disks should be accessed by 0x81, 0x82... as mentioned over this link I am trying to make my simple GRUB. My very…
user7688222
3
votes
4 answers

Using bluetooth keyboard in grub bootloader

I want to choose between several OS's during startup. How can i manage this by using my bluetooth keyboard/Cellphone or at least my IR remote?
elCapitano
  • 1,821
  • 3
  • 22
  • 42
3
votes
1 answer

You need to load your kernel first Error

Right now when I select Custom OS , and when i execute my OS from the menu in GRUB I get a purple background: error: secure boot forbids loading module from (hdo, gpt7)/boot/grub/x86_64-efi/multiboot.mod error: You need to load your kernel first …
amanuel2
  • 4,508
  • 4
  • 36
  • 67
3
votes
2 answers

How are low-level graphical interfaces programmed?

Recently, I have been experimenting with things like arch Linux and this raised a few questions. I constantly see the use of graphics in very low level parts of an OS(things like the GRUB or almost all boot menus). Some of these even feature images.…
bobby
  • 57
  • 3
3
votes
1 answer

reboot VM (run on vbox) into specific (compiled) kernel from shell

Im running ubuntu 14.04 with vbox . In this machine I compiled and run kernel 3.14 which I choose from the grub menu when ubuntu load on vbox. The host also run on ubuntu 14.04. I wanted to ask - is there a way to load the guest ubuntu into specific…
nadavgam
  • 2,014
  • 5
  • 20
  • 48
3
votes
3 answers

Compiling kernel to a binary file on mac

I was following these tutorials to make a simple kernel that I would then load using GRUB. The instructions for compiling didn't work (ld couldn't find the -T option) and when I finally got a compiled file it was in Macho format. What are the…
None
  • 3,875
  • 7
  • 43
  • 67
3
votes
3 answers

Bochs (2.4.6)/GRUB (0.97) "Error 13 Invalid or unsupported executable format" when passing char string in C function call

I'm trying to follow the "The little book about OS development" and doing a small OS that I'm booting in bochs. But I've run into a problem that I can't solve or explain. In short when passing a char string (in C), the kernel boot ok and works when…
max7
  • 43
  • 4
3
votes
1 answer

Error when building GRUB2 module with efi's "grub_efi_get_variable" function

This is in my Makefile.core.def: ... ... module = { name = mymod; common = net/mymod.c; }; ... ... When I tried to build I get: mv syminfo.lst.new syminfo.lst cat syminfo.lst | sort | gawk -f…
user2719735
  • 97
  • 2
  • 10
3
votes
1 answer

How to use grub2-extra-lua module

I googled for grub2-lua, but found very few information on it. I can't find an official website for grub2-lua (i.e official source code tarball download link), except for a git clone link. Moreover, I can't find any documentation about grub lua. So…
Chip Zhang
  • 641
  • 2
  • 11
  • 26
3
votes
1 answer

Xinu boot in VM

I want to learn something about OS and networking with Xinu. I downloaded the source code from the xinu-os repo on github (up to 4d489eead3a49170f69041b959bd5a1bd8dff92d) and compiled xinu.boot and xinu.elf myself. To really get down to it, I wanted…
abel
  • 519
  • 1
  • 5
  • 15
3
votes
1 answer

if statements in grub2 script always evaluate to true

I'm trying to write a grub2 bootloader script but if statements always evaluate to true: if [ -s blabla ] ; then set zzz0="1" ; fi if [ ! -s blabla ] ; then set zzz1="1" ; fi set TEST_VAR=foo if [ "x${TEST_VAR}" = "xfoo" ] ; then set zzz2="1" ;…
user2978452
  • 31
  • 1
  • 2
1 2
3
11 12