I bought a new SD card for $28 and everything works now. Note to self: never format SD card again.