HOWTO: find and unlock locked files scattered on your Mac OSX local and removable hard drives

Want to share this cool trick:

Apple – Support – Discussions – Finding myriad locked files …

Open the Terminal application.

and a space. Now drag the hard drive icon on the Desktop to the Terminal window. This will produce the absolute path to the drive at mount point /Volumes. The text should look similar to this:

cd /Volumes/
Press the return key. You are now in the directory that contains the contents of your external drive.
To search for locked files use this command:

find . -flags uchg

If you receive any permissions error then:

sudo find . -flags uchg

Use this command to remove the lock on the files found:

sudo find . -flags uchg -exec chflags nouchg {} \;


~ by WPA Staff on April 26, 2010.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: