Doing a clean install of Mountain Lion.
Basically all you need to know is contained in this
http://apple.stackexchange.com/questions/60653/how-to-do-fresh-install-of-mountain-lion
I decided to make a bootable usb thumb drive, following the instruction
http://apple.stackexchange.com/a/60660/3428
However, when I used the Disk UTILity to prepare the usb thumb drive, an error message ‘Could not Restore. Invalid Argument’ came up.
Turns out the thumb drive works despite the error message.
Now I am restoring my files from the time machine copy.