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

Posted by | Posted on 14:38

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

Bogdan Michka | April 26, 2010 at 3:38 pm | Tags: files, folders, MacOSX, permissions | Categories: tips-n-tricks | URL: http://wp.me/pHbzX-l9

Want to share this cool trick:

Apple - Support - Discussions - Finding myriad locked files ...

Open the Terminal application.
Type:

cd
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 {} \;

Add a comment to this post


Trouble clicking? Copy and paste this URL into your browser: http://subscribe.wordpress.com

Comments (0)

Post a Comment