Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small linux server. I have data on several HFS+ drives that I'd like to consolidate to another HFS+ drive. The drives will be connected to the server via a USB HDD dock. I'm running Ubuntu 12.10 on the server.

If I copy files from HFS+ to HFS+ with linux in the middle, will resource forks be preserved?

P.S. I'm assuming the best tool for this is rsync 3, but if someone has a better suggestion please let me know.

share|improve this question
rdiff-backup is pretty good at finding and retaining filesystem-specific metadata, so that might be worth a try – EdwardTeach Mar 31 '13 at 5:11

Unless you get an answer from someone who has tried this before, a quick bit of Googling seems to suggest that you're playing with fire.

While this question on SuperUser suggests that more recent versions of rsync support resource forks, I see no such mention in any of the upstream changelogs. It may be specific to the OS X version of rsync.

Tread very carefully here:

  • Most Linux programs won't have any awareness of resource forks.
  • Resource forks exposed by the kernel driver will appear to the operating system as virtual "directories". Resource forks are definitely not directories, so any program that interprets them as anything other than resource forks will not copy what you mean for them to.

The one thing I can't seem to find is whether or not a filesystem call to directly copy a single file will catch the edge case of transferring everything intact if the target is the same type of filesystem. This is where my understanding of kernel system calls gets hazy. I want to say it's not likely given the implementation, as cp -R, unpatched rsync, etc. would completely freak out trying to replicate the directory structure.

Short of getting a better answer than mine, you're probably better off using some type of "container format" to copy a collection of data intact as a single file. This would require that you hook the drive back up to something that implements native HFS+, and that you have enough space for the extra file. The posts that I linked offer some suggestions.

share|improve this answer
hmm, very useful posts. Seems like my best option might be to create r/w disk images of the hard disks themselves. – Andrew Mar 11 '13 at 22:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.