I have the following scenario:
I had a dual boot option on my laptop with Windows Vista Home Premium and Red Hat Linux Enterprise Edition 5.0. In order to install Ubuntu on the partition having RHEL, I deleted that partition using windows disk management. Then I installed Ubuntu using Wubi on a drive other than the C drive which has Vista.
After the installation I restarted the box and now I can’t log on to my Windows and all I get on start up is Grub prompt. I tried a few things at the grub prompt like –
root (hd0,0)
but all I get isfilesystem type unknown, partition type 0x7
I also have Ubuntu on a USB using which I can see my Windows partitions.
Any help with this is much appreciated. I’m kind of a novice with grub, so haven’t tried anything advanced.
cheers
Answer
Try doing this, I’ve had this work on a dual boot with windows where grub messed up the master and slave partitions (Windows still thinks its on the master and gets messed up)
Add the following lines to /boot/grub/menu.lst
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
then after that is in do this command:
update-grub
And reboot
Edit: http://www.linuxjournal.com/article/4622 This is a pretty good all inclusive guide to grub and has some directions for directly starting up a partition from the prompt
Attribution
Source : Link , Question Author : Arnkrishn , Answer Author : Shial