On Wed, Apr 2, 2008 at 9:07 AM, Chris Henry <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 2, 2008 at 8:56 AM, Deepan <[EMAIL PROTECTED]> wrote:
>  >  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 ?
>  You don't need to reinstall grub. In fact it won't help. What happen
>  is by deleting your windows partition, your harddisk partition map
>  changes. You need to modify the file /boot/grub/menu.lst to indicate
>  the right partition. If you are not sure, you should run one of those
>  grub configuration tool (I haven't had to use one before, so I can't
>  help). You can take your chance and modify the (hd0,x) for your Linux
>  to (hd0,x-1). That should work. (:
Ah, I guess I miss the most important part, how to edit menu.lst. In
your grub menu, put your selection on the Linux boot choice, press 'e'
to edit, find (hd0,x) and modify it to (hd0,x-1). Try to boot. If
doesn't work, try changing (hd0,x) to something else. Once you booted
into the OS, modify /boot/grub/menu.lst. (Do note that if you have
multiple partitions for your Linux OS, like /home, /var, etc, you may
need to modify /etc/fstab file to indicates correct partition maps;
your OS may complain horribly meanwhile.)

Chris

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to