LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-22-2004, 09:00 AM   #1
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
grub booting questions


I reinstalled grub with grub-install '(hd0)' and restrart system
when reboot , system into grub mini-bash
I had to run configfile (hd0,0)/grub/grub.conf to load grub.conf file and load kernel

what's wrong with my grub?
I reinstall grub again with into grub mini-bash

root (hd0,0)
setup (hd0)


my partions table message:
/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /

pls give me an instruction

thx very much and Merry Christmas
 
Old 12-22-2004, 12:54 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Could you post your grub.conf file?

------------------------
Steve Stites
 
Old 12-22-2004, 08:35 PM   #3
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Original Poster
Rep: Reputation: 15
thanks, my /boot/grub/grub.conf file:

default=0
timeout=10
title mytitle-1
root (hd0,0)
kernel /vmlinuz-2.4.21-15.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-15.ELsmp.img
 
Old 12-23-2004, 03:09 PM   #4
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
It is my understanding of grub, the value you put root= you specifies the device for this lable. This is where the root filesystem is mounted.

In your grub.conf file, where you have:

Code:
 root=LABEL=/
you should have something like this:

Code:
root=/dev/sda3
or whatever device the primary partition of your hard drive is.

-Corey

Last edited by cormander; 12-23-2004 at 03:19 PM.
 
Old 12-31-2004, 02:11 AM   #5
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
sorry for chipping in... but i'm having a similar problem... here's my grub.conf
Code:
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
 
title Red Hat Linux (2.6.6-1)
        root (hd0,0)
        kernel /vmlinuz-2.6.6-1 ro root=/dev/md2
        initrd /initrd-2.6.6-1.img
 
title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=/dev/md2 hdd=ide-scsi
        initrd /initrd-2.4.20-8.img
i'm running a fileserver with RAID1... things worked fine initially but after some time, did not recall doing anything to it... now i have to manually load the kernel everytime i reboot...

any ideas what went wrong?

~WiLL~
 
Old 12-31-2004, 03:42 AM   #6
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Original Poster
Rep: Reputation: 15
hmm....
check your /boot/grub directory, can you find the file menu.lst exist ?
if not, you can create it and must accord this format:
ln -sf ./grub.conf menu.lst
reboot, then grub was fine.
 
Old 12-31-2004, 05:54 AM   #7
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
yup, it's there, as usual

anymore tips?
thanks for the reply!
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Booting more than one linux - GRUB and \boot partition questions rozoweskarpetki Linux - Newbie 8 05-25-2005 05:58 AM
Booting xp with Grub corbinc1 Linux - Software 10 03-10-2005 11:20 PM
GRUB and Booting from 2 HD Psychocop156 Linux - Newbie 2 07-08-2004 06:19 PM
Booting GRUB. linuxnewbie001 Linux - Newbie 1 08-01-2003 02:44 PM

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

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