Check to see that the symlink hasn't been replaced with a new Desktop folder.ġ1) Restart to confirm that the symlink persists. When you want hardlink for folders, /J should be used it creates folder junctions which works just like a file hardlink. However, on deleting the original file, the linked file will not be removed. The changes made to original file will be reflected in linked file. Confirm that the symlink is working as expected, and that it is in fact locked (locked icon in your user home directory, or Get Info on ~/Desktop and confirm that locked is checked).ġ0) Turn iCloud Drive back on. Using the /H mklink command switch, you can create hardlinks for files in Windows. (I restarted because… why not?)ĩ) Log in to the account where you created the symlink. This will keep iCloud Drive from overwriting it when/if you reactivate it.* sudo chflags -h uchg /Desktop\ FolderĨ) Log out/restart. In Terminal: sudo ln -s /Dropbox/Desktop\ Folderħ) *Lock the symlink. In Terminal: sudo rm -rf /Desktop\ FolderĦ) *Create symlink to source folder*. Make Symlink is a Mac OS X-compatible contextual menu plugin which allow users to create unix-styled symbolic links. Anybody else following along, make a backup of your data first, and disconnect it from the computer when messing around with user accounts!ġ) Log out of iCloud Drive (Settings ->Apple ID -> iCloud) on the user account you want to create the Documents symlink.Ģ) Create a second admin user account, if you haven't already.ģ) Log out of the account in which you want to create the symlink, and log into the second admin account.Ĥ) In Terminal, cd to the user account where you want to create the symlink: cd /Users/yourusernameĥ) *Delete protected folder*. And as ever, be super careful in terminal, particularly with the rm command. Note, in my case, I was making a symlink to the Documents folder on an external drive, but I think the process may work for your use case too, and have adjusted the steps accordingly. I imagine there are other ways to do this, but this worked for me. But if you want to use iCloud Drive but don't use that feature, you can temporarily disable iCloud Drive, create the symlink, lock the symlink, and reactivate iCloud Drive. If you disable iCloud Drive, the symlinks will persist. Basically, iCloud Drive creates new folders as it needs them to be for "Desktop and Documents" sync to work. This discussion on the Apple Support Communities helped me figure out a workaround. I was frustrated that the old symbolic link approach I've been using for years didn't work. I have a very large user folder, but wanted to use external storage for most of it, rather than paying Apple's SSD upgrade prices. Hey I was running into the same issue setting up my new M1 Mini on Big Sur (coming from High Sierra).
0 Comments
Leave a Reply. |