In all of our products we always talked about in various ways, software and GNU / Linux. However, we never really focused on topics a little more delicate and more at low level. What we'd like to talk about today is GRUB, the boot loader of the GNU become almost the standard in a GNU / Linux. Almost as long as the boot loader used by Linux-based operating systems was definitely LiLo. Over time, however, GRUB has been able to realize all its potential to become an excellent platform boot loader completely flexible and powerful. But what exactly is a boot loader?
When we turn on a normal computer program launched the first is the boot loader. The latter is thus, in effect, the main responsible for initiating the various operating systems on your machine. The task of each boot loader should be able to load and transfer control of the system to operating system kernel that is about to launch. In turn, the kernel runs and manages the operating system.
GRUB is the Grand Unified Bootloader (GNU Grand Unified Bootloader), a project that attempts to solve the entire problems boot once and for all. There are two versions of GRUB: GRUB Legacy and GRUB 2. The legacy version (which is "inherited") is what continues to be used by most distributions even if the development team for the boot loader has long since ceased to add something new. Version 2, however, is that which has the greater contribution of the developers even though it is still considered a version under development and not completely reliable.
One of the most interesting features is that you have not installed a new partition or a new kernel, you can change all parameters at boot using the GRUB console, and who knows the filesystems. The GRUB boot loader pre-installed on most distributions of GNU / Linux art, including Debian , Ubuntu and its derivatives. Previously, the most commonly used boot loader was LILO.
Some of the features that have made GRUB are those concerning the possibility of dynamic configuration, meaning that users can change parameters and settings even before the operating system, support for various operating systems and different file systems and finally the possibility of use a graphical interface that is a textual and command-line, to allow users the choice of operating system to run.
It is the first thing that loads when the computer starts. Provide for multiple operating systems , and different versions of them in the same hard disk. For example, we have Windows and GNU / Linux on the same computer, GRUB will load before any of them allowing us to choose which one to boot. Grub 2.0 is the default bootloader for some of the latest versions of Linux.
Grub vs. LILO
Hard disks and partitions are numbered from GRUB and are in parentheses: (hd0, 0) = hda1 GRUB can read directly from file systems, after installing a new kernel of a new OS has only the menu.lst (grub 0.x) and grub. cfg (grub 2.x) will be adjusted, not a call to GRUB, LILO as necessary.
The amazing advantage of Grub over Lilo is possible during the boot process to change the parameters - it also can be compensated quickly typo. This supplement works even with the tab key as Grub conventional file systems (FAT, ext2 / 3, reiserfs) can read. It also offers the possibility to use MD5 encrypted passwords.
GRUB has two distinct methods of starting. The first is to load an operating system directly, the other to launch another initiator, which will then load the operating system. In general, the first method is preferable because you do not need to install or maintain multiple managers and GRUB is flexible enough to load a system from a disk or partition arbitrarily. However, the latter is sometimes required, since GRUB does not natively support all existing operating systems.
How Grub works:
Sometimes happens that after installing Linux or some other distribution, we have installed in case our original copy of Windows. After installation (making sure that we have not installed Windows on the Linux partition), we realize that GRUB disappeared and we can only boot Windows. Sometimes happens that the system (Windows or Linux) fails with the same or even more disastrous results (may not boot any other operating system.).
The solution for both cases (and some more rare as to corrupt the first sector and break GRUB) is the same. We install GRUB again. How to do this if you do not start anything (for that matter, you start Windows is like nothing)? For this we use a LiveCD of some distribution that we like, who walks fast and above all, to use GRUB to boot. You can use Knoppix, GentooLiveCD, Linux Live CD or one we have at hand. Ubuntu can be used, but on machines with more than 256 MB of RAM.
The naming of the disks follows a different logic, as it may be used. The partitions and hard drives are counted from "0". For example, is (hd0, 2) for first hard drive and third partition (hd1, 0) for second disk, first partition 1. The order of IDE - and SCSI hard disks depends on the BIOS. Floppy drives are called (fd0) and (fd1). Grub numbers the partitions from 0 (as (hd0, 0)), so it was in case the first disk is installed and the second hda hdb. The numbering is done in number of disk installed. There is no correlation between / dev / hda hd0 and grub. If your primary disk is hdc hde or it will
- still be numbered hd0
- partition hda1 is (hd0, 0)
- the partition hda2 is (hd0, 1)
- hdb1 partition becomes (hd1, 0)
It is assumed that the hard disk is partitioned as follows:
- hda1: Windows
- hda2: swap
- hda3: knoppix
- hda4: other linux
Bookmarks