LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2006, 11:53 AM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
Mounting Samba drive


Hey all,
Well this one should be easy,

I have a windoz comp, I can see it in 'Konqueror' and explore. I can make a link to it on the desktop. But when I use the
Code:
mount -t smbfs //137.131.16.134 /shaggy
or
sudo mount -t smbfs //137.131.16.134 /shaggy
I get the help for 'mount smbfs' funnily enough isn't what I wanted!
I tried the suggestions given in the help but I still get the wrong thing. Before you ask yes I have googled!
I'm on Suse 10.0 if that helps.
Cheers,
 
Old 06-20-2006, 12:09 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Ok, I just tried the mount command and had trouble, but this worked
Code:
$mount.smbfs //XPPC/SharedDocs /mnt/XPPC -o username=bernie,password=""
Have you got mount.smbfs?

You can probably do the same with the mount command, but you probably need those user and password options, even if you don't need a password.

Note that you need the name of the shared folder as well as the computer, and I'm sure the IP is fine. (To find out this name go into Windows Explorer and right click on the shared folder and click on properties, then click on the sharing tab.)
 
Old 06-20-2006, 12:12 PM   #3
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Yep, this worked as well:
Code:
mount -t smbfs -o username=bernie,password="" //XPPC/SharedDocs /mnt/XPPC
 
Old 06-20-2006, 01:06 PM   #4
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
so I just tried both and nither worked. I seem to have mount.smbfs. It came up again with the mount help. Thing is I need to put the IP address due to the DNS not finding the hostname. Any ideas?

Last edited by PB0711; 06-20-2006 at 01:43 PM.
 
Old 06-20-2006, 01:15 PM   #5
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Are you running kde or gnome (or some other pretty desktop)?
In kde, the konqueror start page offers 'Network Folders' which automates everything for you. I'm sure there's an equivalent in gnome. Does that work.

If it doesn't (or if you can't find a friendly GUI application) the other thing I'd check is that you have access to the Windows box. Check the settings in Windows - have you allowed sharing to other computers, or just other users?

Can you ping the Windows box? (ping IP)
Does Suse run a firewall? Have you allowed the right ports through?

And to get the name to be translated for you so you don't have to use the IP, put an entry in /etc/hosts (do man hosts to find out what it should look like)
 
Old 06-20-2006, 01:43 PM   #6
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Yep window box is pingable, good time too. There is already another linux box on the network with a mounted point to this windows box(but I didn't set it up). I'm using both a username and a password that if I go thought KDE I would have to put in. Suse has no firewall, so all ports are open.
Thanks for the tip on the /etc/hosts.
 
Old 06-20-2006, 02:03 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by PB0711
so I just tried both and nither worked. I seem to have mount.smbfs. It came up again with the mount help. Thing is I need to put the IP address due to the DNS not finding the hostname. Any ideas?
You almost answered your own question.

Code:
mount -t smbfs -o ip=137.131.16.134,username="WhoYouAre",password="whatever",workgroup="IfNecessary" //Server/sharename /mountpoint
Other options may apply. YMMV.

man smbmount

--- rod.
 
Old 06-20-2006, 04:06 PM   #8
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Hey It worked. Sweet cheers,
 
  


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 network drive using Samba cvzyl Linux - Software 4 04-01-2006 04:40 AM
Mounting drive through Samba coolfrog Linux - General 1 02-27-2005 09:37 AM
Mounting network drive with samba. Valhalla Linux - Networking 4 02-23-2005 03:54 PM
Mounting samba drive as user... elluva Linux - Networking 8 05-25-2004 08:35 PM
Mounting a Samba Drive defubar Linux - Networking 3 02-11-2004 06:04 PM

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

All times are GMT -5. The time now is 09:27 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