Mavericks won't boot on new SSD in main bay
I'm trying to install Mavericks properly on a new Samsung 840 Pro SSD. I connected the SSD via SATA to USB and installed Mavericks using another USB drive containing the Mavericks installer. This seems to work without any errors, and I'm able boot from the Samsung SSD when it is connected via USB. However, when I put the SSD into the main bay (of an early 2011 13" Macbook Pro) and turn on the computer one of the following things happens:
1.) The apple logo shows with the spinning wheel below. I wait several minutes but nothing changes.
2.) I get to the login screen and type my password. The apple logo shows for a few seconds and then I'm returned to the login screen where I'm unable to do anything (the mouse is frozen).
I've started the computer in verbose mode and after a little while, it continues to print one of the following line over and over:
Sandbox: authd(37) deny file-write-create /private/var/folders/zz/...
Sandbox: authd(38) deny file-write-create /private/var/folders/zz/...
I've tried putting the old hard drive back into the main bay, and everything works, so I don't think the problem is the hard drive cable. I've also tried updating the SSD firmware, but the Samsung firmware updater says that the SSD's firmware is already up to date. I've also tried reseting the NVRAM and SMC without any success. I have no idea what else to try.
Here are a few other data points that may or may not be relevant:
1.) I intially tried to put the SSD into the main bay and then install Mavericks from a USB drive. However, when I tried to erase the SSD using Disk Utility, it failed with error "Wiping volume data to prevent future accidental probing failed."
2.) I can boot from my old hard drive via USB while the SSD is in the main bay. I'm then able to mount the new SSD and navigate through the file system. However, if I use Disk Utility to verify the SSD, it sometimes causes a kernel panic.
I'd really appreciate some help resolving this issue. Let me know if there's any other information I can give. Thanks.
MacBook Pro, OS X Mavericks (10.9)