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
1
vote
1 answer

How to make a "Hello world" kernel

I followed this article on how to make a very simple kernel which prints "Hello, World". The files to my project are available on Github. I built my cross compiler from this project. I use these command to cross compile, assemble, and build my ISO…
user9643348
1
vote
0 answers

Where in source code of GRUB can I found ELF kernel loader?

As we all know, GRUB can boot an ELF executable kernel. But here, in source code of GRUB, in which file and/or directory, the source of ELF loader resides? Also which file contains source code of Stage1 and Stage2?
Amir Khan
  • 43
  • 5
1
vote
1 answer

Grub can't find grub.cfg file -- Stuck at GRUB Command Line

I am using GPT/UEFI system. I installed KDE Neon and I was using it without any problem since the summer. Then today, I deleted /EFI/ubuntu/ and after I reboot the system, it stuck at grub command line "grub> ". 1- I can boot the system by writing…
furkantokac
  • 311
  • 4
  • 17
1
vote
1 answer

How do I add "Press any key to boot from usb" when installing Windows from a flash drive? (Grub4dos question / how to remove a bootloader)

I've been struggling with this problem for a while now and finially decided to ask for help. Let me first explain what the main purpose of the app is: to provide the a very easy to use way of backing up files, after which I format the drive and…
Vincent
  • 47
  • 2
  • 5
1
vote
1 answer

OS programming using grub

I found a website online to learn Operating system programming. I did the first tutorial and just followed with what they did. I came to the last step where I type "grub-mkrescue -o myos.iso isodir". However, I get a warning saying "your xorriso…
Steven
  • 360
  • 3
  • 14
1
vote
2 answers

How to pass parameters to Kernel using GRUB 0.97 menu.lst?

I'm working on an OS and I have to create a debug mode. In order to do this, I want to add an entry in menu.lst, pointing to the same kernel, but with an added argument. In the GRUB manual, it's written that everything after kernel's address in the…
Turbolay
  • 88
  • 1
  • 10
1
vote
1 answer

Crafting an ELF file using linker scripts without zero-initialized blocks between sections

I am trying to craft a linker-command script to be bootable by legacy grub (using multiboot). I am having difficulty getting the multiboot header in the required location (within the first 8192 bytes). My script looks something like: SECTIONS { …
sherrellbc
  • 4,650
  • 9
  • 48
  • 77
1
vote
1 answer

Installing Fedora and preserving Grub

I installed Fedora 24 3 times last year. Each times, Fedora ended up overwriting previous Grub with its own without asking. I don't even know during which part of the installation it did that. This was not supposed to create any problems, but on a…
Luka
  • 83
  • 1
  • 9
1
vote
0 answers

grub does nothing after "multiboot /boot/kernel.bin"

Im trying to boot custom kernel with help of grub and qemu. If i start it with "qemu -kernel -m 64 ./kernel.bin" it works fine. Bud if i create iso with "grub-mkrescue -o os.iso ./os/" It start to load grub and screen stay black directories…
ch3ll0v3k
  • 336
  • 3
  • 9
1
vote
0 answers

Jumping back to GRUB after kernel finish

So, I have a protected mode (32-bit, x86) assembly program that is loaded by GRUB2. It is multiboot-compatible. This program is just intended to be a game, not an operating system. Therefore I would like to use GRUB as a kind of program…
sadljkfhalskdjfh
  • 747
  • 3
  • 10
  • 17
1
vote
1 answer

how do operating system booting files work?

I am installing ubuntu 14.04 on an acer machine and I realize that the OS can't initialize if the booting files are lost. I would really appreciate if somebody could bring information about how these files work. Thank you very much.
JOse_M
  • 41
  • 6
1
vote
1 answer

Compiling custom kernel for HP Thin client and creating bootable ISO with grub

I made simple OS with one really nice library, I compiled everything, reallocated (I want) and finaly created kernel. I successfully ran it on qemu-system-i386. Plus created ISO with grub and boot it via virtualbox. Everything worked, output was OK.…
Possible
  • 171
  • 2
  • 13
1
vote
2 answers

grub2-mkpasswd-pbkdf2 - can it accept standard input?

On CentOS 6 we currently encrypt the grub password using the password --md5 option and we are able to script this into our standard server build. We are busy migrating to CentOS 7 and it appears that the password --md5 option has been removed in…
Pancho
  • 2,043
  • 24
  • 39
1
vote
2 answers

undocumented kernel boot parameter?

It seems that the Linux kernel has a cryptopts=... boot parameter which allows to specify an encrypted root partition. Google search returns many examples of its use, however I was unable to locate the actual documentation. For example, man…
amkhlv
  • 307
  • 2
  • 14
1
vote
1 answer

Adding Commands to Grub2

So I'm trying to add a "apple_set_os" command to Grub2 by applying the following patch: http://lists.gnu.org/archive/html/grub-devel/2013-12/msg00442.html Grub compiles fine, and the "applesetos.model" and "applesetos.mod" files appear in…
user2602914
  • 301
  • 3
  • 11