Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant Mount Root -resolved
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
phalnix
n00b
n00b


Joined: 25 Jan 2004
Posts: 6
Location: houston tx

PostPosted: Sun Jan 25, 2004 7:22 pm    Post subject: Cant Mount Root -resolved Reply with quote

Hi i'll get straight to the guts because this really shouldnt be a hard problem but i've spent 1 1/2 days reading through everything i could find including the grubs online documentation.

config in grub.conf
root(hd0,0)
kernel (hd0,0)/kernel-2.4.22-gentoo-r5 root=/dev/hda2
initrd (hd0,0)/initrd-2.4.22-gentoo-r5

(yea i tried compiling the kernel 5+ times myself gave up and used genkernel with options --menuconfig --debuglevel=3 --debugfile blah all and it finally worked)

Asus a7n8x deluxe barton 2500+ 80 gig hd (on ide) partitioned as follows
hda1 = boot 100m reiserfs
hda2 = root 10G reiserfs
hda3 = swap 512m
hda5 = home 25G reiserfs
the rest will be for vids and such later

i've tried flipping all those values in my grub.conf around making sure i didnt scew up anything or misread anything. but i'm out of options

when i try to boot off that it give me following:

Step 4: Determining root device
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.

now if i type in /dev/hda2 i have a 1 in 5 shot of it booting. the rest of the time it results with a kernel panic usually saying something about mounting filesystem VFS...
i have checked and recompiled my kern 4 times to make sure i didnt miss any options about my ide chipset or reiserfs. they should both be compiled in..

What should i try now or where should i go... i completely gave up on my other system that now has mandrake on it.. spent 4 days with it as well .. which is confusing because i used to have gentoo running very nicely on it and only started from scratch as a learning experience. see what that gets you?

Thanks in advance for any help.


Last edited by phalnix on Mon Jan 26, 2004 7:49 am; edited 1 time in total
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sun Jan 25, 2004 10:12 pm    Post subject: Reply with quote

have you tried
Code:

root(hd0,1)
kernel(hd0,0)/bzImage root=/dev/hda2

after copying the bzImage file generated when you compile your kernel
?
_________________
noup.
Back to top
View user's profile Send private message
phalnix
n00b
n00b


Joined: 25 Jan 2004
Posts: 6
Location: houston tx

PostPosted: Mon Jan 26, 2004 12:13 am    Post subject: i'm pretty sure i had. Reply with quote

I'm pretty sure i had tried that and it just had a panic no kernel found type message. i'm at work right now i'll try again when i get home. grubs modifying options from bootprompt are nice

however i've also found a post that said i should try the following
in grub.conf
root=/dev/ram0 rea_root=/dev/hda3 init=/linuxrc i'm planning on trying that as well. however should i change linuxrc in the above to match my initrd-2.4.22-gentoo-r5 or whatnot?
Back to top
View user's profile Send private message
phalnix
n00b
n00b


Joined: 25 Jan 2004
Posts: 6
Location: houston tx

PostPosted: Mon Jan 26, 2004 7:49 am    Post subject: solved Reply with quote

changed root=/dev/hda2 to root=/dev/ram0 and added real_root=/dev/hda2 init=linuxrc

fixed it
:oops:
Back to top
View user's profile Send private message
Joe_Bogarde
n00b
n00b


Joined: 01 Jun 2003
Posts: 45
Location: Ellensburg WA

PostPosted: Mon Jan 26, 2004 9:11 am    Post subject: grub genkernel beta and unable to mount root block device Reply with quote

How happy I was when I found this thread after going through the same thing as the above poster.
How unhappy I was when I edited my grub.conf
changed root=/dev/hda4 to root=/dev/ram0 and added real_root=/dev/hda4 init=linuxrc

and got the same problem upon reboot. any ideas? I should be halfway through emerge kde right now. Help!!
_________________
"Persons attempting to find a motive in this narrative will be prosecuted; persons attempting to find a moral in it will be banished; persons attempting to find a plot in it will be shot." Mark Twain.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Mon Jan 26, 2004 3:46 pm    Post subject: Reply with quote

