View previous topic :: View next topic |
Author |
Message |
paulmedic555 n00b
Joined: 22 Sep 2004 Posts: 4 Location: Greece/Irakleio
|
Posted: Wed Sep 22, 2004 10:02 pm Post subject: root device not fount |
|
|
Hi all i am pretty new there and yesterday i printed gentoo install guide and started to install it.I boot from the livecd with smp kernel because i have one serial ata hard disk.I created this partitions :
/dev/sda2 as /boot
/dev/sda6 as /
and /dev/sda4 as swap
I added them in fstab as:
/dev/sda2 /boot ext2 defaults 0 0
/dev/sda6 / ext3 defaults 0 0
/dev/sda4 none sw butao sw 0 0
All went ok i use genkernel all which compiled 2.6.5 kernel and in grub i did root (hd0,1)
and setup (fd0)
After i reboot grub loads ok but in kernel i get something like root device don;t found and even if i try /dev/sda2 or /dev/sda6 i can't boot.What i do wrong? |
|
Back to top |
|
|
eelke Guru
Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Thu Sep 23, 2004 5:27 am Post subject: |
|
|
It would have been better if you had included your complete grub.conf I think you should have something like this in it::
Code: |
title=Gentoo Linux
root (hd0,1)
kernel /kernel-image root=/dev/sda6
|
|
|
Back to top |
|
|
paulmedic555 n00b
Joined: 22 Sep 2004 Posts: 4 Location: Greece/Irakleio
|
Posted: Thu Sep 23, 2004 8:52 am Post subject: |
|
|
That is my grub.conf file:
default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.5
root(hd0,1)
kernel /kernel-2.6.5-gentoo-r1 root=/dev/ram0 init=/linuxrc vga=788
real_root=/dev/sda6
initrd /initrd-2.6.5-gentoo-r1 |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Thu Sep 23, 2004 9:00 am Post subject: |
|
|
Are you sure you compiled sata support into the kernel:
in your kernel menuconfig
-device drivers
---scsi device support
------*enable scsi disk support
------scsi low level drivers
---------*enable serial ata support
------------*enable ... SATA support (choose support for your chipset)
to recompile your kernel, boot up from your livecd, mount the partitions (do not forget your boot partition), chroot into /mnt/gentoo and recompile (following the kernel installation part from the handbook) |
|
Back to top |
|
|
paulmedic555 n00b
Joined: 22 Sep 2004 Posts: 4 Location: Greece/Irakleio
|
Posted: Thu Sep 23, 2004 9:38 pm Post subject: |
|
|
I have promise sata controller and i compiled the kernel as module with it.Do i have to try it as build in?Also what kernel is the best to use 2.4.25 or 2.6.5.I boot the livecd with the smp 2.6.5 kernel
so fdisk /dev/sda find my disk(with 2.4.25 it don't).When i boot from grub the kernel is ok but then it said that root device don't found and when in the prompt it gives me i enter /dev/sda6 it says that /dev/sda6 is not a valid block device.Any ideas? |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Thu Sep 23, 2004 9:44 pm Post subject: |
|
|
You have to have it compiled in. After all, your modules are on the disk, so how can the kernel load them if it can't access the disk... _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Thu Sep 23, 2004 9:45 pm Post subject: |
|
|
EDIT: what he said
When booting the livecd use the smp kernel. For my system I emerged the gentoo-dev-sources (currently 2.6.8-r3) which I'm very happy with |
|
Back to top |
|
|
paulmedic555 n00b
Joined: 22 Sep 2004 Posts: 4 Location: Greece/Irakleio
|
Posted: Fri Sep 24, 2004 11:53 am Post subject: |
|
|
I recompiled the kernel and successfully i entered my gentoo system emerge kde and all is ok.Now i must optimize my system which it has some errors in boot and i see |
|
Back to top |
|
|
|