Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Install hangs on GRUB Kernel Load
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Fri Sep 20, 2002 4:28 am    Post subject: Reply with quote

have you tried using a grub boot flopppy?

http://hints.linuxfromscratch.org/hints/grub-howto.txt

On my first install I had probs also. By installing from a flopy and then trying the commands i was able to get things going. I also had to try different bios settings for my hd, normal or LBA. Oh ext3 is ext2 fs with a journel thats why "grub" sees it as ext2, you can even mount or boot it as ext2.

hielvc
Back to top
View user's profile Send private message
bläk-kahr
n00b
n00b


Joined: 19 Sep 2002
Posts: 8

PostPosted: Fri Sep 20, 2002 7:07 am    Post subject: Reply with quote

Since my last post I have copied my suse kernel over and GRUB decompresses it and it boots until it tries my xfs root partition - my suse kernel doesn't have xfs.

This makes me think that maybe:
1. My kernel built during the gentoo install is so crappy due to my poor option choices that it won't even start decompressing, or

2. There are issues with booting kernels build with gcc 3.whatever with grub.

As I said my suse kernel built with 2.9.whatever seems to boot from grub with the same grub setup as my failed attempts with the 3.x built kernel.

Has anyone managed to boot a gcc 3.x build kernel? Would you post/send your kernel config?

--Ben
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Sep 20, 2002 7:55 am    Post subject: Reply with quote

bläk-kahr wrote:
This makes me think that maybe:
1. My kernel built during the gentoo install is so crappy due to my poor option choices that it won't even start decompressing, or
I'd definately look here... many have used gcc3.x to build kernels.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
theplatypus
n00b
n00b


Joined: 03 Sep 2002
Posts: 44

PostPosted: Fri Sep 20, 2002 12:10 pm    Post subject: Reply with quote

I'm having the exact same problem.
Back to top
View user's profile Send private message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Fri Sep 20, 2002 1:31 pm    Post subject: Reply with quote

aargh :) i'm having the same problem,
i recompiled the kernel leaving out the frame buffer options
(I thought that should fix the funky colors and blank screen)
but it's still the same.

Hope someone finds the answer soon. :)
Back to top
View user's profile Send private message
yaknor
n00b
n00b


Joined: 17 Sep 2002
Posts: 16

PostPosted: Fri Sep 20, 2002 7:01 pm    Post subject: Reply with quote

More info:

Re-installed with boot set to ext2fs to work around the grub/2.4/ext3 problem linked up on page one.

Triple checked kernel compile options, I can't see anything missing.

How would I load the kernel the CD usesto boot to the hard drive?

Also, submitted a bugzilla bug. #8158
Back to top
View user's profile Send private message
yaknor
n00b
n00b


Joined: 17 Sep 2002
Posts: 16

PostPosted: Fri Sep 20, 2002 8:03 pm    Post subject: Reply with quote

Alright folks, I've got a fix.

First, go to /usr/src/portage/profiles and nano -w the package.mask file.

Search for grub. Uncomment it by removing the >= before the line. Save.

emerge grub. Check to make sure it's emerging 0.92.

Do this, as overwriting the old grub won't work.

Code:
# mv /boot/grub /boot/grub.save
# cp -a /boot/grub.save /boot/grub
# rm -f /boot/grub/stage*


run the grub command just like it says in the install guide, or otherwise according to your partition setup.

Change your menu.lst file to grub.conf.

Enjoy.

Thanks to everyone who chimed in, you guys rule.
Back to top
View user's profile Send private message
slais-sysweb
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 221
Location: London

PostPosted: Fri Sep 20, 2002 9:15 pm    Post subject: Reply with quote

Another problem here. I have just installed 1.4rc1 on a Dell GX1 PII with 128MB etc, (its taken over a day to compile from stage 1)

Everthing good until seting up Grub
hda1 /boot, hda3 swap, hda5 / (there is a BSD partition on hda2)

/boot is ext2
/ is ext3
root (hd0,0)
setup (hd0)
checking if "/boot/grub/stage1" exists... no
checking if "/grub/stage1" exists... no
Error 28 Selected item cannot fit into memory

Well /boot/grub/stage1 does exist and is size 512

