Re: ram disk (fwd)

Paul Gortmaker (linux@rasty.ph.unimelb.edu.au)
Thu, 16 Jul 1998 01:34:26 +1000 (EST)


> > Can you provide your boot logs?
>
> First here is the single line out of the boot log, Do you need more? This
> is with the boot append ramdisk_size=13288.
>
> Jul 3 11:37:45 fhcmed kernel: Ramdisk driver initialized : 16 ramdisks of 4096K size

Note that your boot argument was ignored and you have the default
4k size and not the 13k you wanted. Hence the I/O failure messages.

As to why your boot arg was ignored -- I can think of 2 reasons.

1: you put in /etc/lilo.conf but forgot to re-run lilo and hence it
has not taken effect.

2: you are using the ramdisk driver as a module, and boot-time args
only have scope/effect over drivers compiled into the kernel.

Fix for #2 is to add a line like

options rd rd_size=13288

to /etc/conf.modules (yes, at boot uses "ramdisk_size" and module
uses "rd_size" -- sigh) But it does indeed work -- e.g:

-----------------------------
wallace:/root # modprobe rd rd_size=13288
Ramdisk driver initialized : 16 ramdisks of 13288K size
wallace:/root # mke2fs -m0 /dev/ram0
[...]
Writing superblocks and filesystem accounting information: done
wallace:/root # mount -vt ext2 /dev/ram0 /mnt2
/dev/ram0 on /mnt2 type ext2 (rw)
wallace:/root # df -h /mnt2
Filesystem Size Used Avail Capacity Mounted on
/dev/ram0 13M 13K 13M 0% /mnt2
wallace:/root #
-----------------------------

I don't dare try to fully populate it as this box only has 12MB :)

Paul.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html