Re: Using cramfs as root filesystem on diskless machine

Alexandr Andreev
2001-06-19T15:49:33Z

David L. Parsley wrote

>>...
>>RAMDISK driver initialized: 16 RAM disks of 4096K size 4096 blocksize
>>
> ^^^^^
>You also need to give the kernel 'ramdisk_size=XXXX'. I've used
>larger cramfs initrd's with no problem, but the kernel has to make
>larger ramdisks. By editing rd.c, you can make this stuff default.
>
>regards,
> David
>
My cramfs ramdisk size is less then 4096, it is only 2304Kb.
Matthias Kilian wrote me in the private letter:

> The cramfs does uncompression on the fly, i.e. on each file access.
> This means that the ramdisk in your example actually uses 2304 k RAM.

And besides, i have been tried this option already.

But, thank you anyway, now i know that big cramfs initrd`s works.
Possibly, some symlinks are broken, or some libraries are missed, on my
rootfs...
But it is very strange, that ext2fs ramdisk image works with the same
rootfs on it.
I'll try to investigate it by myself.

Regards.