tried uncomenting the entry for grub in
/usr/portage/profiles/package.mask as per fix above
this upgraded to 0.92
copied *stage* files as per note at end of emerge
tried again -- same result!

suggestions please
_________________
--
djc
sysweb SLAIS UCL
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Fri Sep 20, 2002 10:46 pm    Post subject: Reply with quote

How can i get back into gentoo via the livecd ?
Because none of the commands work because it uses the cdimage as / .
Back to top
View user's profile Send private message
drjim
n00b
n00b


Joined: 19 Sep 2002
Posts: 8

PostPosted: Fri Sep 20, 2002 10:52 pm    Post subject: Using LiveCD Reply with quote

This is what I've done (MANY times!) trying to get this to work:
1) Boot from the CD
2) mkdir /mnt/gentoo
3) mount /dev/hda3 /mnt/gentoo
4) mount /dev/hda1 /mnt/gentoo/boot
5) mount --bind /proc //mnt/gentoo/proc
6) chroot /mnt/gentoo /bin/bash
This has let me go in and edit things. I'm now up to getting to the grub boot screen, but everything I've tried listed here, and in other forums relating to the K6-2, doesn't work. My machine just reboots back to the grub screen.
jim
_________________
#include
Back to top
View user's profile Send private message
RickDB
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 155
Location: Netherlands

PostPosted: Sat Sep 21, 2002 10:41 am    Post subject: Reply with quote

Ok grub is working ok now, but for some reason it is giving this error when booting:

Kernel panic : VFS " unable to mount FS on 03:06


It does not load my reiserfs root 8O , any way to fix this without an reinstall?
Back to top
View user's profile Send private message
St. Alphonzo
n00b
n00b


Joined: 02 Aug 2002
Posts: 9
Location: rosenheim, germany

PostPosted: Sat Sep 21, 2002 1:50 pm    Post subject: Reply with quote

The first problem I had was grub not recognising any reiserfs partition. I used the latest reiserfsprogs 3.6.3 to make the filesystem. Older versions probably don't have this problem.
After switching from grub-0.90-r7 to grub-0.92 this problem was solved.

The next problem was a Kernel panic due to being unable to mount the FS. This only happened when choosing the Kernel from the grub menue. Using the grub command line (press 'c' when the grub menue comes up) on the other hand worked perfectly.
I then had a look at the grub.conf file. As it turned out, the lines

root (hd0,1)
kernel /boot/gentoo root=/dev/discs/disc0/part2

resulted in a kernel panic, while

root (hd0,1)
kernel /boot/gentoo

worked without problems.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Sep 21, 2002 3:03 pm    Post subject: Reply with quote

Probably because 1) devfs wasn't mounted yet and 2) you were specifying a partition in the first case, and not a image kernel like in the second case
St. Alphonzo wrote:

I then had a look at the grub.conf file. As it turned out, the lines

root (hd0,1)
kernel /boot/gentoo root=/dev/discs/disc0/part2

resulted in a kernel panic, while

root (hd0,1)
kernel /boot/gentoo

worked without problems.
Back to top
View user's profile Send private message
Choda Boy
n00b
n00b


Joined: 16 Sep 2002
Posts: 2

PostPosted: Sat Sep 21, 2002 4:14 pm    Post subject: Reply with quote

I had the same problem with grub :
"Kernel panic : VFS " unable to mount FS on 03:06"

So I decided to install LILO and now that works well.
Back to top
View user's profile Send private message
St. Alphonzo
n00b
n00b


Joined: 02 Aug 2002
Posts: 9
Location: rosenheim, germany

PostPosted: Sat Sep 21, 2002 4:15 pm    Post subject: Reply with quote

Bloody Bastard wrote:
Probably because 1) devfs wasn't mounted yet and 2) you were specifying a partition in the first case, and not a image kernel like in the second case


Yes, you're right. The missing devfs caused the problem. I completely forgot that. The specified image kernel was ok.

Thanks for your help
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Fri Sep 27, 2002 8:01 pm    Post subject: Reply with quote

Wanted to add - yaknor (orginal poster)'s problem and that of a few others here sounds to me like misconfiguration of the processor type option in their kernel, not grub or fstab. (BTW - not all of the various posts fit into this possibly erroneous diagnosis).

