Skip to contentSkip to conversation

/tmp as ramdisk

DISCUSSION Simon Burke 3 participants 3 messages Dec 31, 2004

lore
Share & tools
lore
#0 lore raw

Stupid question really.

On my servers I'd like to mount /tmp as a ramdisk, for several reasons. How would i go about this with linux? Is it as simple as putting it in the /etc/fstab? where do i define the size of such a disk?

Signature · 4 lines
Theres no place like ::1

Thanks,
SimonB
#1 lore raw

Quoting Simon Burke <[email protected]>:

Quoted 6 lines

Stupid question really.

On my servers I'd like to mount /tmp as a ramdisk, for several reasons. How would i go about this with linux? Is it as simple as putting it in the /etc/fstab? where do i define the size of such a disk?

fstab

tmpfs /tmp tmpfs auto,size=256M,uid=0,gid=0,mode=1777 0 0

Your question is a little bit off-topic.
Happy new Year!

Signature · 1 line
Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]
#2 lore raw
In reply to Simon Burke
Quoted 6 lines · Simon Burke

Stupid question really.

On my servers I'd like to mount /tmp as a ramdisk, for several reasons. How would i go about this with linux? Is it as simple as putting it in the /etc/fstab? where do i define the size of such a disk?

mount -t tmpfs tmpfs /tmp

Signature · 3 lines
William Park <[email protected]>
Open Geometry Consulting, Toronto, Canada
Linux solution for data processing.