GRUB Queries ?!


 
Thread Tools Search this Thread
Operating Systems Linux Debian GRUB Queries ?!
# 1  
Old 01-16-2014
Debian GRUB Queries ?!

Hello,
I am posting the following questions here because I need them answered by people who have actually done a lot of work in GRUB. DO NOT GIVE ME GUESS ANSWERS PLEASE. Feel free to redirect me if this is not the right place to ask these questions.

  1. Can I download GRUB separately from GNU GRUB - Obtaining GRUB ? If so why do Linux distributions such as Debian have their own versions of GRUB ? ie. Debian -- Details of package grub-efi-amd64 in squeeze. What is the difference and why are both required ?
  2. Does the recent version of GRUB require Linux configuration files before it can boot Linux ? Is that the reason why every Linux distro has its own version of GRUB ?
  3. If GRUB requires Linux configuration files then how does it boot Windows without similar config files ? And if it is possible to boot an OS like Windows with any extra files in the bootloader why isn't the same thing done for any Linux distro ? wouldn't that make things more streamlined ?
  4. Do all the recent versions of GRUB support EFI booting ?
  5. I have installed Debian on my pc without GRUB thus I can't access it. Can GRUB be installed now manually so that I can dual boot Windows and Debian in EFI mode ?

I am really confused about these basic things. I need to get these things cleared up before I ask further questions in this forum.
# 2  
Old 01-16-2014
I'm not the Grub expert that you are looking for but maybe I'll say a few things that might help. My forte is Solaris, SCO and Linux (but not boot loaders).

However, I have had to deal with a number of boot failures under Linux and Linux Appliances (eg, RSA boxes) so I know that Grub errors and corruptions can be fixed ("re-installed" boot loader).

Here's a link:

301 Moved Permanently

Also there's a project on the internet called Super Grub Disk (with a later version called Super Grub2 Disk) which provides all kinds of tools for Grub. I never go into battle against Grub without their bootable CD in my toolkit.

Also, Super Grub Disk To The Rescue! - What's a GRUB? - Tutorials - LinuxPlanet


Hope that helps and I hope that you get other responses.
# 3  
Old 01-16-2014
GRUB is often packaged by distributions to make it easier to install and upgrade.

GRUB's very reason to exist is because it uses configuration files instead of finicky bits hardcoded inside the MBR or some other hard-to-access disk location. That's quite a feat for a mere bootloader -- reading files generally needs the OSes help. That's what makes GRUB so big and complicated (for a bootloader, anyway). That's also what makes grub so flexible.

Other bootloaders like lilo cannot actually access files before anything boots. It must cache its configuration in the MBR or some other difficult-to-read place before before it will take effect.

GRUB usually uses Windows' bootloader to load Windows. It doesn't have to overwrite it due to the way Windows stores it. A simple 'chainloader' command tells grub to load the MBR from the Windows partition and it can handle itself from there.

Last edited by Corona688; 01-16-2014 at 12:02 PM..
This User Gave Thanks to Corona688 For This Post:
# 4  
Old 01-17-2014
Quote:
Originally Posted by Corona688
GRUB is often packaged by distributions to make it easier to install and upgrade.

GRUB's very reason to exist is because it uses configuration files instead of finicky bits hardcoded inside the MBR or some other hard-to-access disk location. That's quite a feat for a mere bootloader -- reading files generally needs the OSes help. That's what makes GRUB so big and complicated (for a bootloader, anyway). That's also what makes grub so flexible.

Other bootloaders like lilo cannot actually access files before anything boots. It must cache its configuration in the MBR or some other difficult-to-read place before before it will take effect.

GRUB usually uses Windows' bootloader to load Windows. It doesn't have to overwrite it due to the way Windows stores it. A simple 'chainloader' command tells grub to load the MBR from the Windows partition and it can handle itself from there.
Sir, you didn't tell me why various distributions are provided for various OSes. Like Debian has its own version of GRUB which is different from Fedora. If GRUB can boot all Linux why cant there be only one single universal GRUB for all Linux ?

Also why does GRUB need to read the configuration files of Linux ? It doesn't do so with Windows so why can't it do the same for Linux ?

Also what is the difference between the GRUB offered at-:
GNU GRUB - Obtaining GRUB
and the GRUB that comes with every Linux distribution ?

---------- Post updated at 01:08 AM ---------- Previous update was at 01:03 AM ----------

Quote:
Originally Posted by hicksd8
I'm not the Grub expert that you are looking for but maybe I'll say a few things that might help. My forte is Solaris, SCO and Linux (but not boot loaders).

However, I have had to deal with a number of boot failures under Linux and Linux Appliances (eg, RSA boxes) so I know that Grub errors and corruptions can be fixed ("re-installed" boot loader).

Here's a link:

301 Moved Permanently

Also there's a project on the internet called Super Grub Disk (with a later version called Super Grub2 Disk) which provides all kinds of tools for Grub. I never go into battle against Grub without their bootable CD in my toolkit.

Also, Super Grub Disk To The Rescue! - What's a GRUB? - Tutorials - LinuxPlanet


Hope that helps and I hope that you get other responses.
Sir, I know that SuperGRUB can repair GRUB but can it install GRUB on a system without a Linux bootloader ?
# 5  
Old 01-17-2014
How do you reckon that you installed Debian without also installing Grub?

What media did you use?

