1

This question is not about why the file sizes mentioned by different commands in Ubuntu aren't exactly the same (e.g. here). On the contrary, it says they are almost same. It's about why the copy command thinks a folder is ~711GB instead of the purported ~140GB.

A 1 TB HDD containing folder folder is mounted at /media/username/drivename. The folder size as determined to be ~130-140GB using 3 separate methods. ( df, folder properties, Disk Usage Analyzer utility), however upon trying to copy folder to /home/username/Desktop(present on a separate boot drive SSD) the operating system says that there isn't enough available disk space in the SSD.

273.2 GB more space is required to copy to the destination.

This error occurs when the 'copy progress' popup is at:

Preparing to copy 2859633 files(438.5GB)

i.e the system reports folder is ~711GB.

Specs:

  • OS: Ubuntu 18.04
  • SSD: 256GB available disk space, ~251GB Total (according to Disk Usage Analyzer)
  • HDD: 1TB available disk space, ~983GB Total (according to Disk Usage Analyzer)
    update: ls -l folder lists drwxr-xr-x 2 root root for everything inside

The ultimate goal is to make a 700GB partition on the HDD to install CentOS and then copy folder back into the remaining space where it will keep getting used by the backup software running on Ubuntu 18.04 which is installed on an SSD.

karel
  • 114,770
lineage
  • 129

0 Answers0