OpenWrt Forum Archive

Topic: Increase free space / Not enough space on device

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

I want to increase the free space on the router since I've used up all the available 32mb of RAM.

My setup is a TL-1043ND with an external USB 3.0 HDD drive with a single partition mounted.

Is it possible when the router runs out of space in the memory to overflow to that mounted file on the external HDD?
Also how the overlay process can be achieved?

# free
             total         used         free       shared      buffers
Mem:         29212        28236          976            0         2000
-/+ buffers:              26236         2976
Swap:       524284         6724       517560

# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14608k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /mnt/media type ext3 (rw,relatime,user_xattr,barrier=1,nodelalloc,data=ordered)
none on /proc/bus/usb type usbfs (rw,relatime)

# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    5.1M      4.8M    296.0K  94% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                    14.3M      1.3M     13.0M   9% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3            5.1M      4.8M    296.0K  94% /overlay
overlayfs:/overlay        5.1M      4.8M    296.0K  94% /
/dev/sda1                 1.8T     83.0G      1.6T   5% /mnt/media

Thanks in advance for your support!

So, I successfully managed to mess up as follos:

The overlay is now on the external hdd, which is mounted automatically at startup.
I would have like it to have a separate partition, but that's it. Also I have no idea how to go back to the previous state (in memory root) so I had to reinstall/configure evrything.

I left with two open things:

1) minidlna shows only audio files, and one image and no video at all.
Seems like a problem I had in the past but back then the drive was NTFS.

2) installed transmission when opened up in the browser (web interface) it only shows (http://192.168.1.1/transmission/):
No such file or directory

my transmission configuration:
config transmission
        option alt_speed_enabled 'false'
        option bind_address_ipv4 '0.0.0.0'
        option bind_address_ipv6 '::'
        option blocklist_enabled 'false'
        option cache_size_mb '2'
        option dht_enabled 'true'
        option download_queue_enabled 'true'
        option download_queue_size '4'
        option encryption '1'
        option idle_seeding_limit_enabled 'false'
        option lazy_bitfield_enabled 'true'
        option lpd_enabled 'false'
        option message_level '1'
        option peer_limit_global '240'
        option peer_limit_per_torrent '60'
        option peer_port '51413'
        option peer_port_random_on_start 'false'
        option peer_socket_tos 'default'
        option pex_enabled 'true'
        option port_forwarding_enabled 'true'
        option preallocation '1'
        option queue_stalled_enabled 'true'
        option queue_stalled_minutes '30'
        option ratio_limit_enabled 'false'
        option rpc_authentication_required 'false'
        option rpc_bind_address '0.0.0.0'
        option rpc_enabled 'true'
        option rpc_port '9091'
        option rpc_url '/transmission/'
        option rpc_whitelist_enabled 'true'
        option scrape_paused_torrents_enabled 'true'
        option script_torrent_done_enabled 'false'
        option seed_queue_enabled 'false'
        option speed_limit_down_enabled 'false'
        option speed_limit_up_enabled 'false'
        option start_added_torrents 'true'
        option trash_original_torrent_files 'false'
        option umask '18'
        option upload_slots_per_torrent '14'
        option utp_enabled 'true'
        option scrape_paused_torrents 'true'
        option watch_dir_enabled 'false'
        option enabled '1'
        option download_dir '/media/Download'
        option rename_partial_files '1'
        option config_dir '/etc/config/transmission'
        option incomplete_dir_enabled 'false'
        option rpc_whitelist '127.0.0.1,192.168.1.*,192.168.1.100'

The discussion might have continued from here.