LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2004, 04:50 PM   #1
CuriousGeorge
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
Exclamation removing GRUB killed my XP HDD?!? (help!)


Here is the situation...

I had Red Hat 9 on 80GB drive and winXP on 160GB(NTFS) drive. GRUB started on boot-up and asked me which I wanted to load. I didn't really use Linux very much, just installed it to play with it and learn. All fine and dandy.

I wanted to use the 80 GB drive for another computer, with winXP on it, so I unplugged the 160GB drive, plopped in the winXP disk and formatted and installed XP on the 80GB. Everything is ok so far.

I switch back to the 160GB and it won't boot XP, as expected. I stuck the XP CD in and ran fixboot and fixMBR which I thought would do the job. No such luck. Booting it gives "NTLDR is missing. Press any key to restart"

I then hooked up both drives and booted the 80GB one. I ran partition magic 8 and on the 160GB it shows first a 500MB linux swap (status=none, primary partition), then the rest (152,123 MB) is a FAT partition!? (status=active, primary partition) It also gives me errors saying "FAT copies are not identical" and "cross-linked files were found".

'My Computer' shows it as a 10MB FAT drive.

If I erase the linux swap partition will it boot? I'm almost afraid to touch it now. I REALLY don't want to loose the data on it.

Does anyone have any ideas on what GRUB changed on my 160 GB drive and how to fix it so it is bootable, or at least readable?
 
Old 01-05-2004, 05:08 PM   #2
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
So are you saying you want to trash linux off of your system? Then delete the swap partition. If your hard drive is something like this order:

linux swap(82), NTFS, ext#/reiserFS

then delete the linux swap, then figure out how to MERGE your empty space with your NTFS(If you can't go directly, then format the empty space as NTFS through PM, and then merge) You won't lose any data from your existing space, it'll just fill up the beginning of the new, bigger partition. After that, I'd reformat the second partition as ntfs and use it as a backup for files you make through Windows(Documents, etc). I'd also defragment. After all of that, I'd split up your first 80GB partition up into 3 or 4 partitions so that way the formatting doesn't eat up about 5-10GB of your available space.
 
Old 01-05-2004, 05:44 PM   #3
CuriousGeorge
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Correct. Linux is no longer on the system. Whatever GRUB did to my XP bootloader is what I'm trying to reverse.

I just now erased the Linux swap partition, and left it as unallocated space, but booting still gives me the NTLDR missing error. I guess that is my main question. How do you fix this error?
 
Old 01-05-2004, 10:24 PM   #4
AskMe
Member
 
Registered: Jul 2003
Posts: 123

Rep: Reputation: 15
Boot from Windows XP CD and try to choose repair windows when menu comes, I think it will solve the problem of missing NTLDR.
 
Old 01-06-2004, 10:18 AM   #5
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Make sure that you overwrote Grub's entry in the mbr.
 
Old 02-06-2004, 06:03 AM   #6
vooduhal
LQ Newbie
 
Registered: Nov 2002
Posts: 2

Rep: Reputation: 0
Wow, I didn't realize I was member. Anyway, there are actually two things you need to do here. First, either boot off of a live linux disk or DOS boot floppy. run fdisk to make sure that your XP partition is the bootable partition (Doing this won't delete data because you are not repartitioning). After you change the bootable partition reboot and boot to your Windows XP install CD. When prompted choose repair, this will start the repair console. It should ask you which windows installation you want to repair. If you've only got one, only one will be listed. Select the one you want to fix and then you will be prompted for the administrator password. Once you enter that you will dropped to a dos prompt. Type: fixmbr It will then ask you (Like ever other MS product in the world) are you sure? Obviously say yes and it will restore your working MBR. Have fun.
 
  


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
Safely removing ext hdd nanoprobe Linux - Hardware 1 07-24-2005 08:34 PM
linspire killed grub...now no fc3... cyanide_2 Fedora 3 02-22-2005 10:22 AM
Installing Arch--bootloader killed my Grub busbarn Linux - Software 4 03-13-2004 11:34 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 10:16 AM
Grub killed my kernel! I think... =P SmackMyBishop Linux - General 2 08-03-2002 11:38 PM


All times are GMT -5. The time now is 04:26 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