In case others have this problem. I have solved it by cloning the SD card to a new one. Read more here.