Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Home-brewed 'Home folder on iPod' solution System
I travel a lot and I carry around all my documents and a number of preferences around with me on my iPod. Wherever I go I just connect my iPod to the Mac and work as if on my home computer. It isn't hard to set up in principle but there are a number of little details you need to get right, otherwise you see applications behaving mysteriously.

Major steps:
  1. (Easy) Set up Documents and Library folders on iPod.
  2. (Less obvious) Set up appropriate links from hard disk to iPod.
  3. (Not at all obvious but very important) Arrange that critical apps do not run unless iPod mounted
  4. (Optional) automate opening of favorite documents or apps when iPod is plugged in.
For completeness, I must add that it's terribly important to keep regular backups of the contents of your iPod, but I trust you already know how to do that. The applications I work with on the iPod are: Mail, Address Book, iChat, Safari, DragThing, AppleWorks, and Tous Comptes Faits. Each one is slightly different. If you want to add another application to the list, you'll have to experiment.

[robg adds: This is a long, detailed, and potentially quite dangerous hint if you were to mess up a step or two. Please be sure you know what you're doing before you attempt this, and consider the wear and tear factor on your iPod as well. You are responsible for what you do to your iPod and/or computer, not us ... OK, now that all disclaimers have been applied, feel free to read the rest of the hint...]

OK, now, some step-by-step instructions. I will assume your short login name is me, and your iPod is named MyiPod. When carrying out the following instructions, replace with your actual short login and iPod names. Your iPod preferences must be set to activate as disk. To do this, go into iTunes, click on the iPod icon in the left column, then on the iPod preferences button that now appears in the bottom right corner of the iTunes window (fourth button from the right) and check the activate as disk option.

Be sure you have a proper backup before you go any further. Start Terminal and quit all other applications.

To avoid any ambiguity, I will name folders and files by their full Unix name (as it appears in the Terminal window). So your home folder is called /Users/me/ (also noted as ~/), and your iPod is called /Volumes/MyiPod/. Check the following: while your iPod is plugged in, go to the Terminal and type in ls -F /Volumes followed by the Return key; you should see (among other things) an entry /Volumes/MyiPod/.

  1. The first part is to move your critical documents and preferences from your main computer onto the iPod. Documents are easy (I just move the whole Documents folder; you could do the same with Pictures, etc. Don't put Desktop or Music on the iPod.). For preferences you need to be slightly more selective because some applications will misbehave otherwise.

    Step by step:

    • Create a me folder in the iPod (in Finder: double-click on MyiPod icon, press shift-command-N, rename). Its name is /Volumes/MyiPod/me/.
    • Move the Documents folder from ~/ into the above (in Finder: command-drag). Its name is /Volumes/MyiPod/me/Documents/.
    • Create a Library folder within /Volumes/MyiPod/me/. (I don't need to repeat the exact instructions, do I?)
    • Create the following folders within /Volumes/MyiPod/me/Library/:
      • Application Support
      • Preferences
    • Move the following folders from ~/Library/ to /Volumes/MyiPod/me/Library/:
      • Addresses
      • Caches
      • Cookies
      • Favorites
      • Mail
      • Safari
    • Move the following files from ~/Library/Preferences/ to /Volumes/MyiPod/me/Library/Preferences/:
      • com.apple.AddressBook.plist
      • com.apple.iChat.AIM.plist
      • com.apple.iChat.plist
      • com.apple.iChat.SubNet.plist
      • com.apple.iChatAgent.plist
      • com.apple.mail.plist
      • com.apple.Safari.plist
    • Move the following folder from ~/Library/Application Support/ to /Volumes/MyiPod/me/Library/Application Support/:
      • AddressBook
    • Create a folder /Volumes/MyiPod/Applications/.
    • Set the iPod's "Ignore privileges" option to avoid file permission problems. (Click once on the iPod icon; press command-I; check "Ignore privileges" in the fifth panel.)
  2. The second part is to set up pointers from your home on the hard disk ~/ to the iPod. This is slightly more involved because although some applications work fine with normal aliases, others only work with their Unix equivalent, "symbolic links". You need to go to the Terminal window to set these up. The general recipe for creating a symbolic link is the following: suppose you want ~/foo/bar to stand for /Volumes/MyiPod/me/foo/bar. In the Terminal window you would type the following two lines:
       cd ~/foo/
       ln -s /Volumes/MyiPod/me/foo/bar .
    
    That last line ends with a space and a dot. To create an alias, as you surely already know, you just option-command-drag /Volumes/MyiPod/me/foo/bar into ~/foo/ in the Finder.

    Step by step:

    • In ~/ create an alias towards /Volumes/MyiPod/me/Documents/
    • In ~/Library/ create aliases towards the following folders in /Volumes/MyiPod/me/Library/:
      • Addresses
      • Cookies
      • Favorites
    • In ~/Library/ create symbolic links towards the remaining folders in /Volumes/MyiPod/me/Library/. For this, in a terminal window, type the following (remember to replace me and MyiPod with appropriate names):
            cd ~/Library/ 
            ln -s /Volumes/MyiPod/me/Library/Caches/ .
            ln -s /Volumes/MyiPod/me/Library/Mail/ .
            ln -s /Volumes/MyiPod/me/Library/Safari/ .
    • Similarly for Application Support:
            cd ~/Library/Application Support/
            ln -s /Volumes/MyiPod/me/Library/Application\ Support/AddressBook .
      Note the backslash character to protect the space inside the name Application Support.
    • Create symbolic links from ~/Library/Preferences/ to all your preferences in /Volumes/MyiPod/me/Library/Preferences/. Go to the terminal window and type:
            cd ~/Library/Preferences/
            ln -s /Volumes/MyiPod/me/Library/Preferences/* . 
      Unix understands the asterisk * to mean "everything within this folder".
  3. Thanks to the above, Mail, Safari, iChat and Address Book now store their support files on the iPod. Now we must arrange that these applications do not run unless the iPod is mounted, otherwise strange things will happen. (Mail is the most problematic, because it appears to work normally, but it creates a folder /Volumes/MyiPod/ even though the iPod is not present!)

    The easiest approach would probably be to move the above applications from /Applications/ to /Volumes/MyiPod/Applications/. I haven't tried this, because I was concerned about space, and because I noticed that Software Update does not work properly for applications that are not in /Applications/. Instead, because I always start these applications from DragThing using a hotkey, I created aliases in /Volumes/MyiPod/Applications/, and dragged the aliases into DragThing. Thus, when I press a hotkey, DragThing looks for the alias on the iPod and complains if it is not mounted. (I had to play with the preferences of DragThing to stop it from resolving the aliases ahead of time.)

    Now run Mail, Safari, iChat and Address Book. Look for the symptoms of a bad installation noted at the end of this hint. If all is well, you should be able to access your email, bookmarks, buddy lists and address book on every Mac you use.

    For applications that I would not expect to find on a random Mac, for instance AppleWorks or Tous Comptes Faits, I just install them within /Volumes/MyiPod/Applications/.

  4. The last part is to open your favorite applications and documents automatically when the iPod is plugged in. I'll make that the subject of a later hint.
OK, now you have prepared your iPod and made it work on your main computer. Now quit all the above applications, eject the iPod and plug it into another computer. Go back to Part 1: the same files and folders that you moved from your main computer onto the iPod, you must now move to the Trash on the other computer. Repeat Parts 2 and 3. Similarly on every computer you travel to with your iPod.

Here are some symptoms to look for, which may appear if you have done something wrong:

  • iChat loses your identity.
  • Address Book loses its contents.
  • Mail loses access to mail folders stored on the Mac, or loses your rules, or the spam filter stops working properly.
  • Safari complains that it can't access your bookmarks.
  • In a terminal window type ls -F /Volumes; if you see /Volumes/MyiPod/ even while the iPod is not present, or you see several folders named something like MyiPod/, MyiPod 1/, MyiPod 2, then Mail is having trouble.
If you want to eject your iPod, you must first quit all the above applications. You must be careful when putting the computer to sleep while these applications are running. It seems the iPod is not immediately available when the computer wakes up, and applications behave strangely if they access their files in the interim. The worst culprit is Mail, which doesn't misbehave in any obvious fashion, but causes things to go wrong later. My solution is to disable automatic sleep in the Energy Savings preference panel, and to quit the above applications when putting the computer to sleep.
    •    
  • Currently 2.25 / 5
  You rated: 1 / 5 (4 votes cast)
 
[12,191 views]  

Home-brewed 'Home folder on iPod' solution | 9 comments | Create New Account
Click here to return to the 'Home-brewed 'Home folder on iPod' solution' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Home-brewed 'Home folder on iPod' solution
Authored by: kirkmc on Jun 08, '04 11:49:56AM

I haven't tried - partly because i think Apple was correct when they removed the Home on iPod feature from Panther; the iPod heats up way too much when it's used like that - but can't you just copy the Home folder to the iPod and change the user's home folder location in NetInfo Manager?



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: chiccorosso on Jun 08, '04 12:41:36PM

Yes, you should do this by changing netinfo home location and by copying the entire home folder. Using links is not a secure and compatible solution

---
--
chiccorosso@email.it



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: trygve on Jun 08, '04 02:51:27PM

Agreed. Relocating your home directory to the iPod seems much simpler and more robust. There are only a couple of problem situations relating to logging on but forgetting to plug in the iPod -- a home directory gets created on the startup disk.



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: webgodjj on Jun 08, '04 04:03:05PM

wouldn't it be better to get a pocket drive, or a USB flash drive? seems to me that unsing an ipod is an expensive sollution...



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: Accura on Jun 08, '04 08:57:36PM

yeah but us ipod users are never with out our little white beast but we have to remember to bring a USB drive with us...

or something like that.

jameso

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: Anonymous on Jun 09, '04 04:56:54AM

I use my ibook (in target disk mode) to store my Mail, AddressBook, iCal, etc. databases and be warned - if the drive is not mounted, then some confusing errors can occur. I've submitted numerous bugs to Apple about the problems with sorting user data remotely.



[ Reply to This | # ]
'home' folder on _any_ removable volume?
Authored by: vashremix on Jun 10, '04 12:20:14AM

I have been wanting to set up 'home' folders on some of the work computers using this sort of idea.
I wanted to have each person use their USB thumb drive as their home folder so that as they move from machine to machine they can still access all of their preferences etc.
We have got Xserve so I know I could do it that way... but the network traffic is already too high, and it seemed like it _ought_ to be simple to create mountable 'home' folders for each machine.

It seems to me that some of the Linux distros are doing this (mandrake move) -- I wonder how hard it would be to set up OS X like this.

I have been searching on the web for more info about using a removable volume as a home folder, and coming up empty. If anyone has some more pointers as to where to find out more info on this I would very much appreciate the pointers.

Vash



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: k:ponto on Nov 13, '04 05:26:40PM

i created a user account in osx, then copied my users folder over to my ipod, copied the apps i needed (safari, mail, addressbook ect.) into the users applications folder. then i just used the netinfo manager (in the utilities folder) to change the user's home folder location to the new folder on my ipod. no need to go scrounging through your library folder or get your hands dirty with a command line. seems to be working fine. ipod doesn't even get warm, and the whole process took about three minutes.

k



[ Reply to This | # ]
Home-brewed 'Home folder on iPod' solution
Authored by: k:ponto on Nov 13, '04 05:31:33PM

i suppose then, all you'd have to do to reinstate your user on your main machine, is copy that user folder back onto the machine, and use the netinfo manager to change the path again, though i haven't tried it.

if it works though, that would be a really easy way to always have a recent backup and have your account on an ipod wherever you go.

k



[ Reply to This | # ]