Mounting Windows Shares

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
buzzo

Mounting Windows Shares

Post by buzzo »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11444
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounting Windows Shares

Post by altair4 »

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.
buzzo

Re: Mounting Windows Shares

Post by buzzo »

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.
altair4
Level 20
Level 20
Posts: 11444
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounting Windows Shares

Post by altair4 »

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.
buzzo

Re: Mounting Windows Shares

Post by buzzo »

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

Re: Mounting Windows Shares-SOLVED

Post by buzzo »

see post before this one...
Locked

Return to “Networking”