Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    free up space on my hard drive

    Tried to delete files from a partition who got full.
    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
    1.6G home

    Is there any command I can use to clear the space without restarting the system.
    Any suggestion will be greatly appreciated.

  2. #2
    According to:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts