Community discussions

MikroTik App
 
User avatar
BrateloSlava
Member Candidate
Member Candidate
Topic Author
Posts: 167
Joined: Mon Aug 09, 2021 10:33 am
Location: Ukraine, Kharkiv

Disk cleanup without reinstalling the OS

Fri Jan 13, 2023 7:10 pm

I have a couple dozen devices with 16MB of memory - cAP ac, wAP ac, hAP ac2.

When I tried to upgrade from 7.6 to 7.7, I noticed that there was no free space.

Example:
system/resource/print 
                   uptime: 37m26s
                  version: 7.6 (stable)
               build-time: Oct/17/2022 10:55:40
         factory-software: 6.45.9
              free-memory: 53.0MiB
             total-memory: 128.0MiB
                      cpu: ARM
                cpu-count: 4
            cpu-frequency: 448MHz
                 cpu-load: 0%
           free-hdd-space: 0
          total-hdd-space: 15.2MiB
  write-sect-since-reboot: 629
         write-sect-total: 5125597
               bad-blocks: 0%
        architecture-name: arm
               board-name: hAP ac^2
                 platform: MikroTik

file/print detail 
 0 name="flash" type="disk" creation-time=nov/17/2021 03:30:43 
 1 name="flash/skins" type="directory" creation-time=jan/01/1970 02:00:19 
 2 name="flash/pub" type="directory" creation-time=nov/17/2021 03:30:43 

There are no user files. It looks like the "invisible" part of the disk is full. Most likely (possibly) - some temporary files that are hidden from the user.

Everything is fixed quite simply - /system reset-configuration no-defaults=yes skip-backup=y

Or in general - netinstall.

Followed by entering text commands from the backup.

This is not very convenient, because. you need to go to the objects and connect manually with a laptop to each device.

A possible cause of this problem could be a power failure.

It is strange, that the firmware update procedure does not clear this "hidden" area from "extra" files. For example, "normal" devices after upgrading to 7.7 have about 11% free space.
I have cAP ac which have 8%, 7% etc. free space.

Who is online

Users browsing this forum: Bing [Bot], itamx and 93 guests