LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2004, 09:13 AM   #1
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
Install grub on running system


I recently installed Fedora Core 1 on my system and it is a dual boot system with Windows XP. During installation I got a message that becuase of the DOS partition it found, it suggests I do not load grub (or lilo) and use a boot disk.
Well, now my boot disk (or floppy drive) is crapping the bed on me and I can only boot with it 1 out of every 20-30 tries.
I thought I could just make a boot "floppy" on CD - but that is causing me alot of trouble. How can I simply install grub if I never installed it in the first place?

Thanks in advance.
 
Old 09-11-2004, 09:26 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you want to wait for a successful floppy boot and boot into linux, you can login as root and run

grub-install /dev/hdx (the hard disk where you want to overwrite the mbr with grub e.g. hda or hdb ...)

You can also get into rescue mode using CD1 from the Fedora Distribution, type linux rescue.

Follow the instructions,

at the # prompt, type chroot /mnt/sysimage

now run

grub-install /dev/hdx
 
Old 09-11-2004, 01:28 PM   #3
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Original Poster
Rep: Reputation: 15
Oh boy. Okay I did that, but now I boot to a grub prompt. How do I get the nice gui interface with the Linux/DOS option?
I couldn't figure out how to get either one booted and had to use the floppy again. whew - I got lucky again.
 
Old 09-11-2004, 10:12 PM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
When you are left at the grub> prompt, you can type

root (hd<tab>,<tab>)
kernel /vmlinuz<tab> root=/dev/hdxx ro
boot

This will boot you into linux. You are required to know the location of your /boot and / partitions. Of course using the TAB key will bring up options so you can pick up the right partition.

Here is a sample grub.conf

Code:
default=1
timeout=5
title Fedora Core 1
        root (hd0,5)
        kernel /vmlinuz ro root=/dev/hda9 hdd=ide-scsi rhgb vga=788
        initrd /initrd.img
title MicrosoftWindows
        rootnoverify (hd0,0)
        chainloader +1
(hd0,5) points to my /boot partition
/dev/hda9 points to my / partition


Last edited by ppuru; 09-11-2004 at 10:16 PM.
 
Old 10-12-2004, 03:29 AM   #5
precision
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Distribution: Debian
Posts: 18

Rep: Reputation: 0
Quote:
When you are left at the grub> prompt, you can type

root (hd<tab>,<tab> )
kernel /vmlinuz<tab> root=/dev/hdxx ro
boot

This will boot you into linux. You are required to know the location of your /boot and / partitions. Of course using the TAB key will bring up options so you can pick up the right partition.
Is there any way to automate this so that it immediately boots to linux without having to type the commands at the grub prompt?
 
  


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Can I install Slackware on a running system? PeteRossi Slackware - Installation 2 11-16-2005 07:48 PM
Running GRUB at its prompter grautu Linux - General 6 09-19-2005 09:01 AM
install grub, lilo running.. slack10.1 rkrishna Slackware 16 06-22-2005 05:59 AM
grub-install failure on a syslinux system chrisplinux Linux - General 2 07-14-2004 10:57 AM

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

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