[H-GEN] Grub Error
Russell Stuart
russell-humbug at stuart.id.au
Tue Apr 1 23:30:28 EDT 2008
On Wed, 2008-04-02 at 06:30 +0530, Deepan wrote:
> Hi All,
> I deleted my windows partition using live CD. Now
> my machine won't boot into linux. It stops at the
> grub prompt with the error operating system not
> found. How do I reinstall grub using live CD? Or
> should I boot into my linux operating system with
> root, kernel and initrd option in grub and then
> install grub ?
> Regards
> Deepan
> Sudoku Solver: http://www.sudoku-solver.net/
1. Boot off live CD.
2. Mount you linux partition.
3. Chroot to your Linux partition.
4. Run grub at the chroot'ed prompt, entering these
commands, replacing P with the number of the
partition Linux is on. Ie, if Linux is on the
first partition, replace P with 1:
# grub
>> root (hd0,P)
>> setup (hd0)
>> setup (hd0,P)
>> quit
More information about the General
mailing list