I have been able to solve the problem. I checked the drive with fsck and it seemed that a superblock of the drive was broken. Fsck needed a few hours to fix things, and now everything is working...
I have a small fileserver running busybox (very small linux distro with most essential stuff on it) and I am trying to remove some unused directories on it.