Ok, I have finally figured it out.
A working windows share looks like this (in fstab)
Code:
//serverIP/dir /mnt/dir cifs noserverino,ro,iocharset=utf8,password=,username= 0 0
Before I had
Code:
//serverIP/dir_a/dir_b
and
(i.e. no "username"
which worked in voyageMPD, but not in LFS.
I could track this down by using dmesg | tail.
Why this username is needed all of a sudden, I don't know.
And why dir_a/dir_b is no longer working, I don't now, either, but I can work around it by making a symlink to the subdirectory.
Does anyone know how to mount subdirectories directly? There might be an entry in smb.cfg, but I could not track it down.
No I believe the three packages I installed would not have been necessary(edit: check). Maybe not even samba client would be needed(edit: unlikely), I'm not sure. I am going to try uninstalling these as far as possible and see what happens.
Since all were installed from source and the build directories deleted, I guess I will have to rebuild them all in order for make uninstall to work.
Thanks, T3RM1NVT0R, for your help!
Edit:
A remaining problem is the shares are not mounted at startup, probably because the network is not ready at this stage. Adding "mount -a" to /etc/rc.d/init.d/network after "done in the "start" section solves this.
I also had to include a shutdown script to unmount, otherwise it would freeze because the LFS shutdown script does not properly unmount this share. (E.g. add umount.cifs -f... to a shutdown script that is executed sufficiently early, like alsa if it is used)