I'm running RHEL4 - breaking grub.conf - so I can learn how to fix it.
I was told to purposely break Linux to learn about it. I want to learn about grub.conf and what happens when I corrupt it purposely. So I vi'd it and changed root to DAVE.
Obviously the system does not boot - but here is my question.
If/when it gets corrupted, how do you guys recreate it?
at the prompt grub> I looked at help and it did not clue me in.
Some article I found discussed reinstalling it with
/sbin/grub-install /dev/hda or (boot device)
But this does not work for me at the grub> prompt.
Here is what I am doing -
So when I reboot and I interrupt the boot process at STAGE2 I open the grub> command prompt and type:
/sbin/grub-install (hd0,0) -- returns unrecognized command.
So I try tip #2 at the grub> prompt typing:
quit - unrecognized command.
At this point I'm feeling like a tool and I decided that maybe I need to reboot with a CD and run - linux rescue
That didn't work either.
THE BIG QUESTION -
How EXACTLY do I get to the prompt at which running the command
/sbin/grub-install --- will actually work?
--REMEMBER YOU HAVE TO RUN TO 1ST BEFORE YOU RUN TO HOME PLATE--