Currently my disk usage is showing about 22gb used. But a full backup is only 3.6gb. Just today I migrated from my old installation on a 10 year old laptop to a VM hosted on Proxmox. I restored from the 3.6gb backup, and now my VM is also showing about 22gb used, which is just baffling to me. I find it hard to believe that whatever compression software is being used is able to compress 22gb down to 3.6gb.
To be clear, it showed approximately 22gb used on the laptop before the migration as well.
I have tried using ncdu, du, and df commands in the home assistant terminal, but I get no clear results. Admittedly, I am not particularly familiar with Linux in general, so I can only approach this the same way I would on a Windows machine. If I had a similar issue on a Windows machine I would use something like Tree Size to drill down from the root and identify where all the space is being used.
From what I found online, ncdu, du, and df commands are a reasonable approximation of TreeSize. But the results I got from those commands dont make sense to me.
The space is being used on sda8. After a quick bit of researching I now know that “sd” is a scsi device, “a” is more or less the first one (aka first hard drive), and 8 is the partition. Great, so its using 22gb on the first hard drive on the 8th partition. I also understand that the paths shown to the right are sort of like the folders found on sda8. unfortunately, df -h did not tell me the individual folder sizes, just that the partition they are on has used 22gb.
so I ran du -h against each of the mount points on sda8. None of them were the issue, and they also do not add up to 22gb combined. I decided I would try and mount sda8 to /mnt because what I really want to do is just browse through the partition as a whole and see whats in it, but I get permission denied when I attempt to do so.
I feel like I have to be missing something obvious. It cannot be this hard to track down what is taking up space on a partition.
Any assistance would be appreciated!