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.

File deleted, but no free space on disk. What happened?

Featured Replies

This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command.

 

The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go?

This is probably not your issue, but... did you setup Samba Recycle Bin? I think you would remember doing so as it involves editing a file & setting a location for the recycle bin.

 

I set it up on my unRAID server. If I delete something stored on unRAID through my Windows system, the file is not deleted, but moved to the location where I set the recycle bin. Every so often, I telnet or ssh into unRAID to manually run a command to delete files from the recycle bin to free up space.

  • Author

This is probably not your issue, but... did you setup Samba Recycle Bin? I think you would remember doing so as it involves editing a file & setting a location for the recycle bin.

 

I set it up on my unRAID server. If I delete something stored on unRAID through my Windows system, the file is not deleted, but moved to the location where I set the recycle bin. Every so often, I telnet or ssh into unRAID to manually run a command to delete files from the recycle bin to free up space.

 

I don't think so. Don't even know how to do that. Can you explain further?

If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system.    I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues.

This is the post I came across on Samba Recycle Bin. It involved manually editing the smb-extra.conf file. If you do not remember doing it, that will not be the issue. The thread should cover pros & cons of using it pretty well.

  • Author

If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system.    I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues.

 

Thanks, I will try that.

 

Is it possible to run multiple instances of reiserfsck in screen?

This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command.

 

The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go?

 

I know this is very very simple, have you tried restarting the server? This has happened to me to randomly.. and after restart file sometimes comes back/or your free space will be re-calculated

 

I think this has happened with 2-3 files over the past 4 years, not a big deal... same thing with after having my server on for a two months.. and deleting/adding over and over again.. when I restart .. all of a sudden my share will get a bit bigger...just to check no corruption parity check seems fine after too

  • Author

This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command.

 

The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go?

 

I know this is very very simple, have you tried restarting the server? This has happened to me to randomly.. and after restart file sometimes comes back/or your free space will be re-calculated

 

I think this has happened with 2-3 files over the past 4 years, not a big deal... same thing with after having my server on for a two months.. and deleting/adding over and over again.. when I restart .. all of a sudden my share will get a bit bigger...just to check no corruption parity check seems fine after too

 

I tried that, but didn't work. Thanks for the input nevertheless.

If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system.    I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues.

 

Thanks, I will try that.

 

Is it possible to run multiple instances of reiserfsck in screen?

yes.
  • Author

If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system.    I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues.

 

Thanks, I will try that.

 

Is it possible to run multiple instances of reiserfsck in screen?

yes.

 

Thanks Joe,

 

After I started a reiserfsck session, how do I start a new one? When I press ctrl-A c it just show A c on screen and nothig happens.

 

I did it before with upto 6 preclears, but now it won't work. Can you please explain?

Did you type "screen" first before you tried the CTRL-A?

  • Author

Did you type "screen" first before you tried the CTRL-A?

 

Good point. I did type screen, but got "command not found". I used it when preclearing in RC12a, but updated to RC15 early this morning. seems I have to reinstall screen.

I have the same board you can run multiple screens with the IPMI. I've done it with preclears.

  • Author

I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted.

I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted.

 

Interesting.  I suspect (but don't know for sure, as I'm not sure how Linux handles this) that there is a file with a strange name out on your system that's actually the file you deleted.  Set your Windows Explorer parameters so it shows hidden files and system files;  then browse your UnRAID disks and see if there's a file that looks "weird" (like, for example, the temp files that Windows creates when running various check utilites, like the Malicious Software Removal tool that runs each month).

 

Are you SURE the space wasn't restored?

 

I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted.

 

Interesting.  I suspect (but don't know for sure, as I'm not sure how Linux handles this) that there is a file with a strange name out on your system that's actually the file you deleted.  Set your Windows Explorer parameters so it shows hidden files and system files;  then browse your UnRAID disks and see if there's a file that looks "weird" (like, for example, the temp files that Windows creates when running various check utilites, like the Malicious Software Removal tool that runs each month).

 

Are you SURE the space wasn't restored?

In that same vein, I'd do a search on all files around the 40GB size, and make sure they all are good files, and your mystery file isn't hiding out somewhere. Possibly sort by modification date.

Sorting by size and/or modification date is a very good idea  :)

I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted.

All it takes to keep a set of blocks in use (not free them for reuse) is a single open file descriptor.

 

This was a trick used by many programs.  Open up a temp file, keep it open, and delete it.  It could then be read and written and would automatically delete itself when the process ended and the file-descriptor was closed. (or when the server was rebooted)

 

Your SAMBA process might still have the file open.  Or, as others have said, perhaps the file was moved to a temporary name.

 

Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it

find /mnt/user -size +30G -exec ls -ld {} \;

It will print the locations of all the files over 30Gig in size.

Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it

find /mnt/user -size +30G -print

 

Nice to have a Linux guru around here  :)

 

If you Telnet to your server (or just run it on the console if you have one) and run that, it will run notably faster than a Windows command would that has to do all the back-and-forth file activities on the network  :)

Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it

find /mnt/user -size +30G -print

 

Nice to have a Linux guru around here  :)

 

If you Telnet to your server (or just run it on the console if you have one) and run that, it will run notably faster than a Windows command would that has to do all the back-and-forth file activities on the network  :)

I updated the command in the prior post to have it print the long listing including the size.
  • 3 years later...

Hi I have started another thread on what I think is possibly the same issue

any help much appreciated 

 

 

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.