MacOS – Moving large system directories to another drive and using symlink

macossymlink

I have a SSD (Boot Partition) and a HDD (Data) for my Mac.
I only bought a 128GB SSD thinking the boot partition wouldn't need a large drive, however I was mistaken.

I find that Mail and MobileSync folders in my Library directory take the majority of the storage on my SSD sometimes even bringing 'Low Disk Space' prompt if I don't watch it for a while and let it loose.

I wanted to know if I use symlinks to create the following directories in another location would they work correctly or cause problems?
~/Library/Mail
~/Library/MobileSync

Best Answer

I would recommend using mountpoints instead of symbolic links, but symbolic links will work.

For example, I have a small SSD as a boot drive and a PCIe SSD for my /Users partition on my Mac Pro.

I copied over the data and added the following to my /etc/fstab file.

LABEL=Users /Users  hfs rw,auto

"Users" is the name of the partition known to Disk Utility and "/Users" is the mount point.

This is a lot cleaner than symbolic links, as many tools will not follow symbolic links without being told explicitly to do so, to avoid cyclic links.

In your case, you might want to create a separate partition for ~/Library and move everything over. You may also want to create separate partitions for Mail and for MobileSync.

All of that said, symlinks will very likely work in these two cases. However, keep in mind that you're moving directories that have both a high rate of change and a lot of data, which is the worst case for a spindle. Expect iOS backups to be slower and for Mail operations such as "search" and opening attachments to take a little longer.