Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with GRUB during install
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Tue Jan 27, 2004 11:24 pm    Post subject: Problems with GRUB during install Reply with quote

Hello folks.

I'm a new user, but not that new to gentoo.

I've installed gentoo from scratch two times before, but always had someone over my shoulder to help me out... this time I went for it by myself, and can't seem to get the bootloader to work.

I did as instructed and "emerge --usepkg grub".

Followed all the instructions.

I used genkernel, so my grub.conf looks like this:

--------------------------------------------------
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.4.22
root (hd0,0)
kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3
initrd (hd0,0)/initrd-2.4.22

--------------------------------------------------

Now, when I rebooted and got to the bootloader, I select "Gentoo Linux 2.4.22" and I get:

--------------------------------------------------
Booting 'Gentoo Linux 2.4.22'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3

Error 15: File not found

Press any key to continue...
--------------------------------------------------

Then it loops back to the grub splash.

What have I done wrong??? Any and all help is appreciated.
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Tue Jan 27, 2004 11:29 pm    Post subject: Reply with quote

Well, maybe you already did this and didn't say, but the first step is to verifiy that your kernel really is named kernel-2.4.22 and is in hda1
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Tue Jan 27, 2004 11:36 pm    Post subject: Reply with quote

smiley wrote:
Well, maybe you already did this and didn't say, but the first step is to verifiy that your kernel really is named kernel-2.4.22 and is in hda1


I used the latest vanilla-sources, and verified that it was kernel-2.4.22...

And seeing that I followed the install documentation, except that I used cfdisk instead of fdisk, I don't see why the kernel wouldn't be located in hda1.

How can I verify that? And IF it's somewhere else (it would only be hda3, if it was anywhere else) what do I change?

My partitioning:

/dev/hda1 Linux ext2 64 M
/dev/hda2 Linux swap 512M
/dev/hda3 Linux reiserfs~39Gb
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Tue Jan 27, 2004 11:44 pm    Post subject: Reply with quote

I wasn't asking what kernel version it is, but rather what the file name is. mount the /boot partition if it isn't already, then type
Code:
ls -l /boot/


then post the output here.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Tue Jan 27, 2004 11:57 pm    Post subject: Reply with quote

smiley wrote:
I wasn't asking what kernel version it is, but rather what the file name is. mount the /boot partition if it isn't already, then type
Code:
ls -l /boot/


then post the output here.


Okay, here you go:

ls -l /boot/

total 31

lrwxrwxrwx 1 root root 1 Jul 24 2003 boot -> .
-rw-r--r-- 1 root root 9728 Jul 23 2003 boot-bmp.b
-rw-r--r-- 1 root root 9216 Jul 23 2003 boot-menu.b
-rw-r--r-- 1 root root 7680 Jul 23 2003 boot-text.b
lrwxrwxrwx 1 root root 11 Jul 24 2003 boot.b -> boot-menu.b
-rw-r--r-- 1 root root 908 Jul 23 2003 chain.b
drwxr-xr-x 2 root root 1024 Jul 23 2003 grub
-rw-r--r-- 1 root root 512 Jul 23 2003 mbr.b
-rw-r--r-- 1 root root 840 Jul 23 2003 os2_d.b

-----------------------------------------

Sorry if the formatting is crap, I'm typing this out by hand.
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 12:04 am    Post subject: Reply with quote

Hmm, I don't see your kernel in there. Are you sure you're boot partition was mounted when you ran genkernel? Try this:
Code:
umount /boot
ls -l /boot


This shouldn't list any files, but if it does, post the output again.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 12:07 am    Post subject: Reply with quote

smiley wrote:
Hmm, I don't see your kernel in there. Are you sure you're boot partition was mounted when you ran genkernel? Try this:
Code:
umount /boot
ls -l /boot


This shouldn't list any files, but if it does, post the output again.


lrwxrwxrwx 1 root root 14 Jan 27 18:45 /boot -> mnt/cloop/boot

I can't tell you 100% that boot was mounted when I ran genkernel... but I don't think I would have missed that. But it's looking like that, isn't it?
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 12:16 am    Post subject: Reply with quote

I'm not sure what that entry is but try this:

