I'm creating ram block devices on a linux machine for a project we're working on. I don't want to use tmpfs.

When I use module brd to create a ramdisk I run the command

modprobe brd rd_size=1048576

This creates 16 devices -> /dev/ram[0-15] (all of size 1 GB)

But now I want to create two ramdisks of different sizes, say 1Gb and 2Gb.

I also understand I might be able to use lvm to "merge" two devices together and create a new 2GB device from two 1GB devices.

But I want the module to create ramdisks of different sizes without having to do the merging.

I've looked around for a method to do this, but it just seems that there is no way.

Does anyone know if there is a way to do this?

link|improve this question
Why don't you want to use tmpfs? Tmpfs solves your problem. – mailq Sep 16 '11 at 0:17
If I want to format it with a different filesystem like ext3 or something. I want a block device. – loosebazooka Sep 19 '11 at 21:16
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.