|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have the following line in my /etc/fstab:
//windmach/My\040Pictures /mnt/PictureArchive smbfs noauto,user,username=Userone,rw,uid=uone,gid=uone 0 3 I only mount this drive every once in a while when I want to share pictures with my wife. It's worked for a long time (over a year), and I first noticed it not working today. # mount /mnt/PictureArchive mount error: could not find target server. TCP name windmach/My Pictures not found No ip address specified and hostname not found # dpkg --list '*samba*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==================-==================-================================================== == ii samba 3.0.28a-1 a LanManager-like file and printer server for Unix un samba-client <none> (no description available) ii samba-common 3.0.28a-1 Samba common files used by both the server and the c ii samba-doc 3.0.28a-1 Samba documentation un samba-doc-pdf <none> (no description available) # uname -a Linux linmach 2.6.24-1-amd64 #1 SMP Thu Mar 27 16:52:38 UTC 2008 x86_64 GNU/Linux I run Debian unstable. I've checked the man pages and README files in /usr/share/doc/samba-docs, and I can't find any indication that the syntax has changed. Does anyone have any suggestions? Please Cc me on replies. Thanks, Tom -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Wed, Apr 2, 2008 at 10:50 PM, Tom Epperly <tepperly@gmail.com> wrote:
> I have the following line in my /etc/fstab: > > //windmach/My\040Pictures /mnt/PictureArchive smbfs > noauto,user,username=Userone,rw,uid=uone,gid=uone 0 3 .... > I run Debian unstable. I've checked the man pages and README files in > /usr/share/doc/samba-docs, and I can't find any indication that the > syntax has changed. Does anyone have any suggestions? Please Cc me on > replies. smbfs has been deprecated in favor of cifs. Depending on your provider, you may be able to replace "smbfs" with "cifs" and have everything work. If, like me, you have a "ful" ISP that treats unresolvable domains as searches, you'll never hit the local wins lookup for your SMB server. What worked for me in this case is to have a line like the following in /etc/nsswitch.conf: hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4 Note that this means all hostname resolution will check for wins entries before dns. Doing the equivalent in the samba configs doesn't currently work for cifs. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com http://36pints.blogspot.com -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
[CC'ing to d-u for any samba experts out there]
On Sat, Apr 5, 2008 at 12:03 PM, Tom Epperly <tepperly@gmail.com> wrote: mm> smbfs has been deprecated in favor of cifs. Depending on your mm> provider, you may be able to replace "smbfs" with "cifs" and have mm> everything work. If, like me, you have a "ful" ISP that treats mm> unresolvable domains as searches, you'll never hit the local wins mm> lookup for your SMB server. What worked for me in this case is to mm> have a line like the following in /etc/nsswitch.conf: mm> mm> hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4 > > I tried making these two changes, and it didn't really do anything. B > # mount /mnt/PictureArchive > mount error: could not find target server. TCP name brightlywoven/My > Pictures not found > > No ip address specified and hostname not found > > The error message suggests that it's doing a name looking for > "brightlywoven/My Pictures" rather than "brightlywoven". Any suggestions? Is "brightlywoven/My Pictures" being advertised as an SMB share? If not, you may have to mount just "brightlywoven" (if you can't configure the server to advertise the directory you want). I'm not sure if there's a way to specify a directory on a share. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com http://36pints.blogspot.com -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Michael Marsh wrote:
> [CC'ing to d-u for any samba experts out there] > > On Sat, Apr 5, 2008 at 12:03 PM, Tom Epperly <tepperly@gmail.com> wrote: > mm> smbfs has been deprecated in favor of cifs. Depending on your > mm> provider, you may be able to replace "smbfs" with "cifs" and have > mm> everything work. If, like me, you have a "ful" ISP that treats > mm> unresolvable domains as searches, you'll never hit the local wins > mm> lookup for your SMB server. What worked for me in this case is to > mm> have a line like the following in /etc/nsswitch.conf: > mm> > mm> hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4 > >> I tried making these two changes, and it didn't really do anything. B >> # mount /mnt/PictureArchive >> mount error: could not find target server. TCP name brightlywoven/My >> Pictures not found >> >> No ip address specified and hostname not found >> >> The error message suggests that it's doing a name looking for >> "brightlywoven/My Pictures" rather than "brightlywoven". Any suggestions? >> > > Is "brightlywoven/My Pictures" being advertised as an SMB share? If > not, you may have to mount just "brightlywoven" (if you can't > configure the server to advertise the directory you want). I'm not > sure if there's a way to specify a directory on a share. > > Yes My Pictures is shared. I tried a couple of other things. # mount -t cifs //brightlywoven /mnt/PictureArchive Mounting the DFS root for a particular server not implemented yet No ip address specified and hostname not found # mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive mount error: could not find target server. TCP name brightlywoven/SharedDocs not found No ip address specified and hostname not found |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Sat, Apr 05, 2008 at 10:04:40 -0700, Tom Epperly (tepperly@gmail.com) wrote:
[snip] > Yes My Pictures is shared. I tried a couple of other things. > > # mount -t cifs //brightlywoven /mnt/PictureArchive > Mounting the DFS root for a particular server not implemented yet > No ip address specified and hostname not found > > # mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive > mount error: could not find target server. TCP name > brightlywoven/SharedDocs not found > No ip address specified and hostname not found If it's of any , I mount the remote directory 'fileserver' which is on a box called 'gaia' with this line in /etc/fstab: //gaia/fileserver /mnt/fileserver smbfs guest,uid=1000,gid=1000 0 0 ...and this results in the following output from the 'mount' command: //gaia/fileserver on /mnt/fileserver type cifs (rw,mand) It is worth mentioning that there is an entry in /etc/hosts for gaia. Probably I should update fstab to use 'cifs' but it works fine as it is. -- Bob Cox. Stoke Gifford, near Bristol, UK. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH97k8tRQI2J/5p20RAp+hAJ9DCAWpHfU0Rl4rtUlTWYqNlnqmMwCgmI47 c6sVnJBT9TJnRdBMenCkeic= =KD58 -----END PGP SIGNATURE----- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
On Sat, Apr 5, 2008 at 1:04 PM, Tom Epperly <tepperly@gmail.com> wrote:
> Yes My Pictures is shared. I tried a couple of other things. > > # mount -t cifs //brightlywoven /mnt/PictureArchive > Mounting the DFS root for a particular server not implemented yet > > No ip address specified and hostname not found > > # mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive > mount error: could not find target server. TCP name > brightlywoven/SharedDocs not found > > No ip address specified and hostname not found What does smbtree show? -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com http://36pints.blogspot.com -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On 04/05/2008 10:50 AM, Bob Cox wrote:
> [snip] > > //gaia/fileserver on /mnt/fileserver type cifs (rw,mand) > > It is worth mentioning that there is an entry in /etc/hosts for > gaia. > I recall reading that cifs needs an IP address but an entry in your /etc/hosts will work. -- Glen -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|