LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2005, 03:05 PM   #1
chuckk
LQ Newbie
 
Registered: Aug 2005
Location: Philadelphia
Distribution: Debian 2.4.27
Posts: 8

Rep: Reputation: 0
Wiped Linux drive, unable to boot WinXP, Grub errors


So I installed Linux a while back on my secondary hd. Grub was letting me choose which drive to boot when I powered up. But I was almost out of space on my primary drive, and hadn't used Linux much, and had nothing saved under linux. So I went into Windows disk management and repartitioned the secondary drive back to windows. I subsequently moved about 20 gigs of stuff back onto it and deleted it from the primary drive.

Now, when I boot up, Grub tries to start and I get the famous "loading .5/Error 17" message. I see some references in the forum, but not clear on a solution.

I have a windows OS cd (not sure if it's bootable), but when I try it it says it can't read the CD drive.

I'm thinking my only option may be to put my secondary drive in a friend's pc, save my data from it, and then reinstall linux and grub on it.
Any other ideas?

Thanks.

-Chuckk
 
Old 12-12-2005, 03:09 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Run fixmbr from windows to write xp loader to MBR. That'll make windows bootable from harddrive again.
 
Old 12-12-2005, 03:58 PM   #3
chuckk
LQ Newbie
 
Registered: Aug 2005
Location: Philadelphia
Distribution: Debian 2.4.27
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bigrigdriver
Run fixmbr from windows to write xp loader to MBR. That'll make windows bootable from harddrive again.

This will sound stupid, but this will involve a bootable CD, right? I will go home and try it, but I couldn't use the cd before...
Is it possible to change MBR from BIOS? I can access BIOS, btw.

Last edited by chuckk; 12-12-2005 at 04:00 PM.
 
Old 12-12-2005, 04:04 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
When you re-partioned the Linux drive, you lost the config file that grub looks for.

To fix the mbr so windows works, you need the installation CD. If it wont read that CD on boot-up, then check the bios settings for booting from CD. If all of this is OK, then you may have bad CD or bad drive.

What exactly is happening when you try to boot from CD??
 
Old 12-12-2005, 04:46 PM   #5
chuckk
LQ Newbie
 
Registered: Aug 2005
Location: Philadelphia
Distribution: Debian 2.4.27
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany
When you re-partioned the Linux drive, you lost the config file that grub looks for.

To fix the mbr so windows works, you need the installation CD. If it wont read that CD on boot-up, then check the bios settings for booting from CD. If all of this is OK, then you may have bad CD or bad drive.

What exactly is happening when you try to boot from CD??

Well, this time it worked. I guess I did something wrong before. I ran fixmbr and my system is up and running again!

bigrigdriver, you're a saint. Thanks!

-Chuckk
 
  


Reply



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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
/boot mysteriously empty, but i can still boot into Linux/WinXP via grub. hypoglycemic Linux - Software 4 07-18-2005 05:42 AM
Grub boot winxp & Linux yongsp Red Hat 1 03-04-2005 05:11 AM
Install linux (mandrake 9.1) over win 98 and still boot linux and winxp(drive E:) BlueTaurus13 Linux - General 12 09-01-2003 08:03 AM
WinXP, Linux 7.2 - dual boot with grub - help! iamvrc Linux - Software 2 01-25-2002 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:54 AM.

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
Open Source Consulting | Domain Registration