Results 1 to 2 of 2
Thread: free up space on my hard drive
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Oct 2009
free up space on my hard drive
used rm, check with df -h, and du. They show different sizes
If I reboot, the df and du will match
>>> df -h /home
Filesystem Size Used Avail Use% Mounted on
3.9G 3.9G 0 100% /home
>>>du -h -s * | sort -k1 -g -r | grep home
Is there any command I can use to clear the space without restarting the system.
Any suggestion will be greatly appreciated.
Linux ext3 FAQ
Theodore Ts'o, the ext2 developer, said:
The standard cause for this is some user process keeping a deleted file open. When this happens, the space is not visible via 'du', since the file is no longer visible in the directory tree. However, the space is still used by the file until it is deallocated, and that can only happen once the last process which has the file open either closes its file descriptor to the file, or the process exits. You can use the lsof program to try to find which process is keeping an open file. Usually it's some log file, or some large data base file which gets rotated out, but some older process are still keeping the log file open.