Folder with question mark at startup
I was using Windows 8.1 which was installed via BootCamp and suddenly one day the folder with question mark started appearing at boot after the iMac chime after which I need to power off the iMac holding the power button (which I believe is bad for the HDD) and turning it on again and again several times before the system finally detects the bootable disks (Macintosh HD and BOOTCAMP Windows).
I have tried diagnosing the drives for any errors, run Windows memory diagnostic service as well but no issues were found with the harddrive. I then did a clean install of Windows 10 but still the problem continues to persist. Any solutions?
iMac 21.5″, macOS 10.12