Last edited by hicksd8; 01-17-2014 at 05:23 PM..
# 6  
Old 01-17-2014
Ok, let's say a company like Redhat starts a new release. They might go to the grub site and download what ever grub is current. Then they start to work on a release making sure that every thing works together, testing the release on different platforms that they want to support and evntually they release. Well after they started work on the release, maybe the grub folks issue a release of grub. Redhat may not start over again. Redhat may decide that the grub they downloaded a week ago is still good enough. Meanwhile Debian decide to start a new release so they grab that somewhat later version of grub. Now Debian and Redhat have different version of grub. So what? They are both happy with the version they have. Now grub releases a even newer version of grub with improved IA-64 support. Well, Debian supports IA-64, they may want that newer release. Redhat does not support IA-64 so they don't care about improved IA-64 support. So Debian may choose to upgrade Grub while Redhat decides to pass on that version.

Even if all distros downloaded that same version of grub within a few minutes of each other it is possible that they might need to tweak the code a little. Redhat is partners with Dell and sees Dell's new hardware before the general public. If grub did not work on some new disk that Dell was about to release Redhat can't wait. They must fix grub immediately to protect the partnership.

Finally Grub is themed. When I interrupt the boot sequence and see the Grub screen I am looking at the RedHat logo. Debian does not want display that logo. They have their own logo.

This is not unique to grub. KDE, Gnome, CUPS, sendmail, and dozens of other packages are in the boat. And all of this software changes with different releases of a distro (which is the point of a release). We have nothing but Redhat where I work, but we have a lot of different releases. Even between two systems with, say Redhat 5.1 installed, one might have more rpm updates than the other. If Redhat put out a change to grub for 5.1, we might actually have two different grubs on two different Redhat 5.1 systems.

Most (I am tempted to say "all") Linux distros have picked Grub to be the bootloader of choice. They have very complete Grub support. Grub completely handles the Linux boot process. If I want to boot up into single user mode or disable some kernel feature I can interrupt grub, edit the configuration file and continue booting. I might want to disable a kernel feature permanently so I would need to edit the Grub configuration file. None of this is possible with Windows. All Grub can do is transfer control to partition that contains Windows. It can't pass parameters and modify the way that Windows boots up. Microsoft is unlikely to embrace Grub the way that Linux has. Linux could decide to give Grub the cold shoulder too and find some other way to configure the boot process, but that is also unlikey. Both OS's are likely to go down different paths.

I don't know what to tell you about your PC. I don't know what you are currently using to boot. In general, yes I think it's always possible to install Grub as an after thought. But any error on your part is likely to result in an unbootable system. I don't recommend that you try unless you don't mind rebuilding the system from scratch. Most people have old systems laying around... trying something like this on a test system is a good way to learn. I would not try this on my primary workstation though.
This User Gave Thanks to Perderabo For This Post:
# 7  
Old 01-18-2014
Quote:
Originally Posted by hicksd8
How do you reckon that you installed Debian without also installing Grub?

What media did you use?
I used full set DvD's. But I know I didn't install GRUB because I purposefully skipped the installation step which installs GRUB. If you are wondering why I did this is because the Debian installer wanted to install GRUB in the MBR but my system boots from a ESP and there is no MBR. I have installed a old version of Debian(Squeeze) so I need to install the latest version of GRUB manually.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab queries

Hi Expert, How to schedule a job on last day of the month. Need your kind help. Regards, PK (3 Replies)
Discussion started by: pkrabi78
3 Replies

2. UNIX for Dummies Questions & Answers

"/boot/grub/grub.conf" VS "/etc/grub.conf"

can someone please explain me the difference between these two files: "/boot/grub/grub.conf" and "/etc/grub.conf" .. (7 Replies)
Discussion started by: stunn3r
7 Replies

3. UNIX for Advanced & Expert Users

How many DNS queries

Is there any way to see how many queries come into our external DNS server? In looking at DNS providers, most of them base pricing on number of queries per month so I just wanted to see if you had any idea/way of gathering that data? A rough ballpark figure would even work. Our DNS server is... (1 Reply)
Discussion started by: raggmopp
1 Replies

4. Programming

Combine 3 queries

can these 3 be combined into 1 query? createtablea1as selecta.tps_Res_nb, b.tkt_prod_cd, b.tkt_prod_typ_nm, b.prod_intrnl_ds, b.tkt_prod_typ_nm AS TKT_ENTL_NM, casewhen b.tkt_prod_nm isnotnullthen b.tkt_prod_nm when b.tkt_prod_nm isnulland b.prod_intrnl_ds isnotnullthen... (1 Reply)
Discussion started by: dwr80
1 Replies

5. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

6. Homework & Coursework Questions

Queries

Any help on like where to get started on this? I'm just confused. 1. The problem statement, all variables and given/known data: Enter text here.Queries to satisfy these two report requests (use your CCI database): Retrieve all rows of active inventory where current on hands is less than... (0 Replies)
Discussion started by: lakers34kb
0 Replies

7. Shell Programming and Scripting

my queries

hi guys Well, i need to have a report generation script or any script which will show me all the content/information of a file when i run that script. Please help me on this isssue at the earliest.As i am little bit aware of scripting.Thanks in advance! regards ash (4 Replies)
Discussion started by: whizkidash
4 Replies

8. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies

9. UNIX for Advanced & Expert Users

Some queries...

Guys need some advice on how to check some of the questions below? i'm running on an open VMS platform... which i am an idiot to... appreciate if anyone can give some hints or source on how to check on.. a script that is running on cron job... but doesn't run as the login user name.. 1. why... (6 Replies)
Discussion started by: 12yearold
6 Replies
Login or Register to Ask a Question