To check - go to menuconfig for your kernel, select "Processor Type and Features", then select "Pentium - III ... Family" -> make sure the processor type is correct. If you are compiling (for example) with PIII optimizations and your GCC flags are strict, the kernel won't boot on a 586 - it will hard crash almost immediately after Grub loads it. Which is what a couple of the posts seem to describe.

Also - I habitually copy the install kernel from the cd onto my boot partition (naming it kernel.install rather than bzImage). Then I add an entry for this kernel in the grub menu.lst. It gives me the option of booting to the install kernel without going through the whole cd/chroot thing - much nicer when troubleshooting.
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Sep 28, 2002 1:18 pm    Post subject: Reply with quote

I'm also getting this kernel panic:

Code:
Kernel panic: VFS: Unable to mount root fs on 03:08


What's this I'm hearing about devfs that's causing this problem? And how can I fix it?

partitions:
    /dev/hda6 boot
    /dev/hda7 swap
    /dev/hda8 root


menu.lst:
    root (hd0,5)
    kernel /boot/bzImage root=/dev/hda8
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Sep 28, 2002 1:34 pm    Post subject: Reply with quote

This has nothing to do with devfs. devfs is a substitute to a static /dev directory. VFS means Virtual File System (if I'm not wrong!).


Looks like you don't have support for your file system compiled in your kernel. Are your partitions ext3 or reiserfs or xfs or ext2? Don't forget to include support in your kernel for them, if not you won't be able to mount them and will receive these nasty messages. 8)

bassvandijk wrote:
I'm also getting this kernel panic:

Code:
Kernel panic: VFS: Unable to mount root fs on 03:08


What's this I'm hearing about devfs that's causing this problem? And how can I fix it?

partitions:
    /dev/hda6 boot
    /dev/hda7 swap
    /dev/hda8 root


menu.lst:
    root (hd0,5)
    kernel /boot/bzImage root=/dev/hda8
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Sep 28, 2002 1:48 pm    Post subject: Reply with quote

Thnx, I think your right.

My root partition is XFS. The manual said that I had to enable the "SGI XFS file system support" option in the kernel configuration.

But the thing is that I didnt found that option. :?

Can anybody tell me where to look for that option?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Sep 28, 2002 2:16 pm    Post subject: Reply with quote

The last gentoo-sources don't have XFS support.

You must emerge xfs-sources ( I think, but I don' t use XFS).

bassvandijk wrote:
Thnx, I think your right.

My root partition is XFS. The manual said that I had to enable the "SGI XFS file system support" option in the kernel configuration.

But the thing is that I didnt found that option. :?

Can anybody tell me where to look for that option?
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Sat Sep 28, 2002 3:45 pm    Post subject: Reply with quote

Yep your right...

I just read this: https://forums.gentoo.org/viewtopic.php?t=15314

I think i'm going to reinstall gentoo with ext3 instead of XFS.
Back to top
View user's profile Send private message
nngs
n00b
n00b


Joined: 01 Oct 2002
Posts: 48

PostPosted: Tue Oct 01, 2002 12:57 am    Post subject: Reply with quote

[quote="aja"]
To check - go to menuconfig for your kernel, select "Processor Type and Features", then select "Pentium - III ... Family" -> make sure the processor type is correct. If you are compiling (for example) with PIII optimizations and your GCC flags are strict, the kernel won't boot on a 586 - it will hard crash almost immediately after Grub loads it. Which is what a couple of the posts seem to describe.
[/quote]

This fixed my problem :)
Back to top
View user's profile Send private message
gulkings
n00b
n00b


Joined: 03 Oct 2002
Posts: 2

PostPosted: Sat Oct 05, 2002 6:37 pm    Post subject: Reply with quote

Hey everyone !

I just finished installing my Gentoo 1.2. At first i had the same problems as you have here in this topic, but after checking my kernel parameters, i found, that it was compiled for wrong cpu :roll: after fixing this it worked !
Back to top
View user's profile Send private message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Mon Oct 07, 2002 7:06 am    Post subject: Reply with quote

apparently, i just emerged the gentoo-sources (before I used vanilla)
and discovered I also compiled my kernel for a normal pentium cpu,
Using the gentoo sources I recompiled for and amd morgan core and
now everything boots fine! :)
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 Previous  1, 2
Page 2 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