If you have a recent Mac then it has a [recovery partition][1]. Power on your Mac and hold down <kbd>Command</kbd>+<kbd>R</kbd> until the Apple logo appears. This will cause your Mac to boot using the recovery partition. Once you are in the recovery partition, you can then reinstall the operating system. This Apple technical note, [OS X: About OS X Recovery](http://support.apple.com/kb/ht4718), gives more details. You can reinstall the OS and leave your files intact. Apple removed the erase/install option so you don't have to worry about the Recovery Installer erasing your files. You now have to explicitly launch the Disk Utility tool to erase or reformat/repartition a drive when booted from recovery OS. [1]: http://www.apple.com/osx/recovery/