LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2009, 01:49 PM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Having difficulty mounting an Ubuntu network share in Slackware


Hello everyone,

I have Slackware 12.1 on my workhorse laptop, and I have discovered that XFCE runs cooler and smoother than I was getting with KDE. However, XFCE does NOT have a gui for mounting network shares (I know, I am lazy for not learning this before). Anyway, I have Ubuntu Jaunty has my file server on my desktop, which is really the only thing it does. It shows up fine with KDE in Konqueror, so I know the connection if fine. I am going to have to mount the share with the command line.

This is what I have been trying:

Code:
mount -t smbfs -o username=bob //BOB-DESKTOP/home/bob /bob-desktop
and I am getting this error:

Code:
Password: 
Anonymous login successful
7808: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
Can anyone give a couple of clues how to resolve this?

Many thanks for any replies.

Bob
 
Old 05-29-2009, 03:08 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It looks like you are trying to mount the actual location of the directory, rather than using the share name. A share name would be something like "//BOB-DESKTOP/bob", which would be mapped to "/home/bob" on the server side.

You can see a listing of the correct share names with the following command:

Code:
smbclient -L //BOB-DESKTOP
 
Old 05-29-2009, 04:34 PM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Hello, and thank you for replying. You are correct, smbclient -L shows the share to be BOB-DESKTOP. Still doesn't mount the share, though. I used this command:

Quote:
mount -t smbfs //BOB-DESKTOP /bob-desktop
This is the exact syntax suggested by man page. But, when run, it just gives me info on the command as though I am entering it completely out of whack. This info give me a lot of options, but doesn't indicate any other options are required,

Guess I need to look into the command further.

Thanks again

Bob
 
Old 05-29-2009, 04:56 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
At one point I have a feeling you were encouraged to use -o with -t; perhaps that was because you have to? Try putting -o username=bob back into it
 
Old 05-29-2009, 05:09 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by jamescondron View Post
At one point I have a feeling you were encouraged to use -o with -t; perhaps that was because you have to? Try putting -o username=bob back into it
Thank you for the reply, already tried that exact command a number of times, which produces the original error in my first post.

Thanks again

Bob
 
Old 05-29-2009, 05:19 PM   #6
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Can you connect with smbclient? (Don't forget to escape the backslashes)

Code:
smbclient \\\\server\\sharename password
Thats how I used to connect, but this is going back a long time, syntax and methods are likely to have changed significantly, it was about 8 years or so ago
 
Old 05-29-2009, 08:20 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
You are correct, smbclient -L shows the share to be BOB-DESKTOP.
It shows the share name as BOB-DESKTOP, or the server name? You need to have both a server name and a share name to mount an SMB share, all you have now is just the server name.

For example, if I run smbclient -L against my own Samba server:

Code:
tj@T-Bird:~$ smbclient -L //Mainframe
Domain=[MAIN] OS=[Unix] Server=[Samba 3.0.25a]

	Sharename       Type      Comment
	---------       ----      -------
	Music           Disk      General Music
	Video           Disk      TV Shows, Movies, and general videos
	Software        Disk      Various computer software
	ISOs            Disk      ISOs for games and operating systems
	WebDev          Disk      Test Web Page
	IPC$            IPC       IPC Service (File Server)
Domain=[MAIN] OS=[Unix] Server=[Samba 3.0.25a]

	Server               Comment
	---------            -------
	MAINFRAME            File Server
	T-BIRD               Slackware Linux
	TRIFORCE             

	Workgroup            Master
	---------            -------
	MAIN                 MAINFRAME
We see that "Music", "Video", "Software", etc, are shares on the server "Mainframe". Further, at the bottom we see that the servers on the network are "Mainframe", "T-Bird", and "Triforce".

So if I wanted to mount the "Music" share off of Mainframe, I would do something like:

Code:
mount -t smbfs //Mainframe/Music /mnt/Music
 
Old 05-30-2009, 05:39 PM   #8
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thank you...that sorted it. I was trying to mount to a directory outside of the /mnt directory in my home directory. But your instructions sorted it.

Thanks again

Bob
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Windows share in Ubuntu 9.04 Arancaytar Linux - Networking 2 05-19-2009 07:24 AM
Having difficulty mounting devices in Slackware 12.1 Trystan28 Slackware 17 06-03-2008 10:04 PM
Problem mounting network share leupi Ubuntu 4 10-31-2006 01:28 PM
Trouble mounting network share Robeasts Linux - Newbie 9 09-08-2006 06:20 PM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration