iMac 27" Screen goes black screen
I've ran into this issue a couple of times now, this is what has resolved the issue each time. Step 5 sometimes returns a "file not found" error and step 6 doesn't always seem to be necessary but has been in some cases.  Regardless, having in their doesn't seem to have an negative effects.




Boot to single user mode (hold ⌘ S while powering on the Mac)
Type and hit return: /sbin/fsck -fy
Type and hit return: /sbin/mount -uw /
Type and hit return: rm /Library/Preferences/com.apple.loginwindow.plist
Type and hit return: rm /Library/Preferences/loginwindow.plist
Type and hit return: rm /private/var/db/.AppleUpgrade
Type and hit return: reboot


Assuming all instructions were followed the Mac should reboot and reach the login screen with no trouble.  The instructions above should be followed VERY carefully, with attention paid to spelling and spacing, as there aren't many safeguards in single user mode to prevent you from deleting otherwise necessary files.

If you have access to another Mac and a Firewire/Thunderbolt cable you could boot this Mac in Target Disk Mode ( T while powering on) and connect it to the spare Mac to remove the files from the GUI.  You would need to open the iMac's system volume (default is Macintosh HD) and remove or rename the two files mentioned above in Library/Preferences.

Hopefully that helps!