Have just changed a machine from 4.11 to 6.1 by re-installing. It all works fine, but I cannot work out how to make the SMB filesystems in fstab mount at boot time. I used to do this by copying /usr/src/contrib/smbfs/examples/smbfs.sh.sample to one of the rc directories, but this script does not seem to exist under 6.1. Some googling lead me to comments that adding the line extra_netfs_types="smbfs:SMB" to rc.conf would do the trick, but that doesnt work either. When the system is mounted I can just type 'mount -a' and they all mount fine though! I suppsoe I could copy the 4.11 script over, but I am sthere must be a "correct" way to do this under 6.1. ? The man page simply says to add the lines to fstab. -pcf.
The following in my fstab works for me (with no extra settings in rc.conf or scripts): //media/files /drives/media/files smbfs rw,-I=192.168.7.25,-N,-u=x 0 0 Since you say mount -a works, it sounds likely you have something in your fstab preventing auto mounting (noauto??), or perhaps some error is being generated at boot time (check /var/log/messages?). Maybe if you post your fstab someone will spot something. -- Tim Middleton | Vex.Net | I care not much for a man's religion whose x@veX.net | VexTech.ca | dog or cat are not the better for it. [A.L.]
> Since you say mount -a works, it sounds likely you have something in your > fstab preventing auto mounting (noauto??), or perhaps some error is being > generated at boot time (check /var/log/messages?). Maybe if you post your > fstab someone will spot something.Actually, after much oainful digging through rc files (which proved to be a total red herring1) I did find the problem. The dirves are mouted before named is started, hence the machine names need to be in /etc/hosts Stupid error on my part, because I know this is the case for NFS! Sorry for the noise... -pete.