Preskoči na: glavni sadržaj | navigaciju | pretraživanje

Mac OS X: Move home folder from SSD to another disk

by lekke on June 30th, 2011.

Mac OS X: Move home folder from SSD to another disk
DON’T DO IT! Do something similar, but way better.
SSDs are so fast compared to traditional disks that an increasing number of people is buying them just for running their OSX & apps. When they chose to move their home folder (full of docs, photos and movies) to a different drive, what they fail to realize is that there’s something in the home folder that should be left on the SSD: ~/Library. It’s a collection of settings, caches and support files for those apps we want starting up faster.
And that’s not all. With a big iTunes library, you might want to have the contents of ~/Music/iTunes/ on the SSD too (excluding “iTunes Music”, of course, where the actual music files are). Why? So iTunes loads faster and you never ever see its icon bounce.
There’s a really simple way to do all this and you don’t even have to logout once. You won’t move your home folder, but will move most of its contents away and then use symbolic links to point to the new location. Symbolic links have to be made in the Terminal, and you can remember this syntax:
ln -s <where-to-link-to> <what-to-call-it>
So let’s do this in a form of a checklist:
0. Quit all apps, stop your Dropbox etc.
1. Use Finder to open your home folder. Select everything except for “Library” and drag it to the new storage drive. Finder will take care of all the resource forks and HFS data.
2. When the copying is done, delete from your home folder everything except for ~/Library and ~/Music/iTunes
4. Open Terminal. You should be in your home folder. Now start linking: ln -s /Volumes/StorageDriveName/Downloads Downloads
You have your first symbolic link. Look at it in Finder.
5. Now do this for all the other directories you’ve moved: Documents, Movies, Pictures, Sites… Torrents, Dropbox etc.
Do everything except for the Music.
6. Finished with #5? Now Music. Inside Music/iTunes/ delete “iTunes Music”. Either from Finder or the Terminal, doesn’t matter. Now create a symbolic link to this “iTunes Music” on the storage:
cd Music/iTunes
ln -s /Volumes/StorageDriveName/Music/iTunes/iTunes\ Music iTunes\ Music
7. Done!
You now have a home folder on the SSD, containing all the app settings and your iTunes Library data sans the actual files. Everything else is hardlinked to the storage drive.
The best part is: you don’t have to change a thing in your daily workflow. Everything is how you’re used to having it.
Oh and don’t forget to run your Dropbox again.

DON’T DO IT! Do something similar, but way better.

SSDs are so fast compared to traditional disks that an increasing number of Mac heads is buying them just for running their OSX & apps. When they chose to move their home folder (full of docs, photos and movies) to a different drive, what they fail to realize is that there’s something in the home folder that should be left on the SSD: ~/Library. It’s a collection of settings, caches and support files for those apps we want starting up faster.

And that’s not all. With a big iTunes library, you might want to have the contents of ~/Music/iTunes/ on the SSD too (excluding “iTunes Music”, of course, where the actual music files are). Why? So iTunes loads faster and you never ever see its icon bounce.

There’s a really simple way to do all this and you don’t even have to logout once. You won’t move your home folder, but will move most of its contents away and then use symbolic links to point to the new location. Symbolic links have to be made in the Terminal, and you can remember this syntax: ln -s <where-to-link-to> <what-to-call-it>

So let’s do this in a form of a checklist with 7 easy steps:

0. Quit all apps, stop your Dropbox etc.

1. Use Finder to open your home folder. Select everything except for “Library” and drag it to the new storage drive. Finder will take care of all the resource forks and HFS data.

2. When the copying is done, delete from your home folder everything except for ~/Library and ~/Music/iTunes

4. Open Terminal. You should be in your home folder. Now start linking: ln -s /Volumes/StorageDisk/Downloads Downloads
You have your first symbolic link. Look at it in Finder.

5. Now do this for all the other directories you’ve moved: Documents, Movies, Pictures, Sites… Torrents, Dropbox etc. Do everything except for the Music.

6. Finished with #5? Now Music. Inside Music/iTunes/ delete “iTunes Music”. Either from Finder or the Terminal, doesn’t matter. Now create a symbolic link to this “iTunes Music” on the storage:
cd Music/iTunes
ln -s “/Volumes/StorageDisk/Music/iTunes/iTunes Music” “iTunes Music”

You now have a home folder on the SSD, containing all the app settings and your iTunes Library data sans the actual files. Everything else is hardlinked to the storage drive, perfectly in place.

