How can I change the amount and size of Linux ramdisks (/dev/ram0 - /dev/ram15)?

Posted by Kevin S. on Super User See other posts from Super User or by Kevin S.
Published on 2011-03-08T23:44:57Z Indexed on 2011/03/09 0:12 UTC
Read the original article Hit count: 216

Filed under:
|
|

Using Linux, when I boot I automatically have 16 16MB ramdisks, however, I would like to create one really large ramdisk to test some software.

I found that I can adjust the size of the ramdisks already on the system with the kernel boot parameter ramdisk_size however, this makes all 16 ramdisks (/dev/ram0 - /dev/ram15) the size that is specified. So if I want to create a 1GB ramdisk, I would need 16GB of memory.

Basically, I want to create one 10GB ramdisk which would be /dev/ram0. How would I go about doing that? I assume there is a kernel boot parameter, but I just haven't found it.

© Super User or respective owner

Related posts about linux

Related posts about size