GRUB will not be overwritten

Jonathan Berry berryja at gmail.com
Thu Jan 27 22:46:58 UTC 2005


On Thu, 27 Jan 2005 11:45:23 -0500, Trey Sizemore <trey at fastmail.fm> wrote:
> Terry Polzin wrote:
> >On Thursday 27 January 2005 09:45, Krzysztof Kujawski wrote:
> >>I haven't wiped out any partitions.
> >>I tried chroot /mnt/sysimage as rescue CD let me.
> >>
> >>But I don't know how to exit and reboot from shell -- rescue CD wrote that
> >>after command chroot /mnt/sysimage
> >>exit from shell and the system will be reboot.
> >>
> >>Exit not results in rebooting.
> >>
> >>Id this command in one line?
> >>
> >>chroot /mnt/sysimage/sbin/grub-install /dev/hd(3)
> >
> >No, it's two command lines
> >chroot /mnt/sysimage -- makes the / command tree you would have after a normal
> >boot effective ( you are no longer running commands from the
> >rescue /bin, /sbin directories)
> >
> >The /sbin/grub-install /dev/hd(x) should re-write the MBR.
> >
> >Then exit twice, the first one will return you to the rescue environment, the
> >second will reboot the system.
> >
> >
> Now that I've done this, when I select /dev/hdb1 to boot from in GAG, I
> get a grub> prompt?  How can I get this to show me the option for Fedora
> or boot directly into fedora?

You get a "grub>" prompt if GRUB cannot find a config file.  Either
this file is not there, or GRUB is just not finding it.  There should
be a /boot/grub/grub.conf file with links to it from /etc/grub.conf
and /boot/grub/menu.lst  Boot from the rescue CD and see if you can
find any of the above files.  If so, look at them and report back the
content.  Do you have a /boot/ partition?  If so, you should point
grub-install to that partition instead of /

Jonthan




More information about the users mailing list