LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fixing partitions in GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/fixing-partitions-in-grub-221350/)

aryth 08-23-2004 11:35 AM

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.

tuxrules 08-23-2004 11:40 AM

Hi,

post your grub.conf and lets look at it.

aryth 08-23-2004 11:41 AM

How do I look at my grub.conf ? :-/

tuxrules 08-23-2004 11:43 AM

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.

class_struggle 08-23-2004 11:44 AM

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.

aryth 08-23-2004 11:46 AM

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

aryth 08-23-2004 11:49 AM

When I type "(hd0," and hit tab, it just keeps showing "grub>(hd0,"

aryth 08-23-2004 11:59 AM

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

[EDIT : I am an idiot :-/]

tuxrules 08-23-2004 12:03 PM

you would want to post the content of the file so we can have a look at it.

aryth 08-23-2004 12:04 PM

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

class_struggle 08-23-2004 12:05 PM

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.

aryth 08-23-2004 12:12 PM

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!!!!!]

WhiteChedda 08-23-2004 12:18 PM

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.


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