I ran a process that was writing stderr log messages to a file and didn't realize how fast the log file would grow. The result is that the log file filled up the entire rest of my hard drive and now when I try to remove the file using rm, the computer freezes. I'm running OS X Mountain Lion and my primary hard drive is 2TB. The log file is consuming over 1TB of disk space.
Do I need to just let rm run for a long time to remove a 1TB file? Should I just restore from a time machine backup?
rm) AND the last process that had it open closes it. If the process writing to it still had it open,rmwon't have recovered the space -- but truncating it (e.g. with: >) will, even if it's still open in some other process. – Gordon Davisson Sep 21 '12 at 06:40