This question already has an answer here:
I have Windows 7 and Ubuntu dual-booted on my hard drive. My Ubuntu installation became kind of messed up and I don't know how to fix it. So it would just be easier for me to just do a fresh install of Ubuntu over the existing partition. Is there a way for me to do this without reformatting the whole drive and having to reinstall Windows?