You are not logged in.

#1 2013-10-12 20:45:12

horsemanoffaith
Member
Registered: 2013-05-10
Posts: 181

[Solved]Nautilus won't display any shares

When I click on Browse Network in Nautilus, I see the Windows Network icon. When I click on it, however, I see nothing at all... not my Arch desktop computer or my wife's Windows 8 computer. I have been troubleshooting this for a while. I have checked to make sure that samba is running, and using smbtree I get the following information

Enter mike's password: 
MINE
	\\TAWNYALAPTOP   		
	\\ARCHDESKTOP    		Samba 4.0.9
		\\ARCHDESKTOP\mike           	Mike's Desktop Documents
		\\ARCHDESKTOP\IPC$           	IPC Service (Samba 4.0.9) 

Obviously Samba is working, and it sees both my wife's computer and my desktop. I DO have gvfs-smb installed... please help!!!

Last edited by horsemanoffaith (2013-10-18 02:23:14)

Offline

#2 2013-10-12 21:11:09

headkase
Member
Registered: 2011-12-06
Posts: 1,983

Re: [Solved]Nautilus won't display any shares

gvfs-smb rarely works in my experience.  It hangs when you are actually transferring files with it.  What I use, and what is rock-solid is cifs shares.

Install the smbclient package if you haven't already.

Add to your /etc/fstab:

//SHODAN/DATA /mnt/Shodan cifs username=<Windows-User-Name>,password=<password>,workgroup=WORKGROUP,noauto,uid=<Linux-User-Name>,gid=users,file_mode=0644,rw 0 0

Where SHODAN is the computer's name with the share and DATA is the share name.  And where /mnt/Shodan is a directory in your file-system to take the mount.

In /etc/nsswitch.conf add "wins" to the hosts line so it looks like this:

hosts: files dns wins myhostname

Adding wins enables NETBIOS look-ups so you don't have to use IP addresses.

Then just mount/umount the share as normal.  It works, and it works solid.

Offline

#3 2013-10-12 21:37:53

horsemanoffaith
Member
Registered: 2013-05-10
Posts: 181

Re: [Solved]Nautilus won't display any shares

I did what you said, and I was able to connect using the Connect to Server option on Nautilus. Is this the way that you were suggesting mounting the share, or is there another way that I am just missing? I'm still fairly new to Arch Linux.

Last edited by horsemanoffaith (2013-10-12 21:38:27)

Offline

#4 2013-10-12 21:40:24

headkase
Member
Registered: 2011-12-06
Posts: 1,983

Re: [Solved]Nautilus won't display any shares

I don't use Nautilus so I'm not sure exactly what its "connect to share" uses but how I use my above fstab entry is "sudo mount /mnt/Shodan" to mount it and "sudo umount /mnt/Shodan" when done with it.  These commands are in a terminal and require either root or sudo.

Offline

#5 2013-10-12 21:43:00

headkase
Member
Registered: 2011-12-06
Posts: 1,983

Re: [Solved]Nautilus won't display any shares

Also, the mount-point (/mnt/Shodan in my example): when you use "connect to share" see if your mount-point you specified in fstab has the files.  If it does then that would indicate that "connect to share" is using your fstab entry.

Offline

#6 2013-10-12 21:52:47

horsemanoffaith
Member
Registered: 2013-05-10
Posts: 181

Re: [Solved]Nautilus won't display any shares

Okay, tried using the command line and got the following error:

[mike@archdesktop ~]$ sudo mount /mnt/TawnyaLaptop
mount error: could not resolve address for TawnyaLaptop: Unknown error 

Here's the /etc/fstab entry... I x'd out the password.

//TawnyaLaptop/C /mnt/TawnyaLaptop cifs username=<Tawnya>,password=<xxxxxxxxx>,workgroup=MINE

Last edited by horsemanoffaith (2013-10-12 21:56:52)

Offline

#7 2013-10-12 22:03:55

headkase
Member
Registered: 2011-12-06
Posts: 1,983

Re: [Solved]Nautilus won't display any shares

Does your username actually have < and >?  It should be username=Tawnya and password=xxxxx.  The directory /mnt/TawnyaLaptop should also exist and be empty to accept the mount when you do that.  Also, could not resolve address: did you add wins to the hosts line as I said above?  Also, smbclient IS installed right?  That is where "cifs" comes from..

Offline

#8 2013-10-12 22:09:34

horsemanoffaith
Member
Registered: 2013-05-10
Posts: 181

Re: [Solved]Nautilus won't display any shares

headkase wrote:

Does your username actually have < and >?  It should be username=Tawnya and password=xxxxx.  The directory /mnt/TawnyaLaptop should also exist and be empty to accept the mount when you do that.  Also, could not resolve address: did you add wins to the hosts line as I said above?  Also, smbclient IS installed right?  That is where "cifs" comes from..

Some of the dumbest things... as soon as I got rid of < and >, it mounted straight away. Thanks for the help.

Offline

#9 2013-10-12 22:13:45

headkase
Member
Registered: 2011-12-06
Posts: 1,983

Re: [Solved]Nautilus won't display any shares

Right on, you're welcome.  Don't forget to mark your post as solved: edit your first post in this thread and put "[Solved]" somewhere in the title!

Offline

Board footer

Powered by FluxBB