Late 2008 Apple Aluminium MacBook complete reinstall
If you have a spare 8GB (or bigger) USB drive (or an external hard drive, or even an unused partition on your internal hard drive), you can download the Yosemite installer from the App Store and use it to create a bootable Yosemite installer. Here are Apple's detailed instructions for doing so.