Tuesday, January 5

How does GNU GRUB work?


This blog post is closely related with my interest in low-level stuff. As you already may know, I've started to be interested in such things like: How N works, where the N is something like - what does occur when we turn on the computer, pressing key on keyboard, how does an operating system load a program and many many more. I have found answers on some of my questions. You can look on the set if blog posts which are describe some aspects of the assembly programming or the linux-insides book which describes internals of the Linux kernel.



Yes. This answered on some of my questions, but not at all. Lately, besides the Linux kernel, I've also learned internals of the GNU GRUB. In the previous year I've got many thank you words from different people for the Linux-insides. Seems that low-level stuff is interesting not only for me and I decided to write this blog post which will cover some parts of the GNU GRUB and we will see answer on the question which is in the title of this post - How GNU GRUB works. Hope, that it will be useful for somebody.

If you use Linux, you likely know about GNU GRUB. But just in case, Wikipedia says that:

GNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project
So, the GNU GRUB is a bootloader. Main point of a bootloader is to load an operating system kernel and to transfer control to it. GNU GRUB has many features like support of different types of executable file formats, dynamic configuration, graphical menu interface, support for different types of file systems and etc.

To Read Full Story Click Here