So i just deleted stuff from the sd card to see if it was maybe a space issue (even though it told me i had 19+ gb left).
All of a sudden it started to work. I don't remember where i got the sd card, it was one that was lying around but I suppose it was a faulty one.
Thanks for all your help guys!