I want to make a partition that is made of ram ...
In windows 7 you can make a partition that is made of ram
I have created 1 GB of partition in ram . using Primo RamDisk
Is there any good Alternative in Ubuntu ?
The above commands would use 2GB of my RAM for the RAMDISK. If you don’t have as much ram as I do I would use 512MB or 1GB. So next were going to create a command for Terminal that will automatically create the RAMDISK for you.
Source: How To Create A RAMDISK In Linux
The tmpfs filesystem is a RAMDISK. The following will create a 2G RAMDISK that will always be available.
The ramdisk folder is owned by root as it is to be available on reboot. The ramdisk permissions should be writeable by everyone. The tmpfs default permissions (chmod 1777) are correct.
To make the ramdisk permanently available, add it to /etc/fstab.
You will see the line moved from mtab to fstab. It will look something like this.
The RAMDISK won't consume memory until you use it. Double check your memory requirements during maximum system load. If the RAMDISK is too large, your system will consume swap storage to make up the difference.
To adjust the size of the RAMDISK, edit /etc/fstab and verify by remounting the ramdisk (you will lose your current RAMDISK content as you will on reboot). The following will change the size of the ramdisk to 512M