PROBLEM MUDI ROUTER TOR AND SYSTEM

Please check the multi-WAN configuration and modify the IP address to one accessible within your network.
Alternatively, disable “Enable Interface Status Track”.
Refer: Multi-WAN - GL.iNet Router Docs 4

This is a memory issue, not a storage issue.

We do not recommend using an SD card for swap memory purposes, as this can significantly reduce the lifespan.

However, if you still want:

  1. Create a 128M swap file on your sd card path
dd if=/dev/zero of=/mnt/sdb1/swapfile bs=1M count=128
mkswap  /mnt/sdb1/swapfile
  1. Enable the swapfile and check whether it works fine
swapon /mnt/sdb1/swapfile
free

You should see the swap total not be zero.

root@GL-E750:~# free
              total        used        free      shared  buff/cache   available
Mem:         121188       44816       33692        1128       42680       56256
Swap:        131068           0      131068

  1. Auto mount at boot
cat <<EOF > /etc/init.d/swap
#!/bin/sh /etc/rc.common
START=99
sleep 5

SWAP_PATH=/mnt/sdb1/swapfile

start() {
        swapon \$SWAP_PATH
}
stop () {
        swapoff \$SWAP_PATH
}
EOF

chmod +x /etc/init.d/swap
ln -s /etc/init.d/swap /etc/rc.d/S99swap

Note to replace /mnt/sdb1/swapfile with the correct path.

1 Like