Difference between revisions of "Ramdisk"

From Linuxintro
imported>ThorstenStaerk
(New page: 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.)
 
imported>ThorstenStaerk
Line 2: Line 2:
 
  mount -t tmpfs tmpfs /tmp -o size=512M
 
  mount -t tmpfs tmpfs /tmp -o size=512M
 
In this case, the Ramdisk will be 512MB big.
 
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

Revision as of 06:28, 5 August 2010

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