OS X won't let me delete this .dmg file! help!

Dlatu1983

Prime Minister
I was downloading the Unreal 2k3 demo, and it crapped out halfway. Since I was using safari, there was no way for me to pick up the download where I left off (unless there's something I don't know about). Now I have a disk image (or PART of one, I should say, as it's not complete) on my desktop. Every time I try to throw it in the trash, or even MOVE it, I get an error message saying that it's is use (even though I restarted my mac to makes sure to quit any app that might have been using it)...is there any way I can throw it out?
 
open terminal

sudo rm ~/Desktop/disk_image_name.dmg
enter your admin password

voila, you're done

(be sure u type in the correct path, ~ meaning your home directory)
 
Thanks:) by the way, while I'm on the subject, what's a reccomended book for a UNIX beginner? I want to learn to control OS X through the terminal. Maybe something from O'Reily?
 
i think the problem wasn't that complicated. I think you had not ejected the mounted drive yet.

1) Eject the mounted drive (move to trash)
2) THEN trow the unrealdemo.dmg in the trash

Not the other way round...
 
No, that's not the problem...the drive was never mounted. It wasn't a full .dmg file. The download quit about 1/4 of the way through, and I was left with a file on the desktop. I took the advice, logged in as sudo, and deleted it. Thx.
 
Back
Top