I had that problem, but fortunately has a solution, first re start your mac but leaves the alt key pressed, there will appear a menu, go to disk utility, and then choose one hd disk, then verify disk. and finally repair disk. It will take a while, but ultimately dita this repaired. salts and reincidas utility. and you can install the operating system without losing any files. Greetings.