LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 01-09-2002, 05:57 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510
Thanked: 0
mounting samba share


[Log in to get rid of this advertisement]
How do I use the mount command to mount a samba share on my local network? I tried looking in the man, but I couldn't figure it out.
glock19 is offline     Reply With Quote
Old 01-09-2002, 06:09 PM   #2
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201
Thanked: 0
try 'man smbmount'
mAineAc is offline     Reply With Quote
Old 01-09-2002, 09:13 PM   #3
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154
Thanked: 0
smbmount

if you are using a somewhat new version of smbmount, it could be
smbmount //computer/sharename /mnt/point
or
smbmount //computer/share /mnt/point -o ip=x.x.x.x

check the man page or other docs for other options like username/password
theFuzzyOne is offline     Reply With Quote
Old 01-09-2002, 11:14 PM   #4
knobby
Member
 
Registered: Jan 2002
Location: Austin, Texas
Posts: 31
Thanked: 0
this is the way I mount samba shares on other machines:

mount -t smbfs -o username=name,password=password //machinename/sharename /mnt/smbshare

This work but I don't know if it's the best way
knobby is offline     Reply With Quote
Old 01-10-2002, 07:45 PM   #5
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510
Thanked: 0

Original Poster
When I try this command:

Code:
mount -t smbfs //192.168.168.253/tmp /mnt/smbshare
I get the following error:

Code:
Could not resolve mount point /mnt/smbshare
Do you know what this means?
glock19 is offline     Reply With Quote
Old 01-10-2002, 07:50 PM   #6
knobby
Member
 
Registered: Jan 2002
Location: Austin, Texas
Posts: 31
Thanked: 0
i means there is no /mnt/smbshare. create one first:

#mkdir /mnt/smbshare
knobby is offline     Reply With Quote
Old 01-10-2002, 08:06 PM   #7
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510
Thanked: 0

Original Poster
Ahh ok. I thought it would just dynamically create that directory for me. Thanks, now it works.

How do I make it so I do this mount every time my linux box boots?
glock19 is offline     Reply With Quote
Old 01-10-2002, 08:11 PM   #8
knobby
Member
 
Registered: Jan 2002
Location: Austin, Texas
Posts: 31
Thanked: 0
that depends on what *nix you are using. If you are using redhat, the simple way is to add that exact mount command to your /etc/rc.d/rc.local file. The right way would be to add it to /etc/fstab but I can't explain how to do that. Try doing a 'man fstab' and hack away.
knobby is offline     Reply With Quote
Old 01-10-2002, 09:54 PM   #9
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154
Thanked: 0
automount

or u could use the automounter... lookup autofs for details
theFuzzyOne is offline     Reply With Quote
Old 10-01-2003, 06:47 PM   #10
Piro
LQ Newbie
 
Registered: Oct 2003
Distribution: Ubuntu 6.0
Posts: 14
Thanked: 0
ive made an sh file to mount my windows share for me... ive typed this in it...
mount -t smbfs -o username=samba,password=samba //Desktop/Public /mnt/public

ive tried everything i know, including reading the man files... i can't find smbmount either... and both dont work... ive also tried making the credentials file but nothing works... it comes out with an error of the following
mount: mount point \\Desktop\Public does not exist
./mountshares.sh: /mnt/public: is a directory

thing is, i know this directory works because when i use my other home made sh file containing
/usr/local/samba/bin/smbclient \\\\Desktop\\Public -U samba samba
it seems to work fine... and it does connect...

ive also tried to use \\\\Desktop\\Public in the original sh file to mount my shares but it doesn't seem to work, it gives me the same error...

PLEASE HELP ME!!! it seems as if its not working no matter what i try, ive also recompiled samba 3 times and each time it doesn't work...
as a note im running slackware 8.1

Looking forward to getting some help or insight on this... thanks in advance
Piro is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Samba Share linux_or_bust Linux - Software 6 02-16-2005 10:38 AM
Mounting XP share w/Samba KFoldesi Linux - Software 7 06-29-2004 10:51 PM
samba share mounting bacon22 Linux - Software 1 01-24-2004 08:13 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 03:23 PM
Mounting a Samba Share msjenkins Linux - Software 0 07-16-2003 11:19 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration