Thanks Clinton, that was the fix. I accessed the device only from the terminal and removed all the dot-files placed on the card by OSX.