LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2004, 12:35 PM   #1
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
fixing partitions in GRUB


After installing redhat 9, GRUB loads, but it does not seem to recognize ANY partition? My goal was to create a winxp/redhat 9 dual boot system on my laptop, but now all that happens is GRUB loads and I am completely lost as to how to unhide them and/or register the two partitions with GRUB. Any help would be greatly appreciated.
 
Old 08-23-2004, 12:40 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Hi,

post your grub.conf and lets look at it.

Last edited by tuxrules; 08-23-2004 at 12:41 PM.
 
Old 08-23-2004, 12:41 PM   #3
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

How do I look at my grub.conf ? :-/
 
Old 08-23-2004, 12:43 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
its in your /boot/grub directory. At terminal (you have to be root), type the following command

#cat /boot/grub/grub.conf

This will produce an output on your screen, copy paste it over here and we can go from there.
 
Old 08-23-2004, 12:44 PM   #5
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
if you type
(hd0,
and then <tab>, grub should give you a list of available partitions as it seeks to autocomplete your command.

grub has useful functionality, but you'll need to learn about it, I recommend Daniel Robbin's piece on grub, out there in ibm pdf format if you look under google. It's easy reading htoug hi t wil take 20 mins or so.

The title of your post, "fixing" is alot to ask out of grub, but I supppose that's why I read it, it stuck out. IT will certainly "see" partitions if given half the chance.
 
Old 08-23-2004, 12:46 PM   #6
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I get error 15: File not found when I try cat /boot/grub/grub.conf , as well as cat grub.conf, trying to use the find command
 
Old 08-23-2004, 12:49 PM   #7
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
When I type "(hd0," and hit tab, it just keeps showing "grub>(hd0,"
 
Old 08-23-2004, 12:59 PM   #8
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Okay, I have a grub.conf file now :-/ Or at least, it's being read. What now?

[EDIT : I am an idiot :-/]

Last edited by aryth; 08-23-2004 at 01:04 PM.
 
Old 08-23-2004, 01:03 PM   #9
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
you would want to post the content of the file so we can have a look at it.
 
Old 08-23-2004, 01:04 PM   #10
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Stupid me.

#grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
#NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda2
default=1
timeout-10
splashimage-(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-6)
root (hd0,1)
kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20.6.img
title DOS
rootnoverify (hd0,0)
chainloader +1

Last edited by aryth; 08-23-2004 at 01:05 PM.
 
Old 08-23-2004, 01:05 PM   #11
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
that might be two <tabs> in quick succession that are needed, bash style.
if you type "help" you'll get a list of poss commands. there's one there for tellign grub to use a certain conf. file as long as you know it's path and name.
grub paths are slightly different

hd0,0=hda1
hd0,1=hda2
Hd1,3=hdb4
etc etc

You shold read about tho.
 
Old 08-23-2004, 01:12 PM   #12
aryth
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm, well I've managed to actually boot into the windows segment by just following the commands in the grub.conf... will try Linux next...

[EDIT: Excellent, linux is booting, too! Now, is there any way to automate this? Or will I have to type in the instructions every time? Thanks for all of your help!!!!!]

Last edited by aryth; 08-23-2004 at 01:13 PM.
 
Old 08-23-2004, 01:18 PM   #13
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
Quote:
Originally posted by aryth
Hmm, well I've managed to actually boot into the windows segment by just following the commands in the grub.conf... will try Linux next...

[EDIT: Excellent, linux is booting, too! Now, is there any way to automate this? Or will I have to type in the instructions every time? Thanks for all of your help!!!!!]
Edit grub.conf to contain the commands you used for the appropriate selection.
 
  


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
Fixing ext2/3 partitions edesmarais Linux - Hardware 8 11-16-2005 12:03 PM
Fixing GRUB 60cents Fedora - Installation 17 04-17-2005 11:52 PM
fixing my partitions toddncl Linux - General 0 07-12-2004 12:58 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 04:52 PM
Need help fixing my GRUB user error. Mediocre_Driver Linux - Software 9 01-24-2004 01:52 PM


All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration