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!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
Originally Posted by adnankhawer
2. Which stage is used when we use GRUB commands like 'boot', 'kernel', 'initrd' and etc.???
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.