Previous 1 2 Next 29 Replies Latest reply: Apr 18, 2013 2:14 PM by Wahid Kabir Go to original post
  • Thomas Brierley Level 3 Level 3 (535 points)
    Michael Winner wrote:
    Okay...another. I attempted to delete the Pictures folder from with my user directory on the SSD, but OS X says I can't (was planning on putting in a symbolic link to the existing Pictures folder on the SSD). Do I need to work around this by leaving the Pictures folder on the SSD, and renaming the folder on the HDD to "PicturesHDD" and then creating a symbolic link to that folder on the SSD? Or can I actually delete the Pictures folder from the SSD? Thx


    Not sure why OS X is protecting it... but you can delete it.

    put this in your terminal then drag and drop the pictures folder to the terminal and hit return and enter your admin password (note the space after -R):

    sudo rm -R 


    make sure you get the correct directory because this will immediately delete it rather than trash it.
  • jsd2 Level 5 Level 5 (6,200 points)
    Thomas,

    The system won't let you trash the main user subfolders because they carry an "everyone deny delete" ACL. I created a test account, and on trying to delete ~/Pictures, saw:
    !http://i52.tinypic.com/x0qmgg.jpg!

    In Terminal:
    --------------------------------------------
    2010-Computer:~ t1$ ls -le ~
    total 0
    drwx------+ 5 t1 staff 170 Jan 26 20:35 Desktop
    0: group:everyone deny delete
    drwx------+ 4 t1 staff 136 Jan 26 20:34 Documents
    0: group:everyone deny delete
    drwx------+ 4 t1 staff 136 Jan 26 20:34 Downloads
    0: group:everyone deny delete
    drwx------+ 27 t1 staff 918 Jan 26 20:34 Library
    0: group:everyone deny delete
    drwx------+ 3 t1 staff 102 Jan 26 20:34 Movies
    0: group:everyone deny delete
    drwx------+ 3 t1 staff 102 Jan 26 20:34 Music
    0: group:everyone deny delete
    drwx------+ 4 t1 staff 136 Jan 26 20:34 Pictures
    0: group:everyone deny delete
    drwxr-xr-x+ 5 t1 staff 170 Jan 26 20:34 Public
    0: group:everyone deny delete
    drwxr-xr-x+ 5 t1 staff 170 Jan 26 20:34 Sites
    0: group:everyone deny delete
    -----------------------------------

    If I first removed the ACLs I could then trash them normally. I used this command:

    chmod -N ~/*


    --------------------------
    2010-Computer:~ t1$ chmod -N ~/*

    2010-Computer:~ t1$ ls -le ~
    total 0
    drwx------ 5 t1 staff 170 Jan 26 20:35 Desktop
    drwx------ 4 t1 staff 136 Jan 26 20:34 Documents
    drwx------ 4 t1 staff 136 Jan 26 20:34 Downloads
    drwx------ 27 t1 staff 918 Jan 26 20:34 Library
    drwx------ 3 t1 staff 102 Jan 26 20:34 Movies
    drwx------ 3 t1 staff 102 Jan 26 20:34 Music
    drwx------ 4 t1 staff 136 Jan 26 20:34 Pictures
    drwxr-xr-x 5 t1 staff 170 Jan 26 20:34 Public
    drwxr-xr-x 5 t1 staff 170 Jan 26 20:34 Sites
    ---------------------------------------------
  • Thomas Brierley Level 3 Level 3 (535 points)
    Thanks jsd2

    I forgot about ACL permissions... I guess i hadn't come across that problem myself because in the past i've modified user subdirectories offline running from a separate OS.
  • Michael Winner Level 1 Level 1 (0 points)
    Yikes! Whatever JSD2 posted (thanks for it...whatever it is) is beyond anything I can comprehend. Is he showing how to take off ACL and then remove the User directories? Any clarification on this, and the syntax, would be welcome.
  • Thomas Brierley Level 3 Level 3 (535 points)
    as jsd2 posted: this bit

    chmod -N ~/*


    the
    ~
    part is a link to whatever is the current running users directory is, and the asterix * applies the command to all files/directories within that directory...

    Sorry i like to explain

    so just to clarify (and incase you are not running from the user directory you wish to modify, you could also do:

    chmod -N /Volumes/SSD/Users/Michael/*


    or even just:

    chmod -N /Volumes/SSD/Users/Michael/Pictures


    then delete what you want in that user directory from finder
  • Michael Winner Level 1 Level 1 (0 points)
    Very cool. So

    chmod -N /Volumes/SSD/Users/Michael/*

    will remove ACL's from all directories under /Michael.

    And

    chmod -N /Volumes/SSD/Users/Michael/Pictures

    will remove ACL's from the Pictures directory only.

    Correct?

    And...thanks!
  • Thomas Brierley Level 3 Level 3 (535 points)
    yup

    that's my shortest post yet !
  • Michael Winner Level 1 Level 1 (0 points)
    Short, long...all the posts have been really helpful. Should have time tonight to see if I can get this all worked out. Will post on my anticipated success later. Thanks!
  • Michael Winner Level 1 Level 1 (0 points)
    Update: all done, working like a charm. Many thanks!
  • Thomas Brierley Level 3 Level 3 (535 points)
    Glad you got it all set up.

    RE the get info dialogue describing symbolic links as aliases... i found out that you create aliases from the cli with a separate tool called SetFile this is also used to set various other HFS only attributes such as the invisible bit, locked files etc ...

    Anyway enjoy your SSD... you get used to the speed pretty quickly .. then you're only burdened by impatience as soon as you go to use any other machine running an OS on a HDD
  • Snetiger Level 1 Level 1 (10 points)

    I tried this several times now. I can delete the documents folder but it recreates itself whenever I open a save dialogue. Do you have any idea why?

  • Bavich Level 1 Level 1 (0 points)

    Hi Thomas,

    "Now move the "Music" directory from the SSD's "/Users/Michael" directory into the HDD's "/Users/Michael" directory (you might need to copy then delete the original)."

     

    I cannot delete the original, how can I do it?

    "“Movies” can’t be modified or deleted because it’s required by Mac OS X."

     

    Thank you

  • goldyn chyld Level 1 Level 1 (0 points)

    Hello Thomas,

     

    I'm trying to configure my new SSD+HDD(Optibay) and have stumbled upon this thread - seems like you have provided a lot of useful info.

     

    Could you please tell me how does what you wrote on the previos page differ from what the guy on the following website wrote? --- http://www.markc.me.uk/MarkC/Blog/Entries/2009/12/15_Redirecting_folders_on_Appl e_OSX.html

     

    I would like to know why does one need to go through all these Terminal commands in order to create "aliases"? Could you not just create, say, a Downloads folder on the HDD in optibay, then copy all the Downloads data from SSD to the Downloads folder on HDD and then create an alias of it on the HDD - and finally move that alias to SSD?

  • iconoclastic Level 1 Level 1 (0 points)

    Many, many, many thanks, worked perfectly, is totaly elegant and simple.

     

    I had more than 1 week trying to solve this and your solution worked the very first time.

     

    Did I say thanks?

  • Wahid Kabir Level 1 Level 1 (0 points)

    Old password reset & access for Mac position solution please help me this problem clear now.

Previous 1 2 Next