I dragged this folder from a digital camera flash SD media card to my desktop and it copied as a locked folder:
I dragged it because it had jpegs I wanted to put on my computer. I open it and it's empty. I go to "Get Info" and the locked box is checked but grayed-out so I can't uncheck it. Ownership and Permissions says I can read and write it. Get info gets stuck on calculating its size. It has no creation date. It is not content indexed and will not index. I cannot put it in the trash because it's locked. Pressing option doesn't allow me to put it in the trash. How do I get rid of this thing?
Article on setting the nasty filesystem flags in OS X.
I'd probably do the following:
1: Open up Terminal. (From this point, anything preceded by a "#" is what I'd type at the command line.)
2: # cd Desktop
(This is assuming you dragged the file to your Desktop)
3: # sudo bash
(this gives you a root prompt, so you don't need to type "sudo" before every other command.)
4: # ls -al IM01OLYM
(You should see a display that looks sort of like this:
drwxr-xr-x 2 myusername myusername 68 Oct 3 08:24 .
drwx------+ 33 myusername myusername 1122 Oct 3 08:24 ..
Make sure "myusername" matches your user name, and that you don't see any files other then "." and "..".)
From this point, two choices. A: Step 4 showed the "right" thing, IE, empty folder. (Ownership doesn't really matter if it's empty.)
5. # chflags nouchg IM01OLYM
6: # rmdir IM01OLYM
7: Exit terminal.
Should be *all gone*.
Option B: Non-empty folder (you can see files when you're root, which is what the "sudo bash" did.) not belonging to you:
5. # chflags -R nouchg IM01OLYM
6: # chown -R myusername:myusername IM01OLYM
(sub "myusername" with your actual user name.)
7: Exit terminal, open files in Finder, have fun.
Wow! Amazing. That did the trick. It just disappeared from the desktop. Thanks for taking the time to write all that out.
BTW: Did you try anything with the original camera media still on the system?
Is this an Olympus camera, by the way? Im just curious.
Yeah, I tried to simply put the folder back into the media--got the cannot because it's locked message. I was wondering if it was like the old Mac Classic where something dragged to your desktop is not actually copied to the hard drive, but no, the folder was definitely unconnected to the media. I did drag the jpegs from the original folder on the media card to a newly made folder on the desktop and then trashed the jpegs on the media card, but the locked folder remained. I made a very slight hand-mouse slip in the middle of originally dragging the folder to the desktop. Seemed like that had something to do with it going locked.
Ha ha, that's funny. Yes it is an Olympus camera. An old Camedia D-340R that I still use because it has great sharp close focusing ability.
I knew it, based on the title of the folder. I've an old D-620L that i still use.
Yeah, it has a good macro mode. Much better than the macro on the Nikon point and shoot digital that I bought my wife last year which was supposed to be good at macro. I'm about to put up a bunch of eBay auctions and I use the Olympus to take all the photos. It's only 1.3 megapixels, but the high quality resolution is excellent.