Locked folder won't unlock

9 replies [Last post]
Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434

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?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Eudimorphodon's picture
Offline
Joined: Dec 21 2003
Posts: 1204
Terminal Fun

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:

total 0
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.

--Peace

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
Buy that man a drink!

Wow! Amazing. That did the trick. It just disappeared from the desktop. Thanks for taking the time to write all that out.

Jon's picture
Jon
Offline
Joined: Dec 20 2003
Posts: 2804
BTW: Did you try anything wit

BTW: Did you try anything with the original camera media still on the system?

__________________

I am not in this world to live up to other people's expectations, nor do I feel that the world must live up to mine. - Fritz Perls

TheUltimateMacUser's picture
Joined: Jan 28 2004
Posts: 615
Olympus?

Is this an Olympus camera, by the way? Im just curious.

__________________

<> AppleFritter Chat: #AppleFritter on irc.freenode.net <> Click here to join!

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
Yeah, I tried to simply put t

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.

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
Ha ha, that's funny. Yes it i

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.

TheUltimateMacUser's picture
Joined: Jan 28 2004
Posts: 615
Knew it...

I knew it, based on the title of the folder. I've an old D-620L that i still use.

__________________

<> AppleFritter Chat: #AppleFritter on irc.freenode.net <> Click here to join!

Jon's picture
Jon
Offline
Joined: Dec 20 2003
Posts: 2804
Macro mode?

Macro mode?

__________________

I am not in this world to live up to other people's expectations, nor do I feel that the world must live up to mine. - Fritz Perls

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
Yeah, it has a good macro mod

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.