I need help some for free space

as many users are running out of space ...
(the reason, because writing/changing files on /overlay/work directory (see different threads about the format of RAM, etc ...

short explaination:
if you delete/change/write files on /etc (overlay/work/etc/...), then the file system is having limits, and only DOING on modifying =>
1.) mark file as deleted (NOT remove it and restore space)
2.) write file new to partition.

and that means, after time .- you are not having space left, and you would need to do everything from scratch ...
but that is often a lot of effort (installing and configuring all packages, etc ...

example to loose a lot of space, if you update packages, then you ran out of memory very very quick.

SIMPLE SOLUTION:

#######################################################################

IF OVERLAY FULL:

1. BACKUP:of overlay

tar -cvpzf /tmp/overlay.tar.gz /overlay/

then copy overlay.tar.gz to local backup system or to any other host (etc winscp)

2. CLEANUP + REBOOT (then on default firmware)

/rom/sbin/jffs2reset

and cofirm with key "y"

then let it do the cleanup/reformat - and then check with cmd: "top", til the cleanup process with mtd is finish - takes up to 2-5min

then do a reboot (and it will set the config back to 192.168.1.1) via:
reboot
########

when it is up, then connect via ssh / scp (eg: winscp) and:

3. RESTORE:

then copy overlay.tar.gz to local /tmp from your backup system

sysupgrade -r /tmp/overlay.tar.gz

then check with cmd: "top", til the full restore process is done with mtd stuff til the cpu is on almost 0% and not working in any other format/copy processes - takes up to 2-5min , then cmd:

reboot
#######################################################################
and everything is as before and you have space !!
have fun - cu Camel

1 Like