Re: pivot_root and initrd kernel panic woes

Stephen C. Tweedie (sct@redhat.com)
Thu, 13 Dec 2001 19:07:50 +0000


Hi,

On Tue, Dec 11, 2001 at 01:50:46PM -0500, Joy Almacen wrote:

> After which I added this line my /etc/lilo.conf file:
>
> image=/boot/vmlinuz-2.4.9-12smp
> label=2.4.9smp
> append="initrd=/boot/initrd-2.4.9-12smp.img root=/dev/ram0
> init=/linuxrc rw"

That's your problem. You need to specify your real root device in the
"root=" section; for example, mine looks like

image=/boot/vmlinuz-2.4.9-13
label=linux
initrd=/boot/initrd-2.4.9-13.img
read-only
root=/dev/md1

The initrd magic happens before the real root gets loaded: you don't
need to point root to /dev/ram0 to get a ramdisk.

Cheers,
Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/