Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't determine problem with Grub or lilo
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
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Wed Mar 10, 2004 9:29 pm    Post subject: can't determine problem with Grub or lilo Reply with quote

Given the topic I'm sure it's a user error, I just can't figure out what..My rig is pretty basic, 80gb max on ide 1, dvd and cd-rw,athlon 2800+ and nforce2. I'm doing a stage3 install off the net using the gentoo-dev-sources, 2.4.22-gentoo-r7 kernel and the entire install goes error free til bootloader time. After partitiong "hda1@100mb-bootable, hda2@15gb for /root, hda3 @ 800mb for swap and hda4 @ 10gb for /home. I mkdir the /mnt/gentoo/boot and the /mnt/gentoo/proc, activate swap and mount all parts + bind mounting the /mnt/gentoo/proc. O.K. With grub after setup (hd0), I quit and nano into grub.conf. and title=Gentoo 2.4.22,root= (hd0,0), kernel (hd0,0)/kernel-2.4.22-gentoo-r7 root=/dev/hda2. I get kernel panic trying to boot from this. Lilo installs fine til I try to /sbin/lilo. It says I have DEV_FS as an option but not in the kernel boot command line. I have no idea what that is and am getting very confused by this. I even went back to make menuconfig and went thru the options hoping to find it. Yes I have printed out and tried a bunch of suggested /boot/grub/grub.conf's from the site. Please help!!!! Thanks in advance for any replies!
_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
_sparky_
n00b
n00b


Joined: 25 Feb 2004
Posts: 20

PostPosted: Wed Mar 10, 2004 9:35 pm    Post subject: Re: can't determine problem with Grub or lilo Reply with quote

Grey_1 wrote:
Given the topic I'm sure it's a user error, I just can't figure out what..My rig is pretty basic, 80gb max on ide 1, dvd and cd-rw,athlon 2800+ and nforce2. I'm doing a stage3 install off the net using the gentoo-dev-sources, 2.4.22-gentoo-r7 kernel and the entire install goes error free til bootloader time. After partitiong "hda1@100mb-bootable, hda2@15gb for /root, hda3 @ 800mb for swap and hda4 @ 10gb for /home. I mkdir the /mnt/gentoo/boot and the /mnt/gentoo/proc, activate swap and mount all parts + bind mounting the /mnt/gentoo/proc. O.K. With grub after setup (hd0), I quit and nano into grub.conf. and title=Gentoo 2.4.22,root= (hd0,0), kernel (hd0,0)/kernel-2.4.22-gentoo-r7 root=/dev/hda2. I get kernel panic trying to boot from this. Lilo installs fine til I try to /sbin/lilo. It says I have DEV_FS as an option but not in the kernel boot command line. I have no idea what that is and am getting very confused by this. I even went back to make menuconfig and went thru the options hoping to find it. Yes I have printed out and tried a bunch of suggested /boot/grub/grub.conf's from the site. Please help!!!! Thanks in advance for any replies!


At first blush it looks like you've missed the setup (hd0) when setting up grub. Reread http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=9#doc_chap2

HTH

_sparky_
Back to top
View user's profile Send private message
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Wed Mar 10, 2004 10:06 pm    Post subject: Reply with quote

Quote:
With grub after setup (hd0), Thanks for the reply sparky. Is this this item you meant? This is whats throwing me maybe. grub refers to hda1 as hd0, hda2 as hd1? or hd0,1? Not sure of the proper syntax. But I made hda1 my bootable partion..so "grub setup (hd0)"? Very sorry if I'm being dense here! I used the 'tab' feature and chose it that way. In "code listing 3 : Installing grub in the mbr" It states 'grub> root (hd0,0) (Specify where your /boot partition resides). Then...grub> setup (hd0) (Install GRUB in the MBR). Should the 'grub>root' read 'grub>boot' then? Thanks again for your help!!!

_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
_sparky_
n00b
n00b


Joined: 25 Feb 2004
Posts: 20

PostPosted: Wed Mar 10, 2004 10:20 pm    Post subject: Reply with quote

