Wednesday, June 07, 2006

booting windows from grub prompt

I did the unthinkable. In a fit of rage i booted my laptop i WinXP and deleted my linux partitions.
Now why did i do that? See the story below


I have been happily running linux on my laptop for quie some time now and i run winxp on vmplayer. vmplayer has been slow but not "irritatingly". now a couple of weeks back, i noticed the winxp getting to that "irritatingly slow" level. i thought about it. *I* dint do anything that could have slowed it down. Also because of the ACPI issues, the linux usually ran only at 590 MHz for which i did a "echo performance > /etc/sys.....A path i will update later (can be googled easily)
However even with that i dint notice any discernable performance excpet that the windows welcome boot message was now understandable :) earlier when it booted, i could hear every note :) and it went on like for a screeching 10-12 seconds (im guesstimating here). ok finally this got to me one day and i thought id just do everything from scratch up. Had all the data i required on CD's.

Into windows and in 2 minutes deleted all my linux partitions, recreated some blank partitions for linux and then remained on windows. i decided id run linux on windows inside the vmplayer and check the performance. *THEN* it hit me...............huh!!!!
there was an enterpirse patch for an antivirus software that was installed on my virtual machine (win xp). now this wasnt there earlier and this software rn 10-12 services which took quite a toll on the processor (i believe).

Anyways, things went on fine that day and i was ready to work on windows fo a while.

Next day, i started my laptop as usual and hey it just came to the grub prompt. Ooops!! i realised, where is the grub.conf?? i deleted that linux partition. I was ill and at home and couldnt boot into any OS to chek out google. So i called on my friend who did the googling.

Well there ar just 4 steps to get into windows from the grub prompt. do this

1) rootnoverify (hd0,0)
2) chainloader +1
3) makeactive
4) boot

and then you are in Windows!!!!!

16 comments:

Anonymous said...

Thanks, thanks a lot!
I felt lost, frustrated trying how to recover my crashed XP.

Thanks again!!!

fabrizio.carraro@cinecittastudios.it

Anonymous said...

unrelated to this, but;

Have you tried the shiny new Ubuntu edgy eft? I saw it being installed on a windows laptop with C: being the whole of the disk. I was worried about not destroying the windows install on it. Using ubuntu's partition manager, we could just resize the windows drive (ntfs) and install linux. Resizing did not affect windows at all. :)

Anonymous said...

Your blog helped me recover my crashed WinXP/RH Linux system.
Ahmedabad, India
February 12, 2007

Bhishma said...

Thanks a lot Amey... Your suggestion helped me fix my PC..(which i thought was a fit candidate for a reinstall).. thanks again...

Anonymous said...

Even though this stuff is dated,
I wanted to point out some problems if windows happens to be
on a USB connected Hard Drive.
in grub.conf, I added the boot
target:

title Windows XP Pro External Disk
rootnoverify (hd1,0)
chainloader +1

Notice that I used (hd1,0)
since (hd0,0) is the linux boot
disk.

So, when I selected this target
from the grub menu, it completely ignored it and it
booted into Linux (Fedora 7).

So, does anyone have any
suggestions?

Anonymous said...

hi i am using redhat linux 9.0, when the server reboot it comes to grub command line. how to enter into the OS .. pls help me.

Anonymous said...

well i got the same problem as yours..deleted the linux partitions...now whenver i boot i need to type those four lines to boot windows...is there any ways i can boot automatically???....help

Ameya said...

@kisley: Once you are in windows, download and install any software that fixes you MBR. google and you should find. that will effectively take out your grub and will boot into windows directly. the later you can go ahead and install linux as well

Unknown said...

Thanks.

It took me just those 4 commands and 5 minutes to get back online after deleting my fedora dual-boot partitions which I finally got rid of after switching to vmware ages ago.

akin said...

Hi, I had trouble with grub and with your comments I have found the solution. I have no problems now thanks you. Additional hints:

Your vista may not be in hd0,0 but hd0,1 or hd0,2... You can try as long as youre doing rootnoverify instead of root.

Secondly, you will have problems in MBR. To fix that, you can use the easyBCD tool if youre using vista...

THANKS AGAIN!!

Anonymous said...

I wish not agree on it. I assume warm-hearted post. Particularly the appellation attracted me to review the sound story.

Anonymous said...

Good post and this mail helped me alot in my college assignement. Thank you on your information.

Anonymous said...

Hello. And Bye.

Anonymous said...

good evening fellas. I'm really into shoes and I have been digging as far as something that exact brand. The prices for the sneakers were about 300 bucks on every site. But completely I found this area selling them as a remedy for half price. I in reality want these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will probably buy them. what do you think?

Unknown said...

i tried the same
but when i restart my windows now,again grub prompt appears
and i have to do it again and again.
is there any solution to it????????????

Anonymous said...

top [url=http://www.001casino.com/]online casinos[/url] hinder the latest [url=http://www.realcazinoz.com/]online casinos[/url] manumitted no store reward at the leading [url=http://www.baywatchcasino.com/]casino online
[/url].