More grub questions

From: Leonard Evens (len_at_math.northwestern.edu)
Date: 01/29/05


Date: Sat, 29 Jan 2005 08:19:27 -0600

I've been studying the grub documentation because I want to understand
it well before I go ahead to fix my MBR so that I can dual boot with
grub. There are several things that I'm still not sure about.

First, is there a good place to find out about the structure of the
master boot record and just exactly what installing grub puts there.
I've compared a raw XP MBR with one with grub installed and done octal
dumps, but of course they are a bit hard to interpret. At a minimum
installing grub has to leave the partition table unchanged. Once when
trying to understand lilo I figured out most of this and wrote it down
somewhere, but I have no idea where I put it. The grub manual section
on the MBR has not yet been written as far as I can tell.

Second, I've listed the files provided with the Fedora Core 2 grub rpm
package. The files in /usr/share/grub/i386..., including stage1 and
stage2, at some point after that are copied to /boot/grub and
configuration and device map files are constructed. This must be done
during installation. I presume I can find this by examining the
Anaconda script, but I hope there is a simpler way to get that information.

Finally, stage2 in /boot/grub differs from the stage2 in
/us/share/grub/i386... I presume this is because it needs to know
where the configuration file is. How is it changed?



Relevant Pages

  • Re: Please Help: system keeps rebooting after installing FC3
    ... writing to the MBR even when i opt not too. ... F8 everytime i boot to toggle BIOS to boot from my hdb. ... get hold of various other boot loaders, grub fail the same way as yours. ... The installation went smooth and at the end I needed ...
    (linux.redhat)
  • Re: remove partaion
    ... The most interesting hurdle will be what the Master Boot Record ... thus kill GRUB. ... I would copy your MBR and first 63 sectors (see the MBR Copy Appendix ... GUI or command line commands to accomplish that. ...
    (Fedora)
  • Re: Retaining windoze when replacing 9.0 with 9.1?
    ... > My concern is the MBR. ... If grub has been working fine, up 'til now, leave it alone. ... the new install, don't erase the /grub directory on the boot partition, ... When I install a new OS, I never mount the boot partition, and install ...
    (alt.os.linux.suse)
  • Re: dual booting XP and Linux
    ... /dev/hda - MBR ... I don't worry too much now, since I'm booting fine into GRUB and from there ... > Millions of people are using to grub to boot Linux and/or Windows.. ... I like the idea of removing the hard drives because it is safe. ...
    (Fedora)
  • RE: GRUB failure
    ... but not personal expertise with GRUB That Grub is organized ... Phase 1 the GRUB MBR DOES NOT KNOW THE OS FILE STRUCTURES. ... Loaded and executed by the ROM BIOS boot strap code. ... fails to be able to load in the Phase 1.5 Loader. ...
    (RedHat)