Arch Linux /tmp分区容量不足解决

yaourt 安装Oracle-XE, 解压的时候报错, /tmp空间不足

参考查 wiki -> tmpfs得知默认会把/tmp 分成内存的一半, 我 512M 的内存, 所以分了 243M

原话是

1
2
By default, a tmpfs partition has its maximum size set to half of the available
RAM, however it is possible to overrule this value.

解决方案是

1
2
3
To explicitly set a maximum size, in this example to override the default /tmp
mount, use the size mount option: /etc/fstab tmpfs /tmp tmpfs
rw,nodev,nosuid,size=2G 0 0

改完保存重启再安装一切正常