NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

x219c's avatar
x219c
Luminary
Jan 15, 2019
Solved

Root full due to old volume

So, I need to get better with bash... But in the meantime, I've got a problem. My root is full.   I think I've narrowed down how it happened. I had an eda500 with a volume, eda2 on it. A few of t...
  • StephenB's avatar
    StephenB
    Jan 15, 2019

    There are a lot of mount points in the root partition, which can conceal the actual space usage in the partition.

     

    So start by entering 

    mount --bind / /mnt

    That mounts sysroot as /mnt.

     

    Then look at the space usage in /mnt.  For instance, 

    cd /mnt
    du -hsx * | sort -rh | head -10

    You can of course then descend into folders and repeat the du command (or use other commands to see what's taking the space).

     

    BTW, anything that is under a mount point can be deleted.

     


    x219c wrote:
    root@Hydra:/# rm -rf eda2                                                                                                   
    rm: cannot remove 'eda2/._share': Operation not permitted

    It's hard to be certain from what you posted, but I think it's likely that eda2 is actually the mount point for your new eda volume.  So check if the folders/files in eda2 match whats in eda.

     

    If I'm correct, eda2 is a btrfs volume - not the same as an ordinary folder.  That would explain why the rm command failed.  If it had worked you'd have deleted all the files on eda.

     

    When you're done with /mnt, you unmount it with

    cd /
    umount /mnt

    The cd matters, the umount will fail if you are in a folder of /mnt.

     

     

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More