I've attempted to install elementary OS Loki at least ten times at this pont. Everything runs smoothly up until the end when I am told to restart the computer. If I restart and remove installation media, I am told that there is no OS installed, and if I don't I am returned to the install screen.
This happens with the BIOS in both uefi and legacy modes, with secure boot on or off.
EDIT: (I just remembered, The computer fails to recognize that an OS is present altogether although the installation program does. It also recognizes that the disk has been formatted and contains partitions made by the past attempts at install elementary OS.)
How can I fix this?