Rockchip · AI & Linux Hub

Storage & networking

Why a NanoPi NAS can fill its system disk when a USB drive is missing

The shared service writes a directory path.

If the USB disk originally hanging on this path is disconnected, the application may fail, or it may be written to the system disk to a normal directory with the same name during restart. For a NanoPi or ArmSoM small NAS, checking that the directory exists is not enough.

Verify the real mounting object

Use findmnt -T to check which mount the shared directory currently belongs to, and record the source device and file system identification. Verify expected data volumes before official service launch. If they do not match, writing is suspended and an alarm is issued. The empty directory with the same name on the system disk is the most easily mistaken object for the data disk.

Practice a boot without disk

In a backup test environment, shut down normally, remove the data disk, and then restart the system. Check whether the shared service refuses writes as designed and whether the system disk space is stable. This process is easier to reproduce safely than directly removing the disk being written to.

Don’t rush to merge after recovery

If the underlying directory has mistakenly written data, the directory content and data disk content should be checked separately on the premise of backup, and then restored according to business rules. Check the missing disk protection, alarm and recovery steps together to avoid the underlying files from being covered and occupying space for a long time after mounting and recovery.

Check to which file system the shared directory actually belongs

findmnt -T /srv/share -o TARGET,SOURCE,FSTYPE,OPTIONS
df -h /srv/share

Replace /srv/share with the actual shared directory.

Board documentation and references

ArmSoM Sige7

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →