Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Invalid root device [SOLVED]
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
Dreadfull
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 139

PostPosted: Wed May 04, 2005 11:35 am    Post subject: Invalid root device [SOLVED] Reply with quote

can anyone help ?
using GRUB as boot loader .. says something about block device .. invalid root device
on /dev/sda3
the modules for SATA are loaded

using this in /etc/fstab:

Code:

/dev/sda1     /boot     ext2      noauto,noatime     1 1
/dev/sda3     /         reiserfs  noatime            0 0
/dev/sda2     none      swap      sw                 0 0


grub.conf:

Code:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-gentoo-r6

root(hd0,0)
kernel /kernel-2.6.11-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.11-gentoo-r6

_________________
CPU: AMD Athlon 64 3200+
RAM: 2 GB DDR 400 Dual channel
HDD: 2x200 GB WDC SATA
OS: Gentoo 2005.1
Compiler: GCC 3.4.5
kernel: 2.6.14-hardened-r5


Last edited by Dreadfull on Fri May 06, 2005 12:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Wed May 04, 2005 12:17 pm    Post subject: Reply with quote

You can't compile SATA as a module if you're going to be booting from a SATA drive. Compile them into your kernel and try again. If that doesn't solve your problem, search the forums. There's tons of people (myself included) who had this exact problem.....
_________________
Buses stop at a bus station.
Trains stop at a train station.
On my desk there's a workstation.....
Back to top
View user's profile Send private message
polle
Veteran
Veteran


Joined: 28 Feb 2003
Posts: 1498
Location: Belgium

PostPosted: Wed May 04, 2005 12:29 pm    Post subject: Reply with quote

Quote:
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-gentoo-r6

root(hd0,0)



I'm not an expert but hd is the notification vor IDE disks I believe, if you use sata disks it should be replaced by (sd0,0) I believe
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Wed May 04, 2005 1:10 pm    Post subject: Reply with quote

Quote:
I'm not an expert but hd is the notification vor IDE disks I believe, if you use sata disks it should be replaced by (sd0,0) I believe


'sd' is something that Linux uses to mark SCSI devices. Since Grub talks directly to the bios, it doesn't care about IDE, SATA, etc. thus all disks are 'hd'.
_________________
Buses stop at a bus station.
Trains stop at a train station.
On my desk there's a workstation.....
Back to top
View user's profile Send private message
Dreadfull
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 139

PostPosted: Wed May 04, 2005 6:37 pm    Post subject: Reply with quote

ffs someone make up your mind .. compiled the kernel twice .. once with genkernel once manually
still getting that error :<
grub was configured exactly as in handbook
_________________
CPU: AMD Athlon 64 3200+
RAM: 2 GB DDR 400 Dual channel
HDD: 2x200 GB WDC SATA
OS: Gentoo 2005.1
Compiler: GCC 3.4.5
kernel: 2.6.14-hardened-r5
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Wed May 04, 2005 11:08 pm    Post subject: Reply with quote

Your grub config is fine. The only thing you need to add is 'udev' to the end of the kernel line, but that won't solve the problems that you're having right now.

1) Are you sure that you're using the right SATA drivers? The ones under the IDE section are deprecated, you must use the ones in the SCSI section.

2) Are you sure you are using the right SATA drivers for your motherboard? Check the output of 'lspci' and compare that to the choices in the kernel config. Post the output here if you're not sure.

3) Are you sure that SCSI support itself is built into the kernel? At a very minimum, you need SCSI support, and support for SCSI drives. It's late here, so I could be missing something. When in doubt, include it.

Did you do as I said and search the forums? There's tons of people a lot smarter and more experienced than I am that have already answered this question.

I feel your pain. I was about to toss the Gentoo install cd out the window after spending hours trying to get my SATA drivers to work.
_________________
Buses stop at a bus station.
Trains stop at a train station.
On my desk there's a workstation.....
Back to top
View user's profile Send private message
teh minkeh
n00b
n00b


Joined: 19 Apr 2005
Posts: 42

PostPosted: Wed May 04, 2005 11:35 pm    Post subject: Reply with quote

I had the identical problem when I first installed using genkernel, but it magically disappeared when i entirely removed the "ramdisk=8192" arugment.
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu May 05, 2005 2:26 am    Post subject: Reply with quote

"invalid" is not "could not find", so it's probably not a problem with your ide controller modules or anything.

It can find the device, it just can't mount it...

Have you got reiserfs compiled into your kernel (not a module)?

Have you tried running fsck.reiserfs /dev/sda3? maybe your filesystem is corupted, although I can hardly believe it would be corupted already
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
Dreadfull
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 139

PostPosted: Fri May 06, 2005 10:25 am    Post subject: Reply with quote

did all by handbook .. the filesystems were ok .. the drivers were as modules not built-in that's why it didn't work .. heh
_________________
CPU: AMD Athlon 64 3200+
RAM: 2 GB DDR 400 Dual channel
HDD: 2x200 GB WDC SATA
OS: Gentoo 2005.1
Compiler: GCC 3.4.5
kernel: 2.6.14-hardened-r5
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Fri May 06, 2005 11:39 am    Post subject: Reply with quote

Quote:
did all by handbook .. the filesystems were ok .. the drivers were as modules not built-in that's why it didn't work .. heh


Don't forget to add "Solved" to the title of the thread.... glad it works...
_________________
Buses stop at a bus station.
Trains stop at a train station.
On my desk there's a workstation.....
Back to top
View user's profile Send private message
Dreadfull
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2005
Posts: 139

PostPosted: Fri May 06, 2005 12:48 pm    Post subject: Reply with quote

thanks !
_________________
CPU: AMD Athlon 64 3200+
RAM: 2 GB DDR 400 Dual channel
HDD: 2x200 GB WDC SATA
OS: Gentoo 2005.1
Compiler: GCC 3.4.5
kernel: 2.6.14-hardened-r5
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