Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.5-r1 doesn't find root on boot.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tuxwatcher
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 121
Location: USA

PostPosted: Fri Apr 30, 2004 1:09 pm    Post subject: 2.6.5-r1 doesn't find root on boot. Reply with quote

I have a machine that is currently running fine with 2.4.22-gentoo-r2. I tried upgrade to 2.6.5-gentoo-r1. Everything compiled fine with genkernel, but when I boot to the new kernel it dies when it tries to mount root(/dev/hda4). I do notice the drives are being detected. Any ideas on why the partitions are not being setup in devfs?
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Fri Apr 30, 2004 1:20 pm    Post subject: Reply with quote

You should post your dmesg output cause the error messages would help. Are you using LILO or GRUB? Did you add the 2.6.5 entry correctly to your bootloader? Did you compile the correct filesystem support in your kernel?
Back to top
View user's profile Send private message
tuxwatcher
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 121
Location: USA

PostPosted: Fri Apr 30, 2004 4:24 pm    Post subject: Reply with quote

I don't know how to get the dmesg when the kernel won't boot. But, here is the grub.conf entry
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
 
title=2.6.5-r1
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.5-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hda4
initrd (hd0,0)/boot/initrd-2.6.5-gentoo-r1


The correct fs is in the kernel.

It appears that when the system boots there is a /dev/hda and /dev/hda1 but no other partitions.
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Fri Apr 30, 2004 6:36 pm    Post subject: Reply with quote

You're right about the dmesg output. My mistake :oops:

What is the error message you're getting? Are you sure you set up GRUB properly?

If you're getting a "kernel not found" error, you *may* have to change your grub entry: change "(hd0,0)/boot/kernel" to "(hd0,0)/kernel" if "hda1" is a partition you made specially for boot.
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Fri Apr 30, 2004 6:43 pm    Post subject: Reply with quote

Also, why are you using "root=/dev/ram0" and "real_root=/dev/hda4"?? Try "root=/dev/hda4" and forget about "real_root".
Back to top
View user's profile Send private message
tuxwatcher
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 121
Location: USA

PostPosted: Fri Apr 30, 2004 10:21 pm    Post subject: Reply with quote

nahpets wrote:
What is the error message you're getting?
The error is saying that it can't find root(/dev/hda4). If you would like me to be more specific let me know and I will write the messages on the screen down on Monday.
nahpets wrote:
Are you sure you set up GRUB properly?
The system still boot fine to 2.4.22 so I assume GRUB is still OK.
nahpets wrote:
If you're getting a "kernel not found" error, you *may* have to change your grub entry: change "(hd0,0)/boot/kernel" to "(hd0,0)/kernel" if "hda1" is a partition you made specially for boot.

I believe it is loading the kernel ok or at least the initrd image.
nahpets wrote:
Also, why are you using "root=/dev/ram0" and "real_root=/dev/hda4"?? Try "root=/dev/hda4" and forget about "real_root"
I used genkernel to build the kernel and it uses these settings to boot to the initrd image. I have tried the other way with simmilar results.
Back to top
View user's profile Send private message
mpeg4v3
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2003
Posts: 139

PostPosted: Fri Apr 30, 2004 11:08 pm    Post subject: Reply with quote

Try configuring the kernel manually and, under File Systems->Partition Types, select PC BIOS (MSDOS Partition Tables) Support.
Also, under Device Drivers->ATA/ATAPI/MFM/RLL Support, be sure that your motherboard's chipset IDE support is selected (when in doubt, just select ALL of the chipset support).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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