Actually, it says
Code:
init=/linuxrc

in the gentoo docs. Dunno if it makes a difference...
Back to top
View user's profile Send private message
Joe_Bogarde
n00b
n00b


Joined: 01 Jun 2003
Posts: 45
Location: Ellensburg WA

PostPosted: Mon Jan 26, 2004 8:08 pm    Post subject: typo in above posting Reply with quote

Hmm it was quite late when I made that posting, my grub doesn't contain the typo. Any Ideas?
_________________
"Persons attempting to find a motive in this narrative will be prosecuted; persons attempting to find a moral in it will be banished; persons attempting to find a plot in it will be shot." Mark Twain.
Back to top
View user's profile Send private message
phalnix
n00b
n00b


Joined: 25 Jan 2004
Posts: 6
Location: houston tx

PostPosted: Tue Jan 27, 2004 10:27 am    Post subject: Reply with quote

did you keep your initrd line?
i forgot to mention that i left my initrd line as is (only applies if using genkernel afaik)
Back to top
View user's profile Send private message
iRET
n00b
n00b


Joined: 28 Sep 2003
Posts: 17
Location: Spain

PostPosted: Wed Jan 28, 2004 12:53 pm    Post subject: Same VFS error, kernel panic Reply with quote

I think I've tried every possible way of boot config, but still no luck with this one.

I built the kernel and initrd image myself, so genkernel problems are out of consideration. I've also checked and double checked that I have reiserfs built on the kernel, along with ramdisk and initrd options and devfs mounted at boot. I also tried to boot with and without initrd.

Using initrd with kernel parameters "root=/dev/ram0 init=/linuxrc real_root=/dev/hda2" I get:

Code:

RAMDISK: compressed image found at block 0
VFS: mounted root (ext2 filesystem) readonly
mounted devfs on /dev
Freeing unused kernel memory: 232K freed
Red Hat nash version 3.5.7 starting
Mounting /proc filesystem
Creating block devices
Creating root device
mkrootdev: mknod failed: 17
Mounting root filesystem
mount: error 16 mounting reiserfs
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
kernel panic: Attempted to kill init!


I though the readonly thing on initrd root might be problematic, so I also tried giving rw to it via "rw" kernel option. Same result, though.

Without initrd:

Code:

VFS: cannot open root device "302" or hda2
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on hda2


I'm running 2.6.1-gentoo kernel. My safe boot is happily running 2.6.0, though I remember I had a similar issue with it. Shame I can't remember what made things work again :(
Back to top
View user's profile Send private message
Corw|n of Amber
Apprentice
Apprentice


Joined: 08 Aug 2003
Posts: 221
Location: Socialist Sovietic Republic of Belgium

PostPosted: Wed Jan 28, 2004 1:12 pm    Post subject: Reply with quote

If nothing else works, here is my grub.conf :

Code:
timeout 5
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title  GNU/Linux 2.6.1-rc1-love3 +fb
root (hd0,0)
kernel=/boot/kernel-2.6.1-rc1-love3 root=/dev/hda2 video=vesa:ywrap,mtrr vga=0x031A elevator=cfq


... with NO initrd. Genkernel makes initrds without ReiserFS support.
_________________
Whoever is enough of a fanatic to KILL people should be shot on sight.
Back to top
View user's profile Send private message
iRET
n00b
n00b


Joined: 28 Sep 2003
Posts: 17
Location: Spain

PostPosted: Wed Jan 28, 2004 2:17 pm    Post subject: fixed... kind of Reply with quote

Doh! It is generally a good idea to include PC BIOS partition support on the kernel... :oops:

My system now boots ok, as long as initrd is disabled. The initrd failure could well be related to what you mentioned, looks like it doesn't know what to do with a reiserfs partition. Anyway, bootsplash was the only thing I wanted that needed initrd, and giving "noinitrd" as a boot option while having initrd built does the trick. Bootsplash works and initrd is not used. Don't know if this has any counterparts, though...

Whatever... thanks for the help Corw|n :wink:
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