Grey_1 wrote:
Quote:
With grub after setup (hd0), Thanks for the reply sparky. Is this this item you meant? This is whats throwing me maybe. grub refers to hda1 as hd0, hda2 as hd1? or hd0,1? Not sure of the proper syntax. But I made hda1 my bootable partion..so "grub setup (hd0)"? Very sorry if I'm being dense here! I used the 'tab' feature and chose it that way. In "code listing 3 : Installing grub in the mbr" It states 'grub> root (hd0,0) (Specify where your /boot partition resides). Then...grub> setup (hd0) (Install GRUB in the MBR). Should the 'grub>root' read 'grub>boot' then? Thanks again for your help!!!


Yes, grub refers to your first drive - hda as 0. It sounds like you've installed per the instructions, so you should have grub on the MBR. No on the second question! You should type root (hd0,0) at the grub> prompt.

_spanky_
Back to top
View user's profile Send private message
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Wed Mar 10, 2004 10:51 pm    Post subject: Reply with quote

Thanks again sparky...I've got to take this rig down to get back to gentoo (Only have the 1 box at present), but I did find another post where the member simply installed fedora on the remaining space on his hdd and placed fedora's grub install in gentoo's mbr. Says it works like a charm. And being as this is my 5th or 6th attempt I'm looking for an easier way out, haha. If it still won't boot after that, I guess I know the problem is elsewhere? Thanks again sparky for your time! Phil
_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
_sparky_
n00b
n00b


Joined: 25 Feb 2004
Posts: 20

PostPosted: Wed Mar 10, 2004 11:08 pm    Post subject: Reply with quote

If you follow the directions to the letter, you should have a working Gentoo system on the first try. I'm assuming you don't have any exotic HW or anything like that.

_sparky_
Back to top
View user's profile Send private message
Kalki
n00b
n00b


Joined: 10 Mar 2004
Posts: 10

PostPosted: Wed Mar 10, 2004 11:47 pm    Post subject: Re: can't determine problem with Grub or lilo Reply with quote

Grey_1 wrote:
Lilo installs fine til I try to /sbin/lilo. It says I have DEV_FS as an option but not in the kernel boot command line. I have no idea what that is and am getting very confused by this.


Couldn't see that this was addressed, maybe I'm blind, but my install of LILO says the same thing. What's going on? The error message also says there's a name change, and lists a long 'name change /dev/ide/.../lun0/disc -> /dev/hda' when i try to run lilo

Help!
Back to top
View user's profile Send private message
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Thu Mar 11, 2004 12:50 am    Post subject: Reply with quote

Hi Kalki, sparky....sparky, the most exotic piece of hw I have is an old 9700pro. The drivers emerged fine for that. I tried the fedora grub install trick and fedora boots fine but not gentoo, grub pointed to hda. I retried grub and the message I get now is 'file not found' referring to my kernel command line. When I ls /boot, I see 'kernel-2.4.22-gentoo-r7' , 'grub' , and 'grub.conf.. so I have a path wrong in grub.conf maybe? default 0, timeout 20, splashimage=(hd0,0)/grub/splash.xpm.gz, title=Gentoo 2.4.22, root (hd0,0), kernel (hd0,0)/kernel-2.4.22-gentoo-r7 root=/dev/hda2. Should my kernel command be (hd1,0) or (hd0,1) to point from the mbr to root? I questioned /etc/fstab as well, but if I'm not mistaken, if it won't boot fstab isn't even a player yet. btw, Kalki, the error looks to be verbatim what I got trying lilo. Is it possible this is a kernel compilation error? My file systems are all ext3 (mke2fs -j) is there anything in the 'files' support section which should be enabled , I compiled support for everything ext2 and 3 I could find. It's almost like it just won't read the file types. SIGH...maybe I'm just reaching. Thanks again......Phil
_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Thu Mar 11, 2004 1:38 am    Post subject: Reply with quote

links2...takes some getting used too. Well, trying to chroot back in, now the error message is that bin/bash does not exist. I have no idea what I did as I've been back and forth into and out of it trying to fix this boot issue. I'm thinking re-install. Ideas anyone? Thanks.......Phil
_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
Kalki
n00b
n00b


Joined: 10 Mar 2004
Posts: 10

PostPosted: Thu Mar 11, 2004 1:52 am    Post subject: Reply with quote

your root device isn't hda3? if it is, change that in grub.conf

i installed grub and i'm booting up mostly well, save for a minor superblock dev/BOOT error that fsck corrected, i hope

i just went into my lilo.conf and deleted all the lines with Ctrl-K, then saved it as a blank lilo.conf file. then i emerged grub and it installed fine.