Quote:
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.4.22
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 12:24 am    Post subject: Reply with quote

smiley wrote:
I'm not sure what that entry is but try this:

Quote:
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.4.22


Okay, I did that, and I get the same Error 15: File not found when I boot from grub, but the output is a little different:

-----------------------------------
Booting 'Gentoo Linux 2.4.22'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3
[Linux-bzImage, setup=0x1400, size=0x118960]
initrd (hd0,0)/initrd-2.4.22

Error 15: File not found

Press any key to continue...

--------------------------------------
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 12:27 am    Post subject: Reply with quote

Now it's not finding the initrd file. For now, comment out that line in grub.conf. If you need the initrd, then rerun genkernel
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 12:36 am    Post subject: Reply with quote

smiley wrote:
Now it's not finding the initrd file. For now, comment out that line in grub.conf. If you need the initrd, then rerun genkernel


Okay, well, that did it.

It gets through GRUB and starts to load the kernel...

BUT

Now it goes through the load process for a while and it dies at:

Kernel panic: VFS: Unable to mount root fs on 01:00

Maybe my fstab is wrong?
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 12:54 am    Post subject: Reply with quote

It might be that, or it might be the kernel parameters

Quote:
root=/dev/ram0 init=/linuxrc real_root=/dev/hda3


I've seen this before, but I don't know what it is (for all I know, it could be that it needs the initrd to work, or maybe not). On my system, it simply says root=/dev/hda3. Changing that may solve your problem, but remember I'm not saying yours is wrong as is, I just don't know what it does differently than mine. Unless someone else who knows steps in, my sugestion would be to follow these steps:

1. make sure you fstab is correct. If it is, then
2. change the kernel parameters so it only says root=/dev/hda3. If this does make the computer boot, then the next step is to work on getting your original kernel parameters to work correctly. I'll try to do a little bit of research about that.

ps I'm leaving work right now, so I might not be able to post again till tonight.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 12:59 am    Post subject: Reply with quote

smiley wrote:
It might be that, or it might be the kernel parameters

Quote:
root=/dev/ram0 init=/linuxrc real_root=/dev/hda3


I've seen this before, but I don't know what it is (for all I know, it could be that it needs the initrd to work, or maybe not). On my system, it simply says root=/dev/hda3. Changing that may solve your problem, but remember I'm not saying yours is wrong as is, I just don't know what it does differently than mine. Unless someone else who knows steps in, my sugestion would be to follow these steps:

1. make sure you fstab is correct. If it is, then
2. change the kernel parameters so it only says root=/dev/hda3. If this does make the computer boot, then the next step is to work on getting your original kernel parameters to work correctly. I'll try to do a little bit of research about that.

ps I'm leaving work right now, so I might not be able to post again till tonight.


thanks for the help, I think I'm just going to cut my losses and start over again.
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 1:27 am    Post subject: Reply with quote

Wait, don't do that! I'm sure we're almost there. If you haven't done anything yet, then just wait a bit and I'll get back with more information.

<EDIT>
Okay, if you havent started over already, scratch my above post. I didn't know this before because I don't use genkernel but
Quote:
root=/dev/ram0 init=/linuxrc real_root=/dev/hda3

is what you use if you are using genkernel, so leave that as is. I'm about 99.9 % sure that the reason it cant mount the root filesystem is because I had you comment out the initrd line to prevent the file not found error. This is what I should have had you do instead: rerun genkernel (with boot partition mounted, ofcourse). This will place a new kernel and an initrd in you're boot partition. Afterwards, verifiy that they really are in the /boot partition, and make sure that the filenames are the same as in your grub.conf. Also uncomment the initrd line. I'm pretty sure that this will solve your problem.
</EDIT>


Last edited by smiley on Wed Jan 28, 2004 1:39 am; edited 2 times in total
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 1:32 am    Post subject: Reply with quote

lol, okay. I'll hang tight.
Back to top
View user's profile Send private message
Rukie
l33t
l33t


Joined: 26 Jan 2004
Posts: 692
Location: SE Wi, Home of cheese and cowtippers.......

PostPosted: Wed Jan 28, 2004 1:44 am    Post subject: Reply with quote

