Where does GRUB reside ?



I had a Windows Vistsa system that was broken, and I had also erased the
boot code from the MBR - but not the partition table. The boot code is
proprietary to HP Pavilion. There was no other boot code I could write to
the MBR that would get so much as an error message out of the broken Vista
installation. And I had permanently lost the proprietary code.

I installed Ubuntu on another partition. Ubuntu worked fine, but I later
erased the Ubuntu partition. Then I got ahold of a CD that could possibly
repair my broken Vista system. I ran the CD and was able to get the Vista
up and running again. I thought I might have gotten the proprietary boot
code back, so I looked at it with a disk editor and found it now has GRUB
boot code in the MBR. If I hadn't put Ubuntu on the computer Vista would
still be inaccessible !!!

Too cool. I did some research and found there are ways to get great dual
boot capability using GRUB. Now I am interested to know where GRUB resides.
With my disk editor I see there is about 18 sectors of GRUB in the first
track (head 0) on the hard drive. But there is some more stuff on the
second track (head 1) that looks like it is also GRUB. With all that real
estate it seems like GRUB probably doesn't use the boot flag in the
partition table to pick the partition for booting.

I do a lot of tinkering with the drive sometimes for backing up data and for
copying partitions and just for experimentation. I am interested to know
what areas of the drive are used by GRUB - so I copy them when necessary and
so I don't accidentally over write or erase part of GRUB.

TIA.


.



Relevant Pages

  • Re: Triple boot:XP,ubuntu&FC5 grub failed
    ... The first two were 100 MB partitions which I dedicated one for each installation that I was making. ... I made partition 1 active and then created an lvm for the first installation on partition 3. ... So you are saying above that the MBR has the default code to search for the active partition. ... So you should be able to add entries within grub in order to chainload either installation and forget about adding grub to the MBR. ...
    (Fedora)
  • Re: [opensuse] installing 3 distros into 3 existing partitions- by a newby
    ... The grub for oS11.1 should be installed in the disk's MBR as Carlos said.. ... I forgot about Windows. ...  - mark the Linux partition as bootable with almost any partitioner. ...
    (SuSE)
  • Re: GRUB question
    ... on the boot partition. ... Grub is normally installed in the hard drive MBR,, ... In a traditional Microsoft install, ...
    (Ubuntu)
  • =?iso-8859-1?Q?Verst=E4ndnisfrage?= Grub Error 17 Fehleranalyse.
    ... wo der Fehler eingeschlichen. ... Partition befindet. ... dem Ergebins, das WinXP booten konnte, aber Grub weg war. ... USB-Stick gesicherten mbr wieder zurückkopieren. ...
    (de.comp.os.unix.linux.misc)
  • Re: Windows und Linux im Dualboot --> Windwos weg
    ... Acronis Partition Expert die beiden NTFS-Partitionen (nach ... da Grub in den MBR installiert ...
    (de.comp.os.unix.linux.hardware)