Home » Questions » Computers [ Ask a new question ]

/tmp broken: mount doesn't show anything

/tmp broken: mount doesn't show anything

I'm on Ubuntu 9.04 and I've got the following problem:

Asked by: Guest | Views: 41
Total answers/comments: 1
Guest [Entry]

"You don't need a ""ramdisk"". And in my opinion, Linux's ramdisk support sucks... needing to set up kernel parameters, etc.. to get a proper large size. The only advantage to a ""ramdisk"" is you can partition it, refer to it like a hard disk device (eg. in an fdisk command, a dd command, etc.). You want tmpfs, which is a file system running on RAM (or swap) without all the disk device stuff in between. Just simply add what you expected to find in your /etc/fstab, then mount it.

choose whichever editor you like, one of the following for example:
sudo pico -w /etc/fstab
sudo vim /etc/fstab

# device mountpoint type options dump pass
# ------------------------------------------
none /tmp tmpfs defaults 0 0

sudo mount -a

And personally, I don't really like tmpfs on my /tmp... it runs out of space too fast. And with the built in automatic file caching on ext, you don't really need tmpfs anyway (except for writing large things, but then you fill up the disk... so what is the point?)."