Jump to content

False disk usage statistics


furkan

Recommended Posts

Hello. I'm using armbian on my orange win plus. I'm using it with an external hard drive, which has 3 TB of disk space. My orange has a sd card with 32 gigs of storage. I'm currently using it as daily backup server for one of my servers. However, armbian shows a full diskspace, so I cannot proceed any further. Here is some outputs from df -h

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            892M     0  892M   0% /dev
tmpfs           193M   21M  173M  11% /run
/dev/mmcblk0p1   29G   29G     0 100% /
tmpfs           963M     0  963M   0% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           963M     0  963M   0% /sys/fs/cgroup
tmpfs           963M  888K  963M   1% /tmp
/dev/zram0       49M  7,0M   38M  16% /var/log
tmpfs           193M     0  193M   0% /run/user/1000

 

And here is another one from df -i.

 

$ df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            228348    384  227964    1% /dev
tmpfs           246502    689  245813    1% /run
/dev/mmcblk0p1 1857792 212018 1645774   12% /
tmpfs           246502      1  246501    1% /dev/shm
tmpfs           246502      3  246499    1% /run/lock
tmpfs           246502     18  246484    1% /sys/fs/cgroup
tmpfs           246502     18  246484    1% /tmp
/dev/zram0       12800     45   12755    1% /var/log
tmpfs           246502     21  246481    1% /run/user/1000

Oddly, while df-h shows 100% of the disk is in use, df -i (and I) think it's barely being used. Here is a ncdu output for the root (/):

 

   22,4 GiB [##########] /mnt                                                                                                                           
    1,5 GiB [          ] /usr
. 415,4 MiB [          ] /var
   49,6 MiB [          ] /boot
   32,7 MiB [          ] /home
.  20,1 MiB [          ] /run
.  15,1 MiB [          ] /etc

I removed redundant lines which has a size with lower than 1 MiB for your eyes. I mounted my external hdd to /mnt/external and that's why it's that big, it shouldn't interfere with the sd card, nor the capacity of the os.

 

Waiting for your help.

 

Bests

 

Furkan

Link to comment
Share on other sites

From a quick look I'd say umount /mnt/external and check the /mnt folder for any big files. Maybe you accidently copied files to it while the external drive was not mounted and that filled up your sd card?

Link to comment
Share on other sites

$ man df

OPTIONS
       -i, --inodes
              list inode information instead of block usage

 

`df -i` is giving you inodes.

 

Sounds like your root filesystem is just full.

 

Out of curiosity (and for comparison), I just went and did `df -h` on a couple of my own Armbian systems (a cubietruck and an ODROID-XU4) and the root file system on those was only taking up 3.8G and 2.2G, respectively.  So, something is filling up your root filesystem.

 

Are you sure the backups are going to the external drive?  Double check the settings.

 

There are a number of tools you can use to analyze the filesystem and see what is taking up the space.  Personally I like qdirstat, because it gives a nice visual representation.  That tool is readily available in Debian repositories.  There are also command line alternatives.

 

In your case, if the system is locked up, you may need to shutdown, remove the sdcard and mount it in some other Debian, Armbian, or GNU/Linux based system to see what is going on (and perhaps delete some stuff).

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines