I'm relatively new to Linux and falling down the tree and hitting every branch on the way down (it seems).I'm trying to share an NTFS drive, or a directory on the drive, via samba, and I have found several tutorials that show it being done in just a few minutes (minus the updates and package installs).  I'm about 3 weeks in and I can't get it working.  Currently, other machines on the network cannot resolve the hostname, and I believe that's the root cause of error 0x80070035.If I use the IP address like so: \\192.168.1.xx\, I can see the share shares and get prompted for a username/password.  However, after putting in a username and password, I get Error code: 0x80070035 The network path was not found (pics on the SuperUser question).  I've started this question over at SuperUser and it's stalled out, so I figure I'd come over here and ask what can be done about all this.Tutorials I UsedTutorial 1 - Raspberry Pi NAS: Build a Raspberry Pi Samba ServerTutorial 2 - How to Turn a Raspberry Pi into a Low-Power Network Storage DeviceTutorial 3 / Youtube DIY - Raspberry Pi as a NAS with Samba - How ToQuestions and ResearchHow does a n00b begin to troubleshoot samba?  Is there a tutorial that will help me get this working?I've already burned a new raspbian image and started from scratch and that didn't help.  I shouldn't need avahi/Bonjour since I'm using samba/netbios, and I don't want to use HOSTS file modifications since I have several machines I want to use this with.  Given the fact that there are packages and tutorials, I am confused why I can't get this up and running and why I am having such difficulty.  Especially given the homogenity of the instructions.nsswitch.conf# /etc/nsswitch.conf## Example configuration of GNU Name Service Switch functionality.# If you have the `glibc-doc-reference' and `info' packages installed, try:# `info libc Name Service Switch' for information about this file.passwd:         compatgroup:          compatshadow:         compathosts:          files mdns4_minimal dns mdns4 wins [NOTFOUND=return]networks:       filesprotocols:      db filesservices:       db filesethers:         db filesrpc:            db filesnetgroup:       nisping from the raspberry pi:$ ping -c3 raspberrypiPING raspberrypi (127.0.1.1) 56(84) bytes of data.64 bytes from raspberrypi (127.0.1.1): icmp_req=1 ttl=64 time=0.208 ms64 bytes from raspberrypi (127.0.1.1): icmp_req=2 ttl=64 time=0.200 ms64 bytes from raspberrypi (127.0.1.1): icmp_req=3 ttl=64 time=0.240 ms--- raspberrypi ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 2003msrtt min/avg/max/mdev = 0.200/0.216/0.240/0.017 mssmb.conf[global]   workgroup = WORKGROUP#   NetBIOS name = raspberrypi   server string = %h server   dns proxy = no   log file = /var/log/samba/log.%m   max log size = 1000   syslog = 0   panic action = /usr/share/samba/panic-action %d   security = user   encrypt passwords = true   passdb backend = tdbsam   obey pam restrictions = yes   unix password sync = yes   passwd program = /usr/bin/passwd %u   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$   pam password change = yes   map to guest = bad user   usershare allow guests = yes[homes]   comment = Home Directories   browseable = no   read only = yes   create mask = 0700   directory mask = 0700   valid users = %S[printers]   comment = All Printers   browseable = no   path = /var/spool/samba   printable = yes   guest ok = no   read only = yes   create mask = 0700[print$]   comment = Printer Drivers   path = /var/lib/samba/printers   browseable = yes   read only = yes   guest ok = no[Shares]   comment = Shares Folder   path = '/media/80Gigger/shares'   browsable = yes   read only = nofstabproc            /proc           proc    defaults          0       0/dev/mmcblk0p1  /boot           vfat    defaults          0       2/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1#/dev/sda1      /media/USB              auto    gid=1002,uid=1001       0       0# a swapfile is not a swap partition, so no using swapon|off from here on, use  dphys-swapfile swap[o$Update 1etc\hosts127.0.0.1       localhost::1             localhost ip6-localhost ip6-loopbackfe00::0         ip6-localnetff00::0         ip6-mcastprefixff02::1         ip6-allnodesff02::2         ip6-allrouters127.0.1.1       raspberrypiUpdate 2The Windows machine is not joined to a domain.  The pi has the default hostname and hosts file.  When you say fiddle with, what should I change?$ hostnameraspberrypi$ nmblookup raspberrypiquerying raspberrypi on 192.168.1.255192.168.1.14 raspberrypi<00>$ nmblookup -M -- -querying __MSBROWSE__ on 192.168.1.255192.168.1.14 __MSBROWSE__<01>$ smbclient -L 192.168.1.14Enter pi's password:Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]        Sharename       Type      Comment        ---------       ----      -------        print$          Disk      Printer Drivers        Shares          Disk      Shares Folder        IPC$            IPC       IPC Service (raspberrypi server)Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]        Server               Comment        ---------            -------        D-WHALEY2        LAPTOP        RASPBERRYPI          raspberrypi server        Workgroup            Master        ---------            -------        WORKGROUP            RASPBERRYPIUpdate 3I uncommented the NetBios field in the raspberry pi and am now getting a different error in Windows explorer; error 0x80004005.  I get this error if I try to navigate to \raspberrypi\ .  I found this question that describes many facets of the error.  I only found 1 Microsoft 6to4 adapter though.  Deleting it and restarting had no effect.I still get error 0x80070035 if I navigate to \192.168.1.14\ and enter in the appropriate credentials.I do have ipv6 disabled on the Windows 7 laptop.  I don't think that would have any bearing on this phenomenon though.On the raspberry pi, I cannot ping the name of the Windows machine, nor can I seem to access the samba share on the Windows 7 machine.  I'm not sure if PCMANFM can even do this, but it's certainly not working.Update 4I now have samba working and letting me see files in the share, though I still don't have name resolution working.  Progress!  Thanks for everyone's help so far!It seems like I'm fighting more than 1 problem, and I just solved the accessing the share problem.  The drive needed a permanent mount point to be read/write for samba, so I had to modify the fstab file.  Also, it seemed that when I removed the space in the volume name, I had left the single quotes around the oath int he smb.conf file, and looking in the samba log, that was causing problems, so I had to edit that too.I still can't resolve the pi's name to IP by pinging it, though I'm going to try to decipher the answer below that looks like it will help.I re-did the smbpasswd for the account I'm using, just in case I had forgotten to do this previously:sudo smbpasswd -a backupsthis is my new hosts file:127.0.0.1       raspberrypi localhost::1             raspberrypi localhost ip6-localhost ip6-loopbackfe00::0         ip6-localnetff00::0         ip6-mcastprefixff02::1         ip6-allnodesff02::2         ip6-allrouters#127.0.0.1      raspberrypi#127.0.1.1      raspberrypiThis is my fstab file:proc            /proc           proc    defaults          0       0/dev/mmcblk0p1  /boot           vfat    defaults          0       2/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1/dev/sda1       /media/80Gigger         auto    gid=1002,uid=1001       0      $# a swapfile is not a swap partition, so no using swapon|off from here on, use $This is my new smb.conf:[global]   workgroup = WORKGROUP   #netbios name = raspberrypi   server string = %h server   dns proxy = no   log file = /var/log/samba/log.%m   max log size = 1000   syslog = 0   panic action = /usr/share/samba/panic-action %d   security = user   encrypt passwords = true   passdb backend = tdbsam   obey pam restrictions = yes   unix password sync = yes   passwd program = /usr/bin/passwd %u   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$   pam password change = yes   map to guest = bad user   usershare allow guests = yes[homes]   comment = Home Directories   browseable = no   read only = yes   create mask = 0700   directory mask = 0700   valid users = %S[printers]   comment = All Printers   browseable = no   path = /var/spool/samba   printable = yes   guest ok = no   read only = yes   create mask = 0700[print$]   comment = Printer Drivers   path = /var/lib/samba/printers   browseable = yes   read only = yes   guest ok = no[Shares]   comment = Shares Folder   path = /media/80Gigger/shares   browsable = yes
How to resolve hostnames with Raspbian 5/5/2015?
networking;samba;raspbian;ntfs;hostname