Those errors typically pertain to a driver problem with the IDE controller. If the boot device [hard drive] is inaccessable, then obviously something in between the OS and the hard drive is ...
This AHCI Port0 Device Error does not usually occur due to the operating system failure; instead, it occurs when your computer detects an issue with your hard drive ...