LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Kernel wont mount root filesystem, complains about pivot_root (https://www.linuxquestions.org/questions/linux-hardware-18/kernel-wont-mount-root-filesystem-complains-about-pivot_root-236484/)

kofrad 09-28-2004 11:31 PM

Kernel wont mount root filesystem, complains about pivot_root
 
I just recently finished compiling the Linux 2.6.3-7 kernel and added everything into my lilo.conf file, checked the config and installed lilo. When I tried to boot up, I told lilo to boot using the new kernel and I saw the kernel loading and everything looked like it was working so far, then I got this

Code:

Mounting root filesystem
Mount: error 6 mounting ext3 flags defaults
Well, retrying without the option flags
Mount: error 6 mounting ext3
Well, retrying read-only without any flag
Mount: error 6 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
Kernel panic: No init found. Try passing init=option to kernel

I have trying recompiling from scratch and I have the ext2 and ext3 code compiled directly into the kernel, not as modules. I can't seem to figure this one out, if someone could tell me what I am doing wrong, I would really appreciate it. Thanks.

quatsch 09-29-2004 07:29 AM

There is probably something wrong with your lilo.conf.
can you still boot with the old kernel?

If you can't, try something like
linux noinitrd

at the lilo option screen (press ESC at the lilo menu).

kofrad 09-29-2004 11:15 AM

I can still use my old kernel, I tried first without an initrd, but I got errors before I got this far. I can't remember what the errors are because I'm not at home, but I'll get them once I'm back.

kofrad 09-29-2004 06:00 PM

Here is what I get when passing the noinitrd option to the kernel

Code:

VFS: Cannot open root device "309" or unknown-block (3,9)
Please append a correct "root=" boot option
kernel panic: Unable to mount root fs on unknown-block(3,9)

I have the root option set in my lilo.conf and it is the same as what is set for my other kernels.

quatsch 09-29-2004 10:59 PM

hmm. could you post your lilo.conf?


All times are GMT -5. The time now is 11:06 AM.