Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB Problems... I think.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sat Oct 18, 2003 11:10 pm    Post subject: GRUB Problems... I think. Reply with quote

Ok, heres the prolbem...
I've installed the x86 version of Gentoo Linux (I think) off the downloadable ISO image.
Upon reboot, the furtherest I am getting is just past the purple GRUB screen, on a black background with white writing, my screen reads...

Booting 'Gentoo (genkernel)

root (hd0,0)
Filesystem type is extf2s, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.21 root=/dev/hda

Error 15: FIle not found

Press any key to continue...

Ok, I don't know what version kernel I have, I just downloaded the genkernel, it was yesterday at about midday GMT+10.

Now, back at the purple GRUB screen, if I press e to edit my selection, the screen then reads (its still purple)...

root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.21 root=/dev/hda3
initrd (hd0,0)/boot/initrd-2.4.21

So, thats about all I've got. With my installation, I followed the x86 directions, so I hope someone can please help me.
Thanks.
Regards, antzzzzzz[/b]
Back to top
View user's profile Send private message
quiconque
Apprentice
Apprentice


Joined: 01 Nov 2002
Posts: 203
Location: Norrköping, Sweden

PostPosted: Sat Oct 18, 2003 11:15 pm    Post subject: Reply with quote

Could you let us know what your partition setup looks like?
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Sat Oct 18, 2003 11:21 pm    Post subject: Reply with quote

antzzz,

boot off the install cd, mount your boot partition (probably /dev/hda1) as /mnt/gentoo with the following command mount /dev/hda1 /mnt/gentoo

then change directory to /mnt/gentoo with the command cd /mnt/gentoo

type ls -l to list the files in this directory, send the output on this list.

Pete
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 12:22 am    Post subject: Reply with quote

Ok, this is what I got:

cdimage gentoo# ls -l
total 13
lrwxrwxrwx 1 root root 1 Oct 18 10:43 boot -> .
drwxr-xr-x 2 root root 1024 Oct 18 19:52 grub
drwx------ 2 root root 12288 Oct 18 10:12 lost+found


Hope that helps.
Thanks, antzzzzzz
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 12:23 am    Post subject: Reply with quote

Ok, this is what I got:

cdimage gentoo# ls -l
total 13
lrwxrwxrwx 1 root root 1 Oct 18 10:43 boot -> .
drwxr-xr-x 2 root root 1024 Oct 18 19:52 grub
drwx------ 2 root root 12288 Oct 18 10:12 lost+found


Hope that helps.
Thanks, antzzzzzz
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Sun Oct 19, 2003 2:12 am    Post subject: Reply with quote

antzzz,
good, you have the boot symlink in place.

ok, follow the instructions I gave you, except this time type cd /mnt/gentoo/grub followed by ls -l and send us the listing of /mnt/gentoo/grub and also type cat grub.conf and send us the grub.conf file too.

We will get to the bottom of this yet.

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 2:36 am    Post subject: Reply with quote

Ok, this is my output from...

cdimage grub # ls -l
total 210
-rw-r--r-- 1 root root 7840 Oct 18 19:36 e2fs_stage1_5
-rw-r--r-- 1 root root 7536 Oct 18 19:36 fat_stage1_5
-rw-r--r-- 1 root root 6880 Oct 18 19:36 ffs_stage1_5
-rw-r--r-- 1 root root 191 Oct 18 22:48 grub.conf
-rw-r--r-- 1 root root 1256 Oct 18 19:35 grub.conf.sample
-rw-r--r-- 1 root root 8448 Oct 18 19:36 jfs_stage1_5
lrwxrwxrwx 1 root root 20 Oct 18 19:48 menu.lst -> /boot/grus/grub.conf
-rw-r--r-- 1 root root 7072 Oct 18 19:36 minix_stage1_5
-rw-r--r-- 1 root root 9408 Oct 18 19:36 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 18 19:35 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 18 19:36 stage1
-rw-r--r-- 1 root root 106140 Oct 18 19:36 stage2
-rw-r--r-- 1 root root 6528 Oct 18 19:36 vstafs_stage1_5
-rw-r--r-- 1 root root 9320 Oct 18 19:36 xfs_stage1_5


And here is grub.conf...

