Cant reinstall Sierra because disk utility file system verify or repair failed.
My computer started running badly and eventually the finder froze completely. I couldnt switch off so unplugged. When I tried to reboot, the computer switched off half way through the process. I started up in recovery mode, ran disk first aid which failed. I then erased and downloaded macos Sierra, but the installation failed with the message macos could not be installed on the computer. File system verify or repair failed. The message says quit and restart, which I have tried without success. I was wondering what else I might try.
iMac 21.5", macOS 10.12