Hello everbody
First of all: sorry for my english, I'm Swiss... I discovered this discussion after having bought a new iMac 27" last saturday. From the beginning, my two external hard drives (LaCie 2Big Quadra and LaCie D2 Quadra), both connected via USB3, have been ejected as soon as my Mac went to sleep. In most of the cases, additionally my Mac re-started after a kernel panic. After a very frustrating visit in the local Apple Store, where they told me nobody has ever heard of this problem before and that it must be a hardware problem, I called Apple Care today - and finally, after 3 hours on the phone, we could solve the problem. So maybe, it helps some of you as well by doing the following:
Start your Mac with safe boot into the safe mode (press and hold shift while pressing the on-button, hold it until a status bar appears under the apple). Try to reproduce the problem. If the problem doesn't occur in the safe mode, it's maybe a problem with the launch agents and the launch daemons (they are deactivated in safe mode) and the following will probably help you: Restart your Mac in the normal mode. In the finder, go to your HD > library > caches. Delete everthing in this folder (not the folder itself), do the same with extensions and compositions. Still in the library, re-name the folder "LaunchAgents" to "LaunchAgents.old", re-name "LaunchDaemons" to "LaunchDaemons.old". Re-start your mac, empty your paperbin and once again try to reproduce the problem. For me, it worked perfect: After this, I didn't had any problems, neither with ejected external discs nor with crashing. I even activated the sleep mode for the external hard disks and tried that one - no more problem. So I hope, the problem could definitly be solved and that it may help some of you as well.