cdimage grub # cat grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo (genkernel)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.21 root=/dev/hda3
initrd (hd0,0)/boot/initrd-2.4.21

Thanks again, antzzzzzz
Back to top
View user's profile Send private message
Komunjara
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2003
Posts: 97
Location: Vancouver, Canada

PostPosted: Sun Oct 19, 2003 5:24 am    Post subject: Reply with quote

root=/dev/hda

should be root=/dev/hda3
_________________
Socialism: It is taking over!
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 5:28 am    Post subject: Reply with quote

it is
Back to top
View user's profile Send private message
Barkotron
Apprentice
Apprentice


Joined: 05 Aug 2003
Posts: 253
Location: location, location.

PostPosted: Sun Oct 19, 2003 6:14 am    Post subject: Reply with quote

Hi there,

Looking at your output from ls -l /mnt/gentoo, if you haven't truncated that at all, then your kernel is not in your boot partition, which would explain the "file not found" errors.

antzzz wrote:
Ok, I don't know what version kernel I have, I just downloaded the genkernel, it was yesterday at about midday GMT+10.


Genkernel should have mounted your boot partition and copied the kernel and initrd across - um... don't take this the wrong way, but I assume you did run genkernel after emerging it, didn't you?
_________________
Give a man a fire and he'll be warm for a day: set fire to him and he'll be warm for the rest of his life.
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 6:16 am    Post subject: Reply with quote

Um.. I can't remember. Lol
Can you tell me how I can?
How can I rectify this situation?
Back to top
View user's profile Send private message
Barkotron
Apprentice
Apprentice


Joined: 05 Aug 2003
Posts: 253
Location: location, location.

PostPosted: Sun Oct 19, 2003 6:32 am    Post subject: Reply with quote

Ah. I think we may be on to a winner here then :wink:

To rectify the situation, you'll need to boot off the install CD and then chroot into your installation - follow code listings 7.2 and 8.6 in the install guide.

Next, you should be able to just type "genkernel", and as long as everything else has been done correctly (ie you have a source tree, genkernel emerged okay and produces a kernel which is appropriate for your machine), you should then get a couple of files in the boot partition - kernel-somethingsomethingsomething and initrd-somethingsomethingsomething - name them correctly in your grub.conf and you should be fine.

Also, re: the symlink - it's fine to have that there, but if you're using a seperate boot partition, then it's probably easier just to change grub (I've never got it to work with the symlink) - I'd change
Code:
kernel (hd0,0)/boot/kernel-2.4.21 root=/dev/hda3
initrd (hd0,0)/boot/initrd-2.4.21


to

Code:
kernel (hd0,0)/kernel-2.4.21 root=/dev/hda3
initrd (hd0,0)/initrd-2.4.21


Hope that helps :)
_________________
Give a man a fire and he'll be warm for a day: set fire to him and he'll be warm for the rest of his life.
Back to top
View user's profile Send private message
antzzz
n00b
n00b


Joined: 18 Oct 2003
Posts: 8
Location: sydney

PostPosted: Sun Oct 19, 2003 8:01 am    Post subject: Reply with quote

I'm on to what you said right now.
Its going through this stuff...
* Running "make mrproper"...
* Running "make oldconfig"...
* Logging to /var/log/genkernel.log...
* Starting 2.4.20-gentoo-r7 build...
* Running "make dep"...

And then theres the cursor flashing.
I can hear the hard disk working, so something is going on.
Thanks for all your help you guys.
Back to top
View user's profile Send private message
Barkotron
Apprentice
Apprentice


Joined: 05 Aug 2003
Posts: 253
Location: location, location.

PostPosted: Sun Oct 19, 2003 8:33 am    Post subject: Reply with quote

ehhhhhxcelleeent (/burns) - that's what we like to hear.

This might take a wee while, but it's doing what it should do.

Remember to edit your grub.conf once it finishes - the important bits should look like this (based on what you've written):

Code:
kernel (hd0,0)/kernel-2.4.20-gentoo-r7 root=/dev/hda3
initrd (hd0,0)/initrd-2.4.20-gentoo-r7


I think you're on your way though :)
_________________
Give a man a fire and he'll be warm for a day: set fire to him and he'll be warm for the rest of his life.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum