The background:
Last week I booted up my Macbook Pro 13 June 2012 edition. But the machine turned off midway on the apple loading screen. I did the First Aid on Disk Utility using command + R and it came with disk exit error 8. I was recommended to wipe the hard drive and reinstall Mac OS El Captain but I still got the same error while reinstalling.
So I installed it on my 16gb external hard drive which worked but when I pressed the boot-up option button, I only see my internal hard drive (HDD). I also opened the Startup Disk option which shows the external hard USB drive but instead of booting into the external USB hard drive, it goes back to the MacOS installer page (the internal HDD).
How can I fix this?