i skimmed the posts and don't thinkt his was mentioned.. do an ls /boot and take a look at the filename of you rkernel.. you sure youhave the kernel name correct?

bzImage = kernel name
_________________
Gentoomania! Support the Open Source!
http://www.rukie.ath.cx


Last edited by Rukie on Wed Jan 28, 2004 1:45 am; edited 1 time in total
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 1:47 am    Post subject: Reply with quote

Rukie wrote:
i skimmed the posts and don't thinkt his was mentioned.. do an ls /boot and take a look at the filename of you rkernel.. you sure youhave the kernel name correct?

bzImage = kernel name


yeah, we fixed that part already... well, smiley did, anyways.

we've got a kernel panic issue now.
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 1:48 am    Post subject: Reply with quote

Rukie wrote:
i skimmed the posts and don't thinkt his was mentioned.. do an ls /boot and take a look at the filename of you rkernel.. you sure youhave the kernel name correct?

bzImage = kernel name


Yes, we checked that already, but thanks for the input :D

elnerdo: In case you didn't notice, I added information to my last post
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 1:54 am    Post subject: Reply with quote

smiley wrote:
Rukie wrote:
i skimmed the posts and don't thinkt his was mentioned.. do an ls /boot and take a look at the filename of you rkernel.. you sure youhave the kernel name correct?

bzImage = kernel name


Yes, we checked that already, but thanks for the input :D

elnerdo: In case you didn't notice, I added information to my last post


Okay, going to give that a shot, and I'll get back to you when genkernel is done.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 1:56 am    Post subject: Reply with quote

oh, btw:

I don't "mount /boot"

I: mount /dev/hda1 /mnt/gentoo/boot

That doesn't make a difference right? OR am I just that stupid?
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 2:01 am    Post subject: Reply with quote

I'm sorry, I didn't even consider that. What you are doing is correct if you booted into the livecd. Once your system is working, then you will do "mount /boot" Thanks for thinking for yourself instead of automatically typing exactly what I do.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 2:03 am    Post subject: Reply with quote

smiley wrote:
I'm sorry, I didn't even consider that. What you are doing is correct if you booted into the livecd. Once your system is working, then you will do "mount /boot" Thanks for thinking for yourself instead of automatically typing exactly what I do.


Like I said at the beginning, I'm not a total n00b with this stuff... and I will say, I've learned a LOT this time around doing it all myself.

genkernel is compiling as we speak.
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 2:37 am    Post subject: Reply with quote

smiley wrote:
I'm sorry, I didn't even consider that. What you are doing is correct if you booted into the livecd. Once your system is working, then you will do "mount /boot" Thanks for thinking for yourself instead of automatically typing exactly what I do.


Okay, here's another Q:

when genkernel is finished, I'm assuming I need to re-emerge hotplug and whatever other modules I emerged after genkernel finished???

(genkernel's still running, btw)
Back to top
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Wed Jan 28, 2004 2:41 am    Post subject: Reply with quote

Quote:
when genkernel is finished, I'm assuming I need to re-emerge hotplug and whatever other modules I emerged after genkernel finished???


Actually as far as I know, that shouldn't be necessary
Back to top
View user's profile Send private message
elnerdo
n00b
n00b


Joined: 27 Jan 2004
Posts: 21
Location: Toronto

PostPosted: Wed Jan 28, 2004 3:20 am    Post subject: Reply with quote

smiley wrote:
Quote:
when genkernel is finished, I'm assuming I need to re-emerge hotplug and whatever other modules I emerged after genkernel finished???


Actually as far as I know, that shouldn't be necessary


Okay!

We ARE getting somewhere....

I fixed the kernel panic...

I get to the following:

---------------
Gentoo initrd startup...
STEP 1: Command-line parsing
STEP 2: Module loading
---- Scanning for sbp2...no such module found
STEP 3: Mounting necessary filesystems per boot options
Started device management daemon v1.3.25 for /dev
STEP 4: Determining root device
STEP 4a: Mounting root
mount: Mounting /dev/hda3 on /newroot failed: Invalid argument
Could not mount specified ROOT, try again
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.
:_
-----------------------------

It just flashes a prompt.

I'm going to post my fstab here momentarily.
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
Goto page 1, 2  Next
Page 1 of 2

 
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