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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-23-2004, 04:24 PM
|
#1
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Rep:
|
Need help fixing my GRUB user error.
Hello,
Recently while setting up GRUB I made the very silly mistake of installing GRUB in the boot sector(?) of my Windows XP partition. GRUB is now set-up properly in the MBR of my only hard drive, but unfortunately I broke Windows and it will not boot. ( Linux works just fine though, and the Windows partition is still intact )
At first, when trying to load Windows, GRUB would load GRUB, because it would just point to itself etc. It was an infinite loop of GRUB loading itself. So I tried booting from the Windows install CD to the recovery console, and then using fixboot.
fixboot /rebuild
Now the instance of GRUB on the Windows partition seems to be gone but Windows refuses to boot and gives an error like:
Disk Error.
Press any key to restart the system.
I'm out of ideas now, short of repartitioning and reinstalling everything ( which is not an option, really ). Please help me fix Windows so it boots.
P.S. - Strictly speaking this is a Windows issue, but I was hoping that GRUB users could she a little light on the problem.
Last edited by Mediocre_Driver; 01-23-2004 at 04:28 PM.
|
|
|
01-23-2004, 05:16 PM
|
#2
|
LQ Newbie
Registered: Jan 2004
Location: Texas, USA
Distribution: Slackware 9
Posts: 19
Rep:
|
Well if i was you i would personally start by making shure i have nothing of inportance on the windows drive by mounting it in linux and then storing it on an seperate disk, then i would remove everything important on linux the same way, then i would repartition and reinstall windows first. leaving room for linux and then install linux one last time. come down to it just start over by scratch!!! may be time comsuming but will be worth it!!!
|
|
|
01-23-2004, 05:31 PM
|
#3
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Original Poster
Rep:
|
Howdy again,
I'd rather as not. As I've mentioned the Windows partition is intact: I can access all the files etc. No data loss has occured. If possible I'd rather just fix the Windows boot loader.
On a side note: the disk is physically fine. This problem is not due hardware failure.
|
|
|
01-23-2004, 06:07 PM
|
#4
|
LQ Newbie
Registered: Jan 2004
Location: Texas, USA
Distribution: Slackware 9
Posts: 19
Rep:
|
well what windows are you using?
|
|
|
01-23-2004, 06:18 PM
|
#5
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Original Poster
Rep:
|
Good point. I should've mentioned that:
I'm using Windows XP Pro. The Windows partition is FAT32.
|
|
|
01-23-2004, 07:06 PM
|
#6
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
From the Windows cdrom try the command:fixmbr
Make sure you have a linux boot floppy handy.
|
|
|
01-23-2004, 07:15 PM
|
#7
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Original Poster
Rep:
|
Quote:
Originally posted by homey
From the Windows cdrom try the command:fixmbr
Make sure you have a linux boot floppy handy.
|
Already tried that. It spits out the same error. :-/
|
|
|
01-23-2004, 07:37 PM
|
#8
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
Ok, I was able to dupicate the problem on an XP / Linux dual boot system. I ran the command: dd if=/dev/zero of=/dev/hda1 bs=512 count=1
This zaps the boot sector of hda1 same as if you had installed the grub onto hda1 instead of hda.
To fix it, I booted up with the XP cdrom and selected R which is the repair option.
At the prompt c:> I typed the commands:
fixboot
fixmbr
Then of course, the grub was gone so I used the quicky grub boot disk to restore that with the commands:
Note: It would be good to know where the root partition is, so type rdev and write it down.
root (hd0,1)
setup (hd0)
Note: to make a quicky grub boot disk from Linux, type these commands:
fdformat /dev/fd0
mke2fs -m 0 /dev/fd0
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
|
|
|
01-23-2004, 09:00 PM
|
#9
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Original Poster
Rep:
|
Thank you very much. I will try the process out when I take down my box tonight. :-D
|
|
|
01-24-2004, 01:52 PM
|
#10
|
LQ Newbie
Registered: Nov 2003
Posts: 11
Original Poster
Rep:
|
Well, wiping the boot sector didn't do the trick. I repartitioned and reinstalled in the end anyway. :-/
Thanks for the help though, I appreciate it.
|
|
|
All times are GMT -5. The time now is 10:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|