Re: Ramdisk with kernel 2.4.18

Frank Schaefer (frank.schafer@setuza.cz)
13 May 2002 07:50:54 +0200


On Fri, 2002-05-10 at 19:22, VAN DUC UY wrote:
> Hello all,
> i'm new to linux-kernel so i have some questions for linux kernel .
>
> Now adays, i try to make a Linux kernel support Ramdisk. i read some
> documents on internet and follow these document to complete. but the kernel
> cannot run properly.
>
> this is my linuxrc file :
> *******************************************************************
> #!/bin/nash
>
> echo "Loading jbd module"
> insmod /lib/jbd.o
> echo "Loading ext3 module"
> insmod /lib/ext3.o
> mount -t proc /proc /proc
> echo Mounting /proc filesystem
> echo Creating root device
> mkrootdev /dev/root
> echo 0x0100 > /proc/sys/kernel/real-root-dev
> umount /proc
> echo Mounting root filesystem
> <------------------------------- ERROR during mount rootfs
> mount --ro -t ext2 /dev/root /sysroot
> pivot_root /sysroot /sysroot/initrd
> *********************************************************************
> and my /etc/lilo.conf
> ******************************************
> image=/boot/vmlinux-2.4.18
> label="linux-ramdisk"
> initrd=/boot/initrd-2.4.18.img
> read-only
> root=/dev/ram
> append="init=/linuxrc"
>
> ******************************************
> Does somebody do it before ?
> can anyone give me some guide to make a linux kernel which root filesystem is
> on ramdisk?
>
Hi,

Read the Bootdisk-HOWTO. There you'll find a complete description, what
the kernel needs and does using root on ramdisk.

Regards
Frank

-
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/