The best part is: you don’t have to change a thing in your daily workflow. Everything is how you’re used to having it.

Don’t forget to run your Dropbox again.

  1. #1 maratz August 8th, 2011

    A note of warning:

    When you erase folders from their original location, Finder sidebar doesn’t use the original folder icons anymore. Also, after Verifying secondary drive, shortcuts in the sidebar are gone, so you have to re-drag them after each secondary disk unmount operation.

  2. #2 Mårten Kai-Larsen August 18th, 2011

    My OSX 10.6.8 wouldn’t allow step 2.
    “Desktop” can’t be modified or deleted because it’s required by Mac OS X

  3. #3 Lekke September 7th, 2011

    Marten you are quite right! It’s an omission on my part, I left my Desktop folder on the SSD on purpose, and forgot to exclude it in step 2.

  4. #4 Aaron B January 3rd, 2012

    I ve found it better to just relocate the iTunes Music folder through iTunes preferences than to symlink to that location. When I had it symlinked, iTunes did not delete songs when I removed them from the library (and made sure to click to remove the file too, not just the reference). Changing the iTunes Music path directly to the HDD through iTunes preferences fixed that.

  5. #5 Tal January 29th, 2012

    Hi there ,
    i tried to move the Document / movies / download/pictures folders from the SSD to the other HDD in my iMac but ..
    i got this message
    “Documents” can’t be modified or deleted because it’s required by Mac OS X.
    all folders are from my Home – under Users
    how can i sove it ?

  6. #6 our writings February 3rd, 2012

    Very energetic post, I liked that a lot. Will there be a part 2?

  7. #7 read my articles February 18th, 2012

    Hi there to all, how is all, I think every one is getting more from this web site, and your views are good in support of new users.

  8. #8 Wayne Fox April 24th, 2012

    So I was trying to do this, doesn’t seem to work anymore?

    Lion will not allow you to delete the folders. If they aren’t delete all the commands to is put an alias to the other folder inside of the folder. But this doesn’t work correctly.

    Try to do it as root user and while I can delete the folders, I can’t create the symbolic links correctly. Still searching for an answer …. any clues?

  9. #9 Headrush69 August 12th, 2012

    Instead of relocating all iTunes Media check out TuneSpan in Mac App Store.

    I keep Music on my SSD, but have bigger videos files on my normal HD.
    iTunes library files stay on SSD for fast access.

  10. #10 Richard August 14th, 2012

    use: sudo rm -r xxxxxx to delete the folders.

  11. #11 Jesse October 28th, 2012

    I drop a leave a response each time I appreciate a post on a site or I have something to add to the discussion.
    It is a result of the fire displayed in the post I looked at.

    And on this post Mac OS X: Move home folder from SSD to another disk –
    Web.Burza Blog. I was excited enough to drop a thought :-P I do have 2
    questions for you if it’s okay. Is it simply me or do a few of these remarks appear as if they are left by brain dead folks? :-P And, if you are writing on additional online social sites, I would like to follow you. Could you make a list all of your community pages like your twitter feed, Facebook page or linkedin profile?

  12. #12 Leila November 9th, 2012

    I do trust all of the concepts you’ve introduced for your post. They’re very convincing
    and can definitely work. Nonetheless, the posts are
    very short for novices. May you please lengthen them
    a little from subsequent time? Thank you for the post.

  13. #13 Lorrie November 15th, 2012

    I pay a quick visit everyday a few sites and websites to read posts, however this webpage offers quality based articles.

  14. #14 Monte November 27th, 2012

    Pretty! This was an incredibly wonderful post. Thank you for supplying these details.

  15. #15 triactol bust cream December 6th, 2012

    Greetings! Very helpful advice within this post!
    It’s the little changes which will make the biggest changes. Many thanks for sharing!

  16. #16 Stuart Bell April 23rd, 2013

    I think cloning a Mac disk is the best option to migrate from older Mac to new one. It carries all the data and applications with it and proves a great rescue at the time of hard drive failure.

    The cloning tool I have used is Stellar Drive Clone.

  17. #17 disque ssd April 30th, 2013

    Greate pieces. Keep writing such kind of information on your page.
    Im really impressed by it.
    Hey there, You’ve performed an incredible job. I’ll definitely digg it and in my opinion recommend to my friends.

    I’m confident they will be benefited from this site.

Speak your mind