OpenWrt Forum Archive

Topic: supersizing tmp

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Am trying to enlarge /tmp

df -h

Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.2G    128.6M      3.0G   4% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                    30.1M    144.0K     30.0M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 3.2G    128.6M      3.0G   4% /overlay
overlayfs:/overlay        3.2G    128.6M      3.0G   4% /

vi /etc/config/fstab

config mount
        option target /tmp
        option device tmpfs
        option fstype tmpfs
        option options remount,rw,nosuid,nodev,noatime,size=512M
        option enabled_fsck 0
        option enabled 1

/etc/init.d/fstab reload
umount: can't umount /tmp: Device or resource busy

however, if I

 mount -t tmpfs -o remount,rw,nosuid,nodev,noatime,size=512M tmpfs /tmp
 df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.2G    128.6M      3.0G   4% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                   512.0M    144.0K    511.9M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 3.2G    128.6M      3.0G   4% /overlay
overlayfs:/overlay        3.2G    128.6M      3.0G   4% /

This then works until next reboot.
Any help would be appreciated.

I've put the mount command in /etc/rc.d/

Problem with the wiki though

The discussion might have continued from here.