On Wed, Dec 19, 2007 at 01:23:30AM -0800, Steve Langasek wrote: > On Wed, Dec 19, 2007 at 07:47:34AM +0000, Julian Gilbey wrote: > > > > I have just upgraded from 3.0.27a-1 to this version, and now when I > > > > try to mount my Samba partition, I get the following error: > > > > > euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o > > > > credentials=/etc/wggs.credentials,uid=jdg,gid=jdg > > > > mount error: could not find target server. TCP name WGS-SVR-001/RMStaff > > > > not found > > > > No ip address specified and hostname not found > > > > euclid:~ # > > > > Is this hostname resolvable via DNS (i.e., how about "ping WGS-SVR-001" > > > instead of "smbclient" as a test)? The mount.cifs program doesn't support > > > WINS-based host resolution (nor mount.smbfs, IIRC). C.f. bug #311709.
euclid:~ $ host WGS-SVR-001 WGS-SVR-001.local does not exist (Authoritative answer) euclid:~ $ > > I'll check and let you know. But something has clearly changed > > between version 3.0.27a-1 and this version, as it did work until now. > > And if it is a DNS issue, then how on earth am I meant to specify the > > partition to mount.cifs?! > > Well, are you sure that something in your DNS didn't change since the point > when you were using 3.0.27a? I really don't know of any other way this > would've worked for you with the given commandline. I've reinstalled 3.0.27a-1, and my /etc/fstab entry works (line broken for readability): //WGS-SVR-002/Shared\040Documents /mnt/wggs/shared smbfs user,noauto,credentials=/etc/wggs.credentials,uid=jdg,gid=jdg 0 0 but you are correct: the command line with -t cifs does not work. However, with 3.0.27a, the command line: mount -t smbfs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o \ credentials=/etc/wggs.credentials,uid=jdg,gid=jdg does work, whereas with 3.0.28-1~lenny1, this same command line gives the TCP name not found error. So clearly *something* has changed. > To mount such shares without DNS support, you have three options: > > - add your own entry in /etc/hosts > - add nss_wins from the winbind package to your nsswitch.conf > - use the ip= option to mount.cifs Many thanks! Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]