Ramdisk

From LinuxIntro
Jump to: navigation, search

A Ramdisk in Linux can be created on the /tmp folder using the command

mount -t tmpfs tmpfs /tmp -o size=512M

In this case, the Ramdisk will be 512MB big.

Increase size

To increase the Ramdisk's size without loosing a file, use

mount -t tmpfs tmpfs /tmp -o size=1024M,remount