A bad sector is a physical error on the SD card that prevents data from being read or written. A corrupt file, on the other hand, is a file that has been damaged or modified in some way that prevents it from being opened or used.