Mounting Windows Shares

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Mounting Windows Shares

Postby buzzo on Sat Jan 05, 2013 8:25 am

Code: Select all
smbclient -L buzz-bigbox -U buzz
returns all of the correct shares on buzz-bigbox, including printers.

However,
Code: Select all
sudo mount -t cifs -o "username=buzz,password=xxxxxx" //buzz-bigbox/c$ /mnt/buzz_bigbox_shares

returns mount error: could not resolve address for buzz-bigbox: Unknown error

the mount point exist..
printer sharing works.. from Windows 7 (buzz-bigbox) to Mint 14..

rather odd that samba knows buzz-bigbox but it's shares can not be mounted.

any help greatly appreciated.. have read many topics here, but found no solution.
buzzo
Level 1
Level 1
 
Posts: 4
Joined: Fri Jan 04, 2013 11:13 am

Linux Mint is funded by ads and donations.
 

Re: Mounting Windows Shares

Postby altair4 on Sat Jan 05, 2013 9:04 am

rather odd that samba knows buzz-bigbox but it's shares can not be mounted.

That's a good question but according to the error message it's not so much that it can't mount it as it is that it can't resolve the name to an ip address - "unknown error" isn't very helpful either:
mount error: could not resolve address for buzz-bigbox: Unknown error


You might want to make sure that the proper package is installed for a mount - although I think you would have received a different error message if it was missing:
Code: Select all
sudo apt-get install cifs-utils


Just to make sure that samba itself is working does it work with an ip address, for example:
sudo mount -t cifs -o "username=buzz,password=xxxxxx" //192.168.0.100/c$ /mnt/buzz_bigbox_shares


And does the normal gnome way of accessing the share also not work:
Code: Select all
nemo smb://username@buzz-bigbox/c$
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6131
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounting Windows Shares

Postby buzzo on Sat Jan 05, 2013 12:40 pm

using nemo , the share called is listed on the left panel, but when clicked give this error: No such interface `org.gtk.vfs.Mount' on object at path /org/gtk/vfs/mount/1

This did work perfectly:
sudo mount -t cifs -o "username=buzz,password=xxxxxx" //192.168.1.103/c$ /mnt/buzz_bigbox_shares

The problem is that this address is not static.. it can change for a variety of reasons..
Need to use the name.
buzzo
Level 1
Level 1
 
Posts: 4
Joined: Fri Jan 04, 2013 11:13 am

Re: Mounting Windows Shares

Postby altair4 on Sat Jan 05, 2013 1:07 pm

This did work perfectly:
sudo mount -t cifs -o "username=buzz,password=xxxxxx" //192.168.1.103/c$ /mnt/buzz_bigbox_shares

The problem is that this address is not static.. it can change for a variety of reasons..

I just wanted to know if samba itself was working and it appears as though it is. It's a shame you weren't accessing another Linux box you would be able to replace 192.168.1.103 with buzz-bigbox.local and bypass all this netbios name stuff.
No such interface `org.gtk.vfs.Mount' on object at path /org/gtk/vfs/mount/1

That's a new one to me. Let me investigate a bit.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6131
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounting Windows Shares

Postby buzzo on Sat Jan 05, 2013 3:58 pm

SOLVED!
Could not ping by netbios name..
Found this solution to my problem by fixing ping

Posted by: Odzangba | May 15, 2011
How To Ping NETBIOS Names On Ubuntu
:D
1) Back up and edit the /etc/nsswitch.conf file by copying and pasting the following commands:

sudo cp /etc/nsswitch.conf /etc/nsswitch.conf.original

gksu gedit /etc/nsswitch.conf

2) Add wins to the hosts directive:

3) Install WINBIND:

sudo apt-get install winbind
buzzo
Level 1
Level 1
 
Posts: 4
Joined: Fri Jan 04, 2013 11:13 am

Re: Mounting Windows Shares-SOLVED

Postby buzzo on Mon Jan 07, 2013 2:37 pm

see post before this one...
buzzo
Level 1
Level 1
 
Posts: 4
Joined: Fri Jan 04, 2013 11:13 am


Return to Other networking topics

Who is online

Users browsing this forum: johnmc98683 and 4 guests