Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
1. Which Linux Distros uses GRUB's stage 1, stage 1_5 and stage 2,all???
Any distro that uses Grub can use all those stages; the only stage that can be skipped is stage1.5. When you install Grub to the MBR (Master Boot Record), you are installing stage1 to the MBR and usually stage1.5 to the sectors immediately following the MBR. Stage1.5 has the ability to search for stage2 on a linux partition, and also stage1.5 is what reports various Grub errors. It is possible to install stage1 to the MBR but omit stage1.5, and then stage1 just points directly to the sector location (LBA) of the stage2 file. Thus you won't get any error reporting, and if the location of your stage2 file changes for any reason, that would temporarily break Grub until you reinstall Grub to the MBR again. It is worth noting that when you install Grub to the boot sector of a partition, Grub always omits the stage1.5 file since the sectors immediately following the partition boot sector are usually not free space.
Quote:
Originally Posted by adnankhawer
2. Which stage is used when we use GRUB commands like 'boot', 'kernel', 'initrd' and etc.???
grub>
Thanks in advance!
Grub's stage2 file is what handles all the Grub commands.
What I know about MBR, is a fixed location(not dependent on any OS) on a drive which always pointed by BIOS when POST complete.
Is the area used by stage 1.5 file is FIXED? or it depends on OS, that how they use that space.
The MBR is always the first sector of the HDD, and almost always the first partition of the HDD starts at the first track of the HDD or further into the drive (each track is 63 sectors); so the first partition usually starts no sooner than sector 63. That means those sectors between the MBR and sector 63 are generally available, and that's where Grub puts its stage1.5 file. But sometimes anti-virus programs in Windows use those sectors, so that can be a problem with Grub. In those cases you can install Grub without the stage1.5 file as I briefly described in my previous post, and you should be fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.