6 Replies Latest reply: Feb 2, 2013 10:19 PM by CPierr67
CPierr67 Level 1 Level 1 (0 points)

Hi,

I have recently installed an additional SSD to my iMac 2011. I had OSX 10.8.2 installed on the (spinning) HD. I then installed 10.8.2 onto SSD. To make life easy at first I have weirdly managed to symlink the SSD/Users/useraccount to the HD/Users/useraccount.

Now I would like to use the HD as a usual data disk and remove the /Users/useraccount root nodes in its tree. Also, I would like only the "Documents" directory in a regular SSD/Users/useraccount to symlink to the data on the HD. Unfortunately I cannot because SSD/Users/useraccount is just a symlink, it does not contain any directories of its own. Can I convert that SSD/Users/useraccount back (from a symlink) to a normal directory? I cannot remove it because it is the useraccount I have installed the OSX out of. Thanks.

Regards.

Pierre


iMac (27-inch Mid 2011), Mac OS X (10.7.4)
  • 1. Re: convert symlink to directory
    Linc Davis Level 10 Level 10 (118,215 points)

    Back up all data. Move the link out of the way and copy the home folder. Log out and log back in. Delete the link.

  • 2. Re: convert symlink to directory
    CPierr67 Level 1 Level 1 (0 points)

    Hi Linc,

    Back up is done as the SSD/Users/useraccount, user1 say, links to the HD which can be considered as just containing data. What do you mean to move link out of the way? If I log under user1 then it is hard to move it out as I am actively using that user1 link. What do you mean by home folder?

    To summarize, I installed osx on SSD using user1. So, Users/user1 was created. Then I linked SSD/Users/user1 to the old user1 on HD. I realized too late that it was not proper. Now I want to revert back SSD/Users/user1 to a normal account and link its Document folder onto the Document folder on HD. It seems that logging as another admin account, user2 say, and changing the name of user1 into user1.bak and creating a user1 directory again, does not do the trick as logging as user1 again make the system use the user1.bak link still.

  • 3. Re: convert symlink to directory
    Linc Davis Level 10 Level 10 (118,215 points)

    I installed osx on SSD using user1. So, Users/user1 was created. Then I linked SSD/Users/user1 to the old user1 on HD.

     

    Just reverse those steps. I'm not sure what you're asking. If you've tried it, and it didn't work, what happened?

  • 4. Re: convert symlink to directory
    CPierr67 Level 1 Level 1 (0 points)

    Because I installed ML using user1, the Users/user1 link appears as root when ls -l in Terminal. I do not think I am able to undo that account. Is this true?

    If I move Users/user1 to user1.bak, create a new user1 directory with appropriate subdirectories, e.g. Documents, Lownloads, Library, etc. Reboot and relog as user1. The OSX takes user1.bak instead of that new user1 folder.

  • 5. Re: convert symlink to directory
    Linc Davis Level 10 Level 10 (118,215 points)

    If I move Users/user1 to user1.bak

     

    /Users/user1 is a symlink to a directory on another volume, if I understand you. So you renamed it to user1.bak, and then copied the target directory to the same path. If you haven't changed anything else, you should be able to log out, log back in, and delete user1.bak.

  • 6. Re: convert symlink to directory
    CPierr67 Level 1 Level 1 (0 points)

    I have tried different things. At one point SSD/Users/user1.bak was not referenced as user1 account. Instead the HD/Users/user1 was ... unintentionally. So I looked around in the web and found a good description on how to rebuild "faulty" user account (see http://reviews.cnet.com/8301-13727_7-57437548-263/how-to-rebuild-a-user-account- in-os-x/), i.e. under another admin account, delete user1 account without deleting its data, then Users/user1 and content can be recreated in finder before recreating user1 account on the existing /Users/user1 directory. It worked like a charm.