Sketch uploaded from hard drive won't fully function

Are both hex files the same?

Can you share your code (using code tags please).

As you can upload, this has nothing to do with Avrdude, stk500 or Bootloader. Your topic has been moved to a more suitable location on the forum.