View previous topic :: View next topic |
Author |
Message |
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Fri Apr 30, 2004 1:09 pm Post subject: 2.6.5-r1 doesn't find root on boot. |
|
|
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 |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Apr 30, 2004 1:20 pm Post subject: |
|
|
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 |
|
|
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Fri Apr 30, 2004 4:24 pm Post subject: |
|
|
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 |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Apr 30, 2004 6:36 pm Post subject: |
|
|
You're right about the dmesg output. My mistake
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 |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Apr 30, 2004 6:43 pm Post subject: |
|
|
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 |
|
|
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Fri Apr 30, 2004 10:21 pm Post subject: |
|
|
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 |
|
|
mpeg4v3 Tux's lil' helper
Joined: 16 Sep 2003 Posts: 139
|
Posted: Fri Apr 30, 2004 11:08 pm Post subject: |
|
|
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 |
|
|
|