LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2004, 12:20 PM   #1
scud80
LQ Newbie
 
Registered: Nov 2004
Location: san diego, ca
Posts: 2

Rep: Reputation: 0
GRUB invalid root device problem


I installed Gentoo 2.4.26 over the weekend and the installation completed without any problems (as far as i could tell). I used the genkernel, ext2 on the boot partition and ext3 everywhere else.

The problems I encountered appeared when trying to boot into gentoo through grub. The error I received is
Block device /dev/sda6 is not a valid root device

my drive is set up in the following fashion
/dev/sda1 ... some 32M partition dell puts on new machines (i didn't buy it)
/dev/sda2 windows xp
/dev/sda3 boot
/dev/sda4 extended
/dev/sda5 swap
/dev/sda6 /
/dev/sda7 /home
/dev/sda8 /usr

and my grub file looks like this:
default 0
timeout 30
splashimage = (hd0,2)/grub/splash.xpm.gz

title=Gentoo
root (hd0,2)
kernel /kernel-2.4.26-gentoo-r6 root=/dev/ram0 init=/initrc ramdisk=8192 real_root=/dev/sda6
initrd /initrd-2.4.26-gentoo-r6

title=Windows XP
root (hd0,1)
makeactive
chainloader +1

windows boots with no troubles at all. i've looked around via google but haven't found anything helpful.

also, a semi-unrelated problem is that my usb keyboard will not work at the grub prompt after this error appears, and the power/reset button on the pc also doesn't work so the only way i can reboot is to cut the power to the pc.

anyway, i'm very new to the linux thing so if there's any other information that i can provide to get solution let me know. thanks -- jake.
 
Old 11-08-2004, 01:14 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
I bet the message sda6 is not a valid device is because grub uses a different notation for devices than unix. Just replace /dev/shda6 with (hd0,5) (I think).

Grub doesn't have builtin USB keyboard support as far as I know. Other boot managers and Grub 2 might have it.
 
Old 11-08-2004, 02:14 PM   #3
BerryBlocksta9
LQ Newbie
 
Registered: Sep 2004
Location: PA
Distribution: Mandrake 10.1
Posts: 12

Rep: Reputation: 0
GRUB_

This is of interest to me, because I have a problem a bit different from the previous but Grub bootloader messed up my pc or sumthin'. When I try to boot, all I get is
GRUB_
I can't type in anything, all I see is grub and a flashing line ( _ ).
Hope someone has an answer to this or a suggestion.
PEACE to all.
Yattara
 
Old 11-08-2004, 02:33 PM   #4
scud80
LQ Newbie
 
Registered: Nov 2004
Location: san diego, ca
Posts: 2

Original Poster
Rep: Reputation: 0
the real_root option has to be /dev/sda6 (i tried it with (hd0,5) which was unsuccessful).

i fixed this problem by manually compiling a kernel as opposed to using genkernel, so i don't exactly know what the problem was. the only two options i can think of which might have had an impact are sata and ext3 support, which i would have expected to come with genkernel but maybe they aren't.

so, now gentoo will begin booting but it hangs partway through, immediately after the "mounting local filesystems..." step. this gives an [ok] but then nothing happens afterwards. it just sits there. on the livecd the next step was mounting usb filesystems, so it may have something to do with this but i don't have an idea of how to fix it. i might try recompiling the kernel without usb filesystem support, but i would like to have it supported eventually so i have to figure this out at some point (if that is the culprit).

any other ideas? -- jake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid MCI device ID Crayoneater Linux - Software 1 05-26-2005 02:28 AM
Grub problem : not found or not a block device bennethos Debian 1 01-04-2005 03:54 PM
invalid mixer device Smokey Slackware 7 09-24-2004 03:47 AM
hardwired root device for grub flv7a Linux - General 1 11-14-2003 12:10 PM
Kernel Problem -- Cannot open root device jchutcheson Red Hat 3 09-24-2003 09:36 AM


All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration