take the HDD out and temporarily install it in a different pc. Don't bother mounting it, just plug in the sata cables from PSU and sata from motherboard, you might need to give up sata plugs from optical disk drive for a couple minutes if you don't have any more cords. then boot up the PC and try formatting it again (in the other PC)