Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root device not fount
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
paulmedic555
n00b
n00b


Joined: 22 Sep 2004
Posts: 4
Location: Greece/Irakleio

PostPosted: Wed Sep 22, 2004 10:02 pm    Post subject: root device not fount Reply with quote

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
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Thu Sep 23, 2004 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message
paulmedic555
n00b
n00b


Joined: 22 Sep 2004
Posts: 4
Location: Greece/Irakleio

PostPosted: Thu Sep 23, 2004 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Thu Sep 23, 2004 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message
paulmedic555
n00b
n00b


Joined: 22 Sep 2004
Posts: 4
Location: Greece/Irakleio

PostPosted: Thu Sep 23, 2004 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Sep 23, 2004 9:44 pm    Post subject: Reply with quote

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... :wink:
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Thu Sep 23, 2004 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
paulmedic555
n00b
n00b


Joined: 22 Sep 2004
Posts: 4
Location: Greece/Irakleio

PostPosted: Fri Sep 24, 2004 11:53 am    Post subject: Reply with quote

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
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