How to : Fix a Locked Hard Disk

extracted from :


First in terminal type :


ls -alO /Volumes


and hit return.  This will display the attached hard drives and give their permissions and owners.


drw-rw-r-T+   18   owner staff    uchg    680   May 28 08:56 HardDrive 


If your results include a  line like above with "uchg" then the following command should help:


chflags nouchg /Volumes/HardDrive

sudo chmod 1775 /Volumes/HardDrive

echo "done"


If the disk is owned by root then you can add a sudo into the first line also :


sudo chflags nouchg /Volumes/HardDrive

sudo chmod 1775 /Volumes/HardDrive

echo "done"