Timeline for ext4 disk space not reclaimed after deleting files
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 16, 2016 at 3:50 | vote | accept | Richard Rath | ||
| Apr 22, 2015 at 10:16 | vote | accept | Richard Rath | ||
| Sep 16, 2016 at 3:50 | |||||
| Apr 22, 2015 at 10:07 | comment | added | Richard Rath | that was the answer. Thank you. FYI, here is what I ran: [~]$sudo tune2fs -l /dev/sde1 | grep "Reserved block count" Reserved block count: 24410354 [~]$sudo tune2fs -m0 /dev/sde1 tune2fs 1.42.12 (29-Aug-2014) Setting reserved blocks percentage to 0% (0 blocks) [~]$sudo tune2fs -l /dev/sde1 | grep "Reserved block count" Reserved block count: 0 | |
| Apr 22, 2015 at 4:20 | comment | added | derobert | @Rich look in the comments in your question, it's tune2fs | |
| Apr 22, 2015 at 4:19 | comment | added | Richard Rath | hmm, ok, I see that 1.8T-1.7T=100G. I saw a command to change the amount reserved for root somewhere (it was a switch to something). I really don't think I need to reserve any for root, since nothing is actually run on the disk. It is all backups basically. Do you happen to know that command/switch. I can find it again, but have not been able to so far. Thanks for your help on this. | |
| Apr 22, 2015 at 4:12 | comment | added | derobert | @Rich df always displays the amount available to a user, even if run as root. You have more than that free, look at the difference between Size and Used. Avail is confusing due to the reserved space. | |
| Apr 22, 2015 at 4:06 | comment | added | Richard Rath | I have full backups (1 of the system, 1 from crashplan with my data, + data in dropbox mirrored to about 4 computers. The backup I deleted was to a borked system backed up as root. I reinstalled OS, restored my data & made a new root system backup in a new folder & deleted the bad backup. From what you are saying, there must be hardlinks somewhere but I have no idea where they could be. I am still not seeing how I can delete a 100 gig root-owned folder, remove trash, and still have only 5 gigs left as both root or user. I hope I am not missing something in your explanation. | |
| Apr 22, 2015 at 3:56 | comment | added | derobert | @Rich that's consistent with either, you'd need the df output from before deleting them to compare. I'm guessing #1, though. | |
| Apr 22, 2015 at 3:49 | comment | added | Richard Rath | THanks for this detailed explanation. df returned the following as regular user and the exact same thing as root /dev/sde1 1.8T 1.7T 5.2G 100% | |
| Apr 22, 2015 at 3:02 | history | answered | derobert | CC BY-SA 3.0 |