Resize tmpfs

I've got a 512 running debian wheezy and my /tmp seems to be defaulting to 100m.

How can I go about resizing this?

The only place I can find it defined is in /etc/mtab, but I can't write to that file. (error writing mtab: Invalid argument)

it's not present in fstab, /etc/udev/rules.d or /dev/shm.

Thanks for any guidance!

3 Replies

in /etc/fstab

none /tmp tmpfs defaults,size=70% 0 0

then

mount -o remount /tmp

That did the trick, thank you!

Where are those tempfs mounts initially defined?

https://www.kernel.org/doc/Documentatio … /tmpfs.txt">https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct