LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-25-2003, 11:28 AM   #1
Gramphos
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
GRUB has installed itself over Windows


I have a major problem.

I've used LILO as a boot loader for some time (and still do), and when I changed kernel yesterday grub somehow got installed on my Windows partision. This makes it as if I select to boot Windows I get into grub, wher I cen select Windows to get into GRUB and so on (or any of my kernels to get into linux)

This is a major problem as I have to use Windows to be able to pay my rent. Which I'm supposed to do today.

Is there any easy way to get back the windows partision. (a windows boot disk does not recognize the format of the former Windows drive so I can't get into windows, and I don't want to reinstall as it would probably mean that I have to reformat the Windows partsion just as I'm starting to get the installation to work without crashing moe then 50% of the seesions)

Any help at all?
 
Old 09-25-2003, 11:53 AM   #2
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
When you get to the GRUB boot screen you say you choose Windows. Does this boot Windows?? If so then you just need to change your grub boot file. If you can't boot into windows through grub then there is a bigger problem lurking.

When you changed kernels did you keep an option to boot into your old one?? What distro you are using might be helpful for someone else to help you.

rberry88
 
Old 09-25-2003, 12:16 PM   #3
Gramphos
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I've solved the problem. Figuring out what I had done helped alot.

I remember that I was thinking about changing to GRUB yesterday, but changed my mind. Anyway I had already run the command to install GRUB (or so I thought), so I just did a LILO -v to skip it.

Now I realized that I must have run `grub-install /dev/hdc[b]1]/b]` instead of `grub-install /dev/hdc` and as a result of not knowing what I did I replaced the boot sector of the Windows partision with GRUB.

To answer rberry88's questions: This resulted in nothing at first when I were just jumping between differen kernels yesterday (yes, I kept my old kernel), but when I today were going to start Windows to pay my rent (as my bank doesn't support Linux ) I got into GRUB. grub had the option to boot my kernels and Windows, but the option Windows just started GRUB again, and I could keep that loop on for infinity. Booting linux from GRUB worked just fine, so I got here and posted for help. Well, actually first I tried to boot by CD rom and SYS c: but it wouldn't recognize the file system.

As I did want to fix this problem as sson as possible I tried to find any help already available on it, and finaly I found this page after half an hour.

So I did
dd if=/dev/zero of=/dev/hdc1 bs=512 count=1
booted from the CD again, and then did
sys a: c:

And it all worked.
 
Old 09-25-2003, 03:36 PM   #4
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Cool, glad to see you got it worked out. Booting issues and compiling new kernels seem to give me the biggest stress tests but it's all worth it once all is solved.

rberry88
 
  


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
Not only can I not get the grub installed correctly... Hunter69 Fedora - Installation 2 03-06-2005 06:35 PM
Which is installed? Lilo or Grub? swdavison Linux - General 5 01-30-2005 03:47 PM
GRUB is gone... After installed Windows... d_kote23 Linux - Newbie 9 08-27-2004 01:36 AM
Installed Fedora, which installed Grub - how to boot to Knoppix? squall14716 Linux - General 3 03-15-2004 03:11 PM
removing grub from a new pc with no other os installed berrioshernan Linux - General 4 12-02-2003 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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