Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Discrepancy between displayed file space usage and actual file size

Featured Replies

Hi,

 

I just noticed that several files use space on my disks although these files are "empty". When I say "empty files" I mean files with a size of 0 bit. But even if these files are zero bit in size they still use space on the disk.

If I run ncdu or df -h the actual space is used but when I look at the different file there are zero bit in size.

I put several screenshots to explain this strange behavior.

Is there any logical explanation to that?

 

Thank you for your help.

2019-10-07_09h07_42.png

2019-10-07_09h07_13.png

2019-10-07_09h06_14.png

2019-10-07_09h05_54.png

2019-10-07_09h05_18.png

  • Community Expert

As I remember, when a file is created, two things happen.  First, an entry is created in the File table which contains such information as the name of file and, second, the location of the first sector where the data is to be stored.  So even if the file has no data, that sector is still allocated and will be until you delete the file.

  • Author

Thank you for your reply.

It indeed was my problem.

I scripted something to delete all the file with 0 byte in size and recovered 30TB!

I am quite happy I noticed this by accident.

 

Thanks again for your help

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.