MacBook Pro 2011 rebooting on startup When booting up and logging into my MacBook Pro, I get the following error message:

localhost com.apple.xpc.launchd[1] &lt;Emergency&gt;: Boot task failed: fsck-safe
localhost com.apple.xpc.launchd[1] &lt;Emergency&gt;: Shutting down in 3 seconds.


This is an image of the error:



I am running OS X Yosemite, on a mid 2011 MacBook Pro.
Hold alt during startup, you will then be able to boot from something called "recovery partition". When that is booted, in the menu select "disk utility" and try to repair disk and/or volume.