Hi Brian,
After a week battling with grub and lilo at least that much I think I learned. Basically, the commands you need are:
1. grub (which invokes "grub")
2. Once in the "grub> " write " root (hdx,y) where "x" is the hard drive and "y" is the partition where your boot resides. For example, let's say your hard drive is set as /dev/hda and your partition where /boot resides is /dev/hda2, then you need to write: "root (hd0,1)." Once you do so, it should give you a line telling you the type of partition you have ( reiserfs, ext2, etc.)
3. You need to setup grub in /dev/hda. Just type "setup (hd0)". Again, it will give you a list of actions with the "ok" comment.
4. To finish, just type "quit" and reboot assuming that you already have edited /boot/grub/menu.lst.
Hope this help...
william
Brian Henning wrote:
Hi Y'all, I just had to reinstall Windows XP on my dual-boot machine, which of course blasted grub off of my MBR. To the best of my knowledge, the ext3 partitions are all safe and sound on a drive Windows doesn't touch, so I figured booting with the Rescue CD (it's FC1) would be the first step in restoring grub. Real quick-like, what's the right set of commands to do to get grub back on the MBR?
Thanks as always, ~Brian
-- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
