LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2005, 10:03 AM   #1
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Rep: Reputation: 15
Installing GRUB after mess up


Hello,

My setup consists of 2 hard drives, primary=Windows XP, secondary=Fedora 4. Due to some wierd reason I've had to restore my Windows boot loader so currently I have linux sitting on a seperate hard drive with no access to it.

What would be ideal is if I could install GRUB on the linux drive and use my BIOS to select which drive to boot from (so no GRUB or Windows boot menu, all done through BIOS).

I've tried to do this by booting the Fedora rescue mode from the DVD and installing GRUB... but no success... to be honest I havn't a clue what I'm doing, the commands I typed are:

grub
root (hd1,0)
setup(hd1)

With this I seem to be able to get into a boot menu from some previous installation (since I have an option to select Windows XP) -- though none of the options work.

Could someone please give me some instructions on how to get the above boot arrangement using the Fedora DVD rescue mode?

Cheers,
 
Old 10-08-2005, 10:27 AM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,061

Rep: Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854
Install grub on the master boot record of the boot drive then add this line to menu.lst

title Windows XP Amateur
rootnoverify (hd0,0)
chainloader +1

hd0,0 points to hard drive #0 and partition #0 which is /dev/hda1. Use your own parameters.

You'll be able to boot to windows or Linux from the boot menu.

Choosing drives from the BIOS all the time is a little dangerous and will get old fast.

Last edited by teckk; 10-08-2005 at 10:31 AM.
 
Old 10-08-2005, 10:52 AM   #3
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
OK, cheers for the reply, but you go a bit fast for me there...

My BIOS has an option where if I hold down ESC it brings up a boot menu. I wanted this setup so that if I removed a drive I could boot seamlessly from the other one.

How would I go about installing GRUB on the MBR of the primary drive (or any drive for that matter) using the Fedora rescue mode?

Whereabouts is menu.lst?

Cheers,
 
Old 10-08-2005, 12:26 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,061

Rep: Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854Reputation: 854
I'm on a FreeBSD machine today....... I believe that it is at
/boot/menu.lst
or
/boot/grub/menu.lst
Look for it with
locate menu.lst
That's a L not a 1

If you want to boot that way then leave your windows drive alone once you have it working the way you want. Then install grub on your Linux drive. You should be able to boot into recovery mode with your Fedora install disks, (I haven't used FC4 yet) and reinstall grub.

Installing grub has been answered scores of times on here. Search for hits.
http://www.linuxquestions.org/questi...by=&sortorder=
Good luck. Linux always makes you learn something.

Last edited by teckk; 10-08-2005 at 12:28 PM.
 
  


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
installing is gtk+-2.0 is a mess! pangox and libpng prob. r4f Linux - Newbie 3 09-25-2004 01:02 PM
Big mess RockHound Linux - Newbie 6 09-01-2004 07:10 AM
cleaning up the mess Shade00 Linux - Newbie 3 05-10-2004 01:20 AM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
IP Address mess...... Lost_linux_Noob Linux - Networking 2 10-01-2003 09:01 PM

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

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