LinuxQuestions.org
Review your favorite Linux distribution.
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 09-08-2004, 08:57 PM   #1
RoaCh Of DisCor
Member
 
Registered: Apr 2004
Location: Washington State
Distribution: SuSE 9.3 / Slackware-Current
Posts: 701

Rep: Reputation: 30
Ahh help! (Grub Boot Loader Issue).


I installed windows on a seperate partition, now my bootloader is gone..and I can no longer choose to boot into fedora core 2. How can I fix this! I know it's still installed and there. Thanks!!

I only installed windows so a piece of hardware would work.other wise i hate it! I've been on windows for 5 minutes, and can't stand it
 
Old 09-08-2004, 09:45 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
me thinks your mbr has been overwritten by windows.

do you have a linux boot disk or a floppy rescue disk ?

check also if FC can be used as a rescue cd ? Can't help you with FC, try search of this forum to see how its done
 
Old 09-08-2004, 09:47 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
You'll need a bootable linux CD so you can get access to your linux partitions and reinstall grub from there. Most distribution install CDs offer a way to get to a prompt so you can mess around, and some may even have an easy way to repair your bootloader. I feel your pain, btw. It sucks that Windows pays absolutely no attention to what's already on your machine when it installs.

A possible solution for the future - some BIOSes allow you to restrict access to the boot sector (to prevent viruses). If you enable this, you may be able to reinstall windows without letting it overwrite your MBR.
 
Old 09-08-2004, 10:38 PM   #4
RoaCh Of DisCor
Member
 
Registered: Apr 2004
Location: Washington State
Distribution: SuSE 9.3 / Slackware-Current
Posts: 701

Original Poster
Rep: Reputation: 30
okay..

thanks for the help so far .

On my cd1..it has a rescue option. I did some searching on these forums, and found instructions on how to reinstall grub from the rescuse console. I did this...but once grub is installed...and I reboot...I get a prompt with

Grub >

And that's it. I really don't know what to do from there.

Help apreciated. Thanks.
 
Old 09-08-2004, 11:04 PM   #5
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
See this page for a good intro: http://www.linuxjournal.com/article.php?sid=4622

executive summary:
grub> root (hd0,4)
grub> kernel /vmlinuz root=/dev/hda5
grub> boot

Once you get that to boot successfully, you should be able to reinstall grub from your existing config (the rescue CD appears to have put an unconfigured version on your MBR).
 
Old 09-08-2004, 11:06 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Nuts, I've confused your post with someone else's - I don't know what your root partition is, so the executive summary will only work if it's hda5.
 
Old 09-09-2004, 12:27 AM   #7
RoaCh Of DisCor
Member
 
Registered: Apr 2004
Location: Washington State
Distribution: SuSE 9.3 / Slackware-Current
Posts: 701

Original Poster
Rep: Reputation: 30
I don't understand

Nothing I try works. I tried the kernel /vmlinuz thing..and it says vmlinuz is an invalid command or something. I'm not sure..but nothing works.

Fedora is installed on /dev/hda7 I believe btw.
 
Old 09-09-2004, 12:41 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I have written a tutorial here
http://www.linuxquestions.org/questi...hreadid=198155

what we are going to do with your help is re-install grub to mbr. Windows has only overwritten the mbr and not editted in any way your /boot/bgrub/menu.lst file.

Do you have a boot disk you can use to get to linux direct?

Otherwise can you use the rescue cd to mount your real /boot partition and your / partition and post your /boot/grub/menu.lst contents and your /etc/fstab contents

then we can make a start
 
Old 09-09-2004, 12:55 AM   #9
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
aus9's tutorial looks very good, so read that if you can.

The 'kernel /vmlinuz' line needs to point to your installed kernel - use your rescue CD to find out what this is if /vmlinuz is not valid (/boot/vmlinuz may work if this is the case). Otherwise it'll be something very annoying to type, like vmlinuz-2.6.3-super-street-fighter-alpha.
In this case, it couldn't work because I gave you commands for hda5, not hda7.

new exec summary for hda7:
grub> root (hd0,6)
grub> kernel /vmlinuz root=/dev/hda7
grub> boot
 
Old 09-09-2004, 04:39 AM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I am flattered my your kind remarks, between the 2 of us he doesn't stand a chance (joke)

umm I have just made up a rough step by step for grub and rescue cd here
http://www.linuxquestions.org/questi...hreadid=228496

since I notice that CroMagnon is a friendly neighbour across the Tasman I am off to the local dairy......choice heh?
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
GRUB trashed Win2K Boot Sector. AHH! penguinlnx Linux - Software 3 04-22-2005 06:21 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
grub boot loader issue mbegovic Linux - Software 2 04-17-2004 04:59 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

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

All times are GMT -5. The time now is 08:01 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
Open Source Consulting | Domain Registration