i just did a first-time install from stage 1 and so far, so good. make sure to follow the online handbook (if you have two machines), or from the cd-rom.

read, follow, but make sure to pay attention to which architecture you have!
Back to top
View user's profile Send private message
Grey_1
n00b
n00b


Joined: 10 Mar 2004
Posts: 8

PostPosted: Thu Mar 11, 2004 11:39 pm    Post subject: Reply with quote

hello again, actually got it booting fine now. I reinstalled lilo to hda1 and that solved the boot problem. Now wrestling with x. I'm following the Gentoo linux desktop config guide, but I think I installed the wrong ati drivers. I'm going to try the 'dri' version next. When I try to startx, it crashes telling me the drivers don't support 24bit, or 16 for that matter. Kalki, glad your up and running... I do have to admit I get a little 'hurried' at times..lol. Hopefully I'm on the right track now. Thanks
_________________
Stubbornly becoming teachable again=)
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Fri Mar 12, 2004 5:50 am    Post subject: Reply with quote

I noticed that lilo was mentioned in here... yet I did not see anything pertaining to a fix... I myself get the Kernel panic using lilo as it refers to no being able to mount hda3..

I have kernel 2.4.25 on now and it will boot flawlessly with this kernel.. yet when I try to use 2.6.x I get the kernel panic everytime. I have recompiled 4 or 5 times thinking I forgot something here or there and everytime it compiles perfectly... What am I missing????
_________________
If I was in my right mind. Would I still make left turns?
Back to top
View user's profile Send private message
_sparky_
n00b
n00b


Joined: 25 Feb 2004
Posts: 20

PostPosted: Fri Mar 12, 2004 5:20 pm    Post subject: Reply with quote

Kernel panics can be caused by things outside of grub. By the time you're booting the kernel, grub is pretty much done with it's job. One thing that's common in the 2.6.x kernel is not picking the correct CPU and chipset settings for your system. Double check that, recompile and reboot.

_sparky_
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Fri Mar 12, 2004 9:20 pm    Post subject: Reply with quote

I have checked and rechecked 4 or 5 times. Recompliling each time. I'm not sure where to go from here.
_________________
If I was in my right mind. Would I still make left turns?
Back to top
View user's profile Send private message
Kalki
n00b
n00b


Joined: 10 Mar 2004
Posts: 10

PostPosted: Fri Mar 12, 2004 9:23 pm    Post subject: Reply with quote

Well, minor setback again...I couldn't fsck to clear up the superblock errors, nor did my X interface work very well, so I started over with a stage3 tarball, to save time...

See my INITRD post.
Back to top
View user's profile Send private message
haoqide
n00b
n00b


Joined: 09 Mar 2004
Posts: 19
Location: Nashville

PostPosted: Sat Mar 13, 2004 5:20 am    Post subject: Reply with quote

I decided to post this as its own thread. Mods, please remove this post. I'm sorry!
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Thu Apr 01, 2004 1:54 pm    Post subject: Boot Issues Reply with quote

After much deliberation and working with the kernel. I finally fugured out what the kernel panic was from. In all of the cases where I built my kernel. I did not put my FS Root partition type in. So it was not supported. Which is ReiserFS. Also, I realized that in my grub.conf I had a typo like so hd(0,0) which was suppose to be (hd0,0) .....

So it was not the 2.6.x kernel that was the problem. It was user error. The only problem I have really had with any of the kernels was 2.6.5-rl2 and that was due to the nvidia-kernel not being able to communicate with the kernel properly. From what I have read. It has something to do with the source code not matching up. Anyway, the only thing I can recommend when someone has this problem is to make sure they go through the menuconfig carefully. Selecting only what you need and modulizing the hardware that is not used on a consistent basis to improve performance. Plus you get a smaller kernel.

I hope that this post helps out anyone who comes in contact with this issue in the future. For I cannot say what the exact cause of the panic is except a bad configuration or compile. Have fun gentooing.

P4 2.4 533FSB
IC7
Nvidia GeForce4
1GB DDR RAM 3200
Philips saa7149 Capture Card
Realtek 8149 NIC
USR 56k Sportster
3x 80GB Seagate UATA HDD
2x 80GB Seagate SATA HDD
_________________
If I was in my right mind. Would I still make left turns?
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