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.

Deleted large file - space not released

Featured Replies

I deleted a large file.  1TB in size.  However my space was not released for use.

 

df -h shows that there is only 335MB when there should be 1TB more.  Also the same with the unraid gui.

 

I have restarted the system.  What is the best way to correct this issue?

 

Thanks!

  • Author

###########

reiserfsck --check started at Sun Mar  3 11:12:29 2013

###########

Replaying journal: Done.

Reiserfs journal '/dev/md1' in blocks [18..8211]: 0 transactions replayed

Checking internal tree.. finished

Comparing bitmaps..finished

Checking Semantic tree:

finished

No corruptions found

There are on the filesystem:

        Leaves 726309

        Internal nodes 4488

        Directories 64551

        Other files 501926

        Data block pointers 645101055 (18348 of them are zero)

        Safe links 0

###########

reiserfsck finished at Sun Mar  3 12:43:40 2013

###########

 

###########

reiserfsck --check started at Sun Mar  3 11:12:29 2013

###########

Replaying journal: Done.

Reiserfs journal '/dev/md1' in blocks [18..8211]: 0 transactions replayed

Checking internal tree.. finished

Comparing bitmaps..finished

Checking Semantic tree:

finished

No corruptions found

There are on the filesystem:

        Leaves 726309

        Internal nodes 4488

        Directories 64551

        Other files 501926

        Data block pointers 645101055 (18348 of them are zero)

        Safe links 0

###########

reiserfsck finished at Sun Mar  3 12:43:40 2013

###########

Since no corruptions were found, the space must still be allocated. 

Normally, I would describe how under Linux a given set of data blocks will be freed when the last file pointer to it is removed.  Pointers to a file can include links under a different name, or open file descriptors.  Since you've rebooted, the second is not possible, but the first certainly is possible.

 

If there is a disk with a number of top level directories, you can type

du -s /mnt/disk1/* | sort -n

and then see which directory is using the most space.

 

I just did that here and this is a sample results:

du -s /mnt/disk1/* | sort -n

0      /mnt/disk1/mg35

4      /mnt/disk1/disks.txt

1149    /mnt/disk1/dupes_out.txt

1694    /mnt/disk1/dupes_tmp4

2010    /mnt/disk1/dupes_tmp2

2138    /mnt/disk1/dupes_tmp5

3155    /mnt/disk1/dupes_tmp3

3191    /mnt/disk1/dupes_tmp1

21979  /mnt/disk1/mysql

1001922 /mnt/disk1/sandisk_cruiser.img

109888246      /mnt/disk1/data

155064277      /mnt/disk1/Pictures

1498694586      /mnt/disk1/Movies

 

You can then explore the largest directory and find your lost space.

 

  • Author

Since no corruptions were found, the space must still be allocated. 

Normally, I would describe how under Linux a given set of data blocks will be freed when the last file pointer to it is removed.  Pointers to a file can include links under a different name, or open file descriptors.  Since you've rebooted, the second is not possible, but the first certainly is possible.

 

If there is a disk with a number of top level directories, you can type

du -s /mnt/disk1/* | sort -n

and then see which directory is using the most space.

 

I just did that here and this is a sample results:

du -s /mnt/disk1/* | sort -n

0      /mnt/disk1/mg35

4      /mnt/disk1/disks.txt

1149    /mnt/disk1/dupes_out.txt

1694    /mnt/disk1/dupes_tmp4

2010    /mnt/disk1/dupes_tmp2

2138    /mnt/disk1/dupes_tmp5

3155    /mnt/disk1/dupes_tmp3

3191    /mnt/disk1/dupes_tmp1

21979  /mnt/disk1/mysql

1001922 /mnt/disk1/sandisk_cruiser.img

109888246      /mnt/disk1/data

155064277      /mnt/disk1/Pictures

1498694586      /mnt/disk1/Movies

 

You can then explore the largest directory and find your lost space.

 

Thanks.  I will give that a try.  I know there cannot be another reference of this file.  But I will try this and let you know what I find.  I decided to go ahead and run fix on the file system since I wasnt sure what the "Data block pointers 645101055 (18348 of them are zero)" meant.

 

I did find some similar behavior when it comes to lost free disk space and the reiser file system.  An archived thread of this was found here:

 

http://copilotco.com/mail-archives/reiserfs.2000/msg01710.html

 

Dunno if in the end I will need to do the same or what.

 

-Scott

  • Author

Well not sure what happened.  Maybe I was wrong and I deleted the file from a different disk.  I am in the process of copying files into my array.  Maybe I nuked a large file from one of the disks in importing in.  In any case it looks like I have the space I should have.

 

Thanks for the 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.