Well I would start up by fixing the firmware issue (your CMOS battery needs to be replaced) One possible problem is your firmware reset due to the battery being bad and you now have a mismatch between the boot type and how the OS is setup (example firmware is set to legacy boot and OS is GPT\UEFI) or the SATA mode is incorrect (ACHI vs emulation)