LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 08-07-2006, 03:57 AM   #1
GRboss
LQ Newbie
 
Registered: Aug 2006
Location: Thessaloniki, GR
Distribution: Ubuntu 7.10
Posts: 6

Rep: Reputation: 0
The answer is half a line, but...


... unknown to me

I have installed FC5 on a laptop, but on purpose I did not install GRUB (for some reason). Now, how can I boot into FC5 using the installation DVD?
 
Old 08-07-2006, 05:03 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
When the menu screen is displayed type; linux rescue
 
Old 08-07-2006, 12:07 PM   #3
GRboss
LQ Newbie
 
Registered: Aug 2006
Location: Thessaloniki, GR
Distribution: Ubuntu 7.10
Posts: 6

Original Poster
Rep: Reputation: 0
And then?

It mounts my installation as read/write in /mnt.

Is there any way to install GRUB on a CD-R via rescue mode?

Many thanks for the replay
 
Old 08-07-2006, 12:33 PM   #4
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Not sure about actually installing the grub rpm from a rescue disc, I don't know anything about FC5. But it's easy to set it up manually. Once you get booted, you can install the rpm properly.

You want all the stage* files from the rescue disc, put them in /boot/grub on the hard drive. Then run grub and do a

Code:
root (hdX,Y)
where X is your drive number (starting from 0), and Y is the partition number, again from 0, e.g. /dev/hda1 is (hd0,0), /dev/hda2 is (hd0,1), /dev/hdb1 is (hd1,0) and so on.

Then do
Code:
setup (hdX)
It will tell you if it's successful. Assuming it is, create /boot/grub/menu.lst with something like

Code:
title Linux
  kernel /boot/grub/vmlinuz ro root=/dev/hdaX
and give it a try. If it doesn't work, hit e at the grub menu and fiddle with the parameters. Once you get it working, you can reinstall grub from rpm and edit the menu.lst with the working parameters. Note that if you move any of the stage files, you need to run grub and 'setup (hdX)' again. After you get it working, making the stage files immutable is a good idea (chattr +i /boot/grub/stage*), to prevent accidents.

Note that the /boot/grub/vmlinuz path assumes that /boot is not on a separate partition. If it is, you just need /grub/vmlinuz, since it is relative to _grub's_ root device, not the system root, which may be different (i.e. the grub root is whatever partition /boot is on).
 
Old 08-07-2006, 01:56 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Everything "ioerror" says holds true* if grub is installed..........

Boot into rescue mode and use chroot as per the on-screen instructions when ready check that the grub package is installed by typing; rpm -qa grub

If you get a response back then your OK, example response;

$ rpm -qa grub
grub-0.97-10

You can install grub by typing something; grub-install --recheck /dev/hda

If grub is not install (no response back) then installing the rpm package may be done by the following;

mknod /tmp/tmpcdrom b 22 0
mount -t iso9660 /tmp/tmpcdrom /cdrom
cd /tmp/tmpcdrom/Fedora/RPMS (not sure if this is the correct path but it is close)
rpm -ivh grub*.rpm


* The Red Hat family uses /boot/grub/grub.conf instead of /boot/grub/menu.lst but the menu.lst file is symlinked to grub.conf so no real difference.

$ ls -al /boot/grub/menu.lst
lrwxrwxrwx 1 root root 11 Nov 29 2005 /boot/grub/menu.lst -> ./grub.conf
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH: read every line in the files and use the line as parameters as another program tam3c36 Programming 10 12-07-2010 01:42 PM
C++ text file line by line/each line to string/array Dimitris Programming 15 03-11-2008 08:22 AM
how do I install half windows98 half linux? xandar Linux - General 3 09-07-2005 03:23 AM
ADSL Router line 1 Mandrake 10. Line 2 is win xp pro virtthemaest Linux - Networking 0 08-05-2004 12:35 AM
linux scripting help needed read from file line by line exc commands each line read atokad Programming 4 12-26-2003 10:24 PM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration