Thank you everybody for trying to help me. As it turned out it was a hardware problem.
I suspect that I had a shitty USB cable, when I plugged in the BBB in an other port. The connection was comming and going and when I used an other cable the problem was solved.
Sorry for not ruling this out first, somehow I didn't think about failing of a static piece.