Click to See Complete Forum and Search --> : Setting up grub


ghostmango
06-18-2004, 02:54 AM
I'm trying to setup my grub on my gentoo box...

my partitions are:
/dev/ide/host0/bus1/target0/lun0/part1 /boot
/dev/ide/host0/bus1/target0/lun0/part2 swap
/dev/ide/host0/bus1/target0/lun0/part3 /
/dev/ide/host0/bus1/target0/lun0/part4 fat32

here is my grub.conf:

default 0
timeout 5

splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.5
root (hd0,0)
kernel /kernel-2.6.5-gentoo root=/dev/ide/host0/bus1/target0/lun0/hd2d


there seem to be something wrong with the root=/ line... can somebody point out the error for me???
thank you so much

gehidore
06-18-2004, 04:38 AM
try /dev/hda

Uranus
06-18-2004, 06:01 AM
I'd indeed try /dev/hdXX instead - perhaps /dev/hdaX (where X is the partition number), not just /dev/hda.
"fdisk -l" can give you the list in paths that you need probably.
HTH

XiaoKJ
06-18-2004, 06:31 AM
kernel /kernel-2.6.5-gentoo root=/dev/ide/host0/bus1/target0/lun0/hd2d

I would like to see if your convention works....

BTW, the hd2d is definitely wrong. I would like you to try this line instead:kernel /kernel-2.6.5-gentoo root=/dev/ide/host0/bus1/target0/lun0/part3

maybe that should work -- and without the symlink it should be faster... :D (faster by 0.1ms...)

try it -- if it doesn't work then try /dev/hda3, and if it still doesn't tell us, and we will troubleshoot again.

ghostmango
06-18-2004, 01:16 PM
from what i see... /dev/hda seems to be my cdrom
weird.... perhaps it's because i have a laptop? (Dell inspiron 5100)


*edit*
oh i got it! While i was looking at the load up screen i noticed this device on hdc so i tried /dev/hdc3 and it worked!!! little weird for me, why it should be at hdc... but anyways it works!!!

thanks everyone

bradfordgd
06-18-2004, 01:35 PM
I think it would all depend on what BUS the cdrom, hard drive, etc are plugged into.

gehidore
06-18-2004, 03:04 PM
thanks uranus, that was my mistake, i was thinking of the root (hd0) for installing to mbr.

Uranus
06-18-2004, 03:17 PM
Originally posted by ghostmango
from what i see... /dev/hda seems to be my cdrom
weird.... perhaps it's because i have a laptop? (Dell inspiron 5100)
*edit*
oh i got it! While i was looking at the load up screen i noticed this device on hdc so i tried /dev/hdc3 and it worked!!! little weird for me, why it should be at hdc... but anyways it works!!!
thanks everyone
Heh, funny - I have a Dell Inspiron 5100 as well. I had the same thing, which is why I told you the option "fdisk -l", that was how I found out. There is also a lot of info on the computer at tuxmobile and linuxlaptops - I saw that later unfortunately, since it took me some time to find out.
Sam

ghostmango
06-18-2004, 04:59 PM
thank you all for all your help!!!

kevinalm
06-18-2004, 06:40 PM
Originally posted by ghostmango
from what i see... /dev/hda seems to be my cdrom
weird.... perhaps it's because i have a laptop? (Dell inspiron 5100)


*edit*
oh i got it! While i was looking at the load up screen i noticed this device on hdc so i tried /dev/hdc3 and it worked!!! little weird for me, why it should be at hdc... but anyways it works!!!

thanks everyone

Not weird, normal. On your system hdc = (hd0)
Grub scans the sequence hda -> hdh and assigns an hdN if and only if it finds a hd. N starts at 0 and no N is skipped. info grub ;)