The "-31 a device attached to the system is not functioning" error normally occurs when there is a problem with the destination drive (i.e. the one you are writing the backup image to). That in turn can lead to errors such as 'cannot find file specified'.
The easiest thing to check this, is to...