LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2006, 01:56 PM   #1
shahidsaab1
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
Deleted linux partition on a dual boot system...made mistake?


Hey everyone,

I am new to linux. I think I made a mistake and now I am getting a GRUB LOADER Error 21. I had a dual boot system of winxp and ubuntu. On a single hdd, winxp had 80gig partition with linux 30gig partition. After many months, I decided I wanted to remove ubuntu and through partition magic in winxp I deleted the main linux partition, not noticing the smaller swap linux partition. Now I get the error 21. Can I salvage my system without having to reformat the entire drive? What should I do now? Thanks in advance for your help.
 
Old 07-03-2006, 02:11 PM   #2
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Hi,

The easiest way is to insert your WinXP disk, goto rescue mode and type "fixmbr".
This will fix your Master Boot Record (remove grub) and Windows should start.

good luck
 
Old 07-03-2006, 02:12 PM   #3
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Rep: Reputation: 30
Well I don't think this is terminal... If I read your post right you have simply wiped Linux off your hard drive - and you want to go back to just Windows (strange but OK...)

Now I'm no expert on this and if this is wrong I hope someone else will step in...

All you need to do is to put back the MBR (Master Boot Record) that Windows had (and that Ubuntu replaced with Grub) the information that Grub needs to boot isn't there anymore - that was in your Linux partition.

As I understand it - and please check first - to restore the Windows MBR you need to put in a Windows rescue disk - or boot from the Windows CD and run the command fdisk /MBR which is supposed to recover the original boot record. I've not done it myself...

The other option would be to reinstall Ubuntu (or another Linux distro) which should find Windows and set up Grub all over again and allow you to dual-boot again.

Hope this helps...

Mark
 
Old 07-03-2006, 02:14 PM   #4
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Rep: Reputation: 30
Damn! A quicker typist than me! (Not difficult)

Well done DeroB - got there first... (and a better reply)

Mark
 
Old 07-03-2006, 02:19 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
Well, if you removed linux partition, GRUB will not work. Try booting from DOS (Windows) boot-cd and run fdisk /fixmbr (or simply mbr, I don't remember, must be mentioned in /?).
 
Old 07-03-2006, 02:23 PM   #6
shahidsaab1
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your speedy replies! Damn, the Linux community is fast.
 
Old 07-06-2006, 01:38 AM   #7
shahidsaab1
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I was just able to try the fix...it worked beautifully. Thanks again!!!!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to safely remove linux partition from a dual boot system? parv Linux - Newbie 7 05-01-2012 10:59 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
yoper install fail on dual boot win-linux system coz `linux partition not found` coolview210 Yoper 5 11-24-2004 03:04 PM
emergency, deleted linux partition by mistake snakeo2 Linux - Newbie 11 03-26-2004 07:40 AM
how to partition hard drive for dual boot xp-home and linux system sabaki Linux - Laptop and Netbook 5 03-06-2004 03:10 PM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration