1

After my hard drive calved yet again in my MacBook Pro, I decided to re-do my dual booting. My goal is to triple boot, with OSX 10.6.8 (installed), Windows 7 Home Premium and a flavour of Linux (undecided at this point). I know that I should not do a hard link of my entire home folder between the three operating systems, but I would like one partition at the end of the drive for data (i.e. Documents, Pictures, Movies, Downloads and Music), and have them just linked into my home folder.

I have a FAT32 partition as the end of the drive for my data that I want between the three OSes. What I want is to have these 5 "main" folders live there, and have each OS just "link" their counter-parts to these folders. I can easily do it in Windows 7 by right-clicking the folder in my User directory, selecting Properties->Location and browse to the folder. How can I accomplish this on Mac OSX 10.6?

EDIT @OliverSalzburg mentioned this question/answer on the Apple StackExchange, but to no avail. I enabled the root account as described there, created my folders in my extra partition (/Volumes/DATA/{foldername}), and tried making the link as root (ln -s /Volumes/DATA/Movies /Users/luke/Movies), but it kept telling me the folder exists. I deleted /Users/luke/Movies, then repeated the above command. When I did, it gives me a "broken alias", as in, that it looks like the blank sheet of paper with the small arrow overlay, and it telling me to either fix or delete the alias. Not what I wanted.

My end goal is that the regular paths for the above 5 folders exist, and appear to be the exact same as if the data was stored on the Mac partition

2 Answers 2

1

Since OSX is Unix based you can make a symbolic link with ln or just use mount to mount the partition to a folder and edit fstab with vifs.

  1. ln -s SOURCE TARGET
  2. To mount:

Find UUID:

  • the UUID can be found in Disk Utility (File > Get Info on a volume)
  • the UUID can also be found using diskutil info /Volumes/yourVolumeName in Terminal
  • the preferred way to edit /etc/fstab is now by using the command sudo vifs, but that means you have to edit using Vim. Vim can be learned by typing the command vimtutor. I just used sudo nano /etc/fstab because I didn't know at the time.

So now use vifs and add a line:

UUID=FAB060E9-79F7-33FF-BE85-E1D3ABD3EDEA  /path/to/folder    hfs    rw
3
  • updated the answer. Commented Jul 21, 2012 at 6:35
  • Thanks. I cannot do the MOUNT though, as it is a FAT partition, and has no UUID Commented Jul 21, 2012 at 6:43
  • Also, it's keeping the data on the first drive (the Mac partition). Is there a way with this technique to have the data live on the extra partition I have made? Commented Jul 21, 2012 at 6:44
1

Solved after some more searching and guess work. I found a resource at http://gigaom.com/apple/how-to-create-and-use-symlinks-on-a-mac/ that describes EXACTLY what I needed to do

  1. Open Terminal (Applications->Utilities->Terminal)
  2. As root, remove the folders I needed (sudo rm -rf ~/Downloads). This command removes all of the folder, including subfolders. If you currently have data, back up your data first!
  3. Once you remove the folders you need, make the new ones in your other volume/location (mkdir /Volumes/DATA/Downloads)
  4. Create the link (ln -s /Volumes/DATA/Downloads ~/Downloads)
  5. Repeat for the other folders. I did not attempt this with Library, just the data folders I know would not break OSX.

Because the folder is made on the extra partition, and I deleted the folder on my HFS partition, it is keeping the data off my small OSX drive. In the dock, the stacks work as expected. One issue I have seen though is that I lose the custom icons for the folders.

If there are any other weird things I notice, I will post an update

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .