LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-14-2005, 02:39 PM   #1
mysak
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Deleted linux partition, how to boot Windows partition?


I have an Intel box on which I previously was running both Linux and Windows. The boot loader that is installed is GRUB. I deleted the Linux partition (accidentally), and now when I reboot the machine Windows does not boot like it used to (Windows was the default OS). Instead, the system comes up with a "grub > " prompt.

How do I boot windows directly from grub? Please help!
 
Old 12-14-2005, 02:51 PM   #2
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
You won't be able to boot with Grub, because stage 2 of GRUB was on your Linux partition, which is now wiped.

The best bet is going to be to repair the master boot record (MBR) using your Windows tools. For example:
http://www.microsoft.com/resources/d...d_tro_ldau.asp

Hint: Read very carefully about the risks of playing with the MBR. If you damage your partition table you may not be able to recover Windows. In the future you should always have a bootable rescue floppy disk (or CD).

Hint: If you haven't backed up your critical Windows data, do that first. You can do this without booting Windows for example by booting from a live CD (Knoppix for example) and copying the essential data to whatever media you have available.
 
Old 12-14-2005, 02:59 PM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
The following page is for SUSE Linux, but applies to other distributions as well and offers several methods to restore the Windows MBR:
http://portal.suse.com/sdb/en/2002/0...tall_grub.html
 
Old 12-14-2005, 05:22 PM   #4
mysak
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guys! "fdisk /mbr" did the trick!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted linux partition (using partition magic) Geminias General 7 10-09-2005 05:14 PM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 02:31 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
Deleted XP partition - Can't boot linux mansonmuni Linux - Hardware 6 12-26-2003 12:18 AM
Linux Partition deleted -- how to boot now?? tacSHooter Linux - Newbie 2 12-26-2002 02:10 PM


All times are GMT -5. The time now is 05:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration