My clone (on a USB external drive) causes my "open with..." menu to get confused and show duplicate app entries, and I have had aliases on my dock get confused about where they should point. I assume this is because the cloned apps are all visible on the mounted drive.

How do I stop this? Should I have the drive unmounted unless it is cloning? How do I automate this? Is there another solution?