I today performed a factory reset on my Early 2009 iMac by going into the recovery mode, erasing the disk (as per this video). I then quit the disk utility application and proceeded for a fresh install of OSX. When I tried doing so, the prompt asked for my apple id and password, which I did not want to give (since I was planning to give away this mac). Thus after referring to this link, I restarted the mac without doing a fresh install and tried to load the most recent compatible OS by pressing the Shift-Option-Command-R key combination.
The Mac did not boot up after restart and has been stuck on a blank white screen. I have tried holding the power button for 10 seconds and restarting, booting in safe mode, booting on verbose mode, holding the CMD+Shift+P+R combination but the mac still does not boot and is stuck on the blank white screen.
Thus, how can I get the mac to boot up?