Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

d0vr

macrumors 6502a
Original poster
Feb 24, 2011
603
1
I'm trying to empty my trash but it's stuck on one video. I've cleared the rest by making it skip this file, but now it won't go away. When I use empty trash, it says the file is in use. Using 'lsof' in the terminal shows that only finder is using the file. Trying to use "securely empty trash" results in it just hanging on the file and the progress bar not moving.

I've used alt+"delete" to try and force the delete on both of the above options and resulted in the same problems.

Now the weird parts. when pressing space and opening up the quick preview panel, the place where it shows the file size keeps changing between "Calculating size..." and "7.04GB". The last modified space adds one second each time it flashes (so it's checking the file size each second). I can still move the file out of the trash, and the same thing keeps on happening (it keeps checking the file size)

I just changed my directory structure around and I think I may of accidentally corrupted this file somehow. Since I changed up how my hard drive partitioning, spotlight is trying to index my computer again. It's stuck on "Estimating index time.." and I think it's stuck on this file. When I reboot my computer, the checking of the file size stops, but when I try to delete the file, it starts again.

How can I force this file to be deleted and get back 1.5% of my disk? It's not a lot of space, but to lose it permanently seems like a waste :p I'd also like my computer to be able to complete the index as well...
 

mrapplegate

macrumors 68030
Feb 26, 2011
2,818
8
Cincinnati, OH
I'm trying to empty my trash but it's stuck on one video. I've cleared the rest by making it skip this file, but now it won't go away. When I use empty trash, it says the file is in use. Using 'lsof' in the terminal shows that only finder is using the file. Trying to use "securely empty trash" results in it just hanging on the file and the progress bar not moving.

I've used alt+"delete" to try and force the delete on both of the above options and resulted in the same problems.

Now the weird parts. when pressing space and opening up the quick preview panel, the place where it shows the file size keeps changing between "Calculating size..." and "7.04GB". The last modified space adds one second each time it flashes (so it's checking the file size each second). I can still move the file out of the trash, and the same thing keeps on happening (it keeps checking the file size)

I just changed my directory structure around and I think I may of accidentally corrupted this file somehow. Since I changed up how my hard drive partitioning, spotlight is trying to index my computer again. It's stuck on "Estimating index time.." and I think it's stuck on this file. When I reboot my computer, the checking of the file size stops, but when I try to delete the file, it starts again.

How can I force this file to be deleted and get back 1.5% of my disk? It's not a lot of space, but to lose it permanently seems like a waste :p I'd also like my computer to be able to complete the index as well...

Are you able to delete it in terminal?
sudo rm filename
 

ideal.dreams

macrumors 68020
Jul 19, 2010
2,385
1,158
Try what mrapplegate suggested but be careful when using Terminal to delete files. A typo could cause unrepairable damage to your system.

Before opening terminal, open your trash can and use CMD+C to copy the file you're trying to get rid of. Then open terminal, type "sudo rm " without quotes (with the space after rm) and then paste. This will paste the file's path so you know it's accurate. You will be prompted to type your password after pressing enter. Note that while you're typing your password it won't show up. Just type it in and press enter. Hopefully that'll solve your issue!

Good luck.
 

d0vr

macrumors 6502a
Original poster
Feb 24, 2011
603
1
Are you able to delete it in terminal?
sudo rm filename

-.- ****, yup. Why don't all help websites just start with something as simple as that. Spotlight finished indexing, and my fan stopped going loudly as soon as I did that.

Is there anyway to check and make sure I've reclaimed the disk space?

----------

Try what mrapplegate suggested but be careful when using Terminal to delete files. A typo could cause unrepairable damage to your system.

Before opening terminal, open your trash can and use CMD+C to copy the file you're trying to get rid of. Then open terminal, type "sudo rm " without quotes (with the space after rm) and then paste. This will paste the file's path so you know it's accurate. You will be prompted to type your password after pressing enter. Note that while you're typing your password it won't show up. Just type it in and press enter. Hopefully that'll solve your issue!

Good luck.

I just dragged the file into terminal to get the path. This thread makes me look like a noob, doesn't it? :p Hopefully your post will be useful to anyone googling now for a similar problem who doesn't know how to use terminal. Thanks though!
 

ideal.dreams

macrumors 68020
Jul 19, 2010
2,385
1,158
I just dragged the file into terminal to get the path. This thread makes me look like a noob, doesn't it? :p Hopefully your post will be useful to anyone googling now for a similar problem who doesn't know how to use terminal. Thanks though!

Dragging the file works too :p. Glad you got it fixed!
 

mrapplegate

macrumors 68030
Feb 26, 2011
2,818
8
Cincinnati, OH
-.- ****, yup. Why don't all help websites just start with something as simple as that. Spotlight finished indexing, and my fan stopped going loudly as soon as I did that.

Is there anyway to check and make sure I've reclaimed the disk space?

----------



I just dragged the file into terminal to get the path. This thread makes me look like a noob, doesn't it? :p Hopefully your post will be useful to anyone googling now for a similar problem who doesn't know how to use terminal. Thanks though!


Glad you got it working. You can use Activity Monitor and check the disk usage tab or choose Get Info from your HD icon and check used/available space there. There are other ways as well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.