Monday, April 26, 2010

Deleted Linux partition! How to get back into Windows?


Recently one of my computers' Linux partition was deleted by mistake. As the Linux partition held the multi-boot information, it made the computer stuck at grub prompt with no way of knowing where to load the OS images from. I think that is known as grub stage 2. I was able to find grub commands and successfully booted into Windows XP. So, if Linux partition of your multi-boot system is inadvertently deleted and you are stuck at grub prompt without access to Windows cd, then try this list of commands at grub prompt
grub>

grub> root(hd0, 0)
grub>makeactive
grub>chainloader +1
grub>boot

Note the first command " root(hd0, x) "here x could be a different number on your system...mine worked for 0.
This booted the Windows XP on the computer. But each time the computer is restarted after this, it's stuck at grub prompt and you have to follow the same list of commands. Another search and I found and installed a very nice utility called "mbrfix". Booted Windows and ran the utility; it created the master boot record (MBR) for Windows and fixed the problem and I could reboot without any problem.

Alternatively, I have read that if you have access to Windows cd, booting from it and running command "fixmbr" also does the trick.




14 comments:

Linux System Programming said...

Hi this is Irfan thanks for providing very useful information such a nice post please do keep posting.

reverse phone lookup said...

A perfect program to keep this updated. nice done.

web hosting articles said...

The servers will need continuous power, and space for storage at a data centre. Next, you will also need resources who will be responsible for maintaining the servers, keeping it upgraded, protecting the dedicated servers from various security threats, and in ensuring that the servers are always online. This doesn’t make sense, if you are planning to host applications only temporarily, or if you don’t have the capability to maintain such IT infrastructure. Hence, you can use the services of Cheap Web Hosting. This can be set up in-house, or you can outsource the function as well.

aisha said...

1992 Toyota Pick-Up Truck AC Compressor
ur blog is really nice and interesting, You have maintain it so beautifully that I truly like & enjoy it

MLM Software India said...

Thanks for sharing . very informative information. I will bookmarking this post.

http://mlmdevelopers.com/products/mlm-software/mlm-software-beta/features.html

sheena said...

Chevy W5500 Turbocharger

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
its nice to read a useful article for beginner like me. Some of points from this article are very helpful for me as I haven’t considered them yet. I would like to say thank you for sharing this cool article. Bookmarked and sharing for friends.

error 1058 said...

Hello,

i was looking for this. thanks for sharing this.. it helped me alot..

MLM Software India said...

I appreciate for post. I was looking for similar one. Can you update more details at link http://mlmdevelopers.com

Business economy world said...

Great information sharing

Online hotel booking jaipur said...

Thanks for sharing this information

internet marketing belgium said...

Awesome your post

PWT Sports Racing News said...

i appreciate for post ..thanks for sharing this

PWT Harbal Products said...

its helpful post

PWT Health Tips said...

very useful information