LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2005, 02:31 PM   #1
alsjordan
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Question mounting a windows (samba) share?


Hi I have recently installed Linux, and cannot seem to get the syntax right to be able to mount a windows (samba) share.
The share is currently on a windows 2K Server, and i want to mount this share across my LAN.

I have tried the following but get an error:

# mount -t smbfs -o username=xxxx,password=yyyy //192.168.1.251/test /public/media/movie/test

mount: Mounting //192.168.1.251/test on /public/media/movie/test failed: Invalid argument

Can someone help me to sort out why this wont mount, do I have the syntax right?

I am running:
# uname -a
Linux LSYS1 2.4.22-xfs #1 Sun Jun 12 21:17:17 PDT 2005 armv5b unknown

Thanks
Alan

# smbmount
Usage: mount.smbfs service mountpoint [-o options,...]
Version 2.2.7b-ja-1.0

Options:
username=<arg> SMB username
password=<arg> SMB password
credentials=<filename> file with username/password
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or username
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
iocharset=<arg> Linux charset (iso8859-1, utf8)
codepage=<arg> server codepage (cp850)
ttl=<arg> dircache time to live
guest don't prompt for a password
ro mount read-only
rw mount read-write

This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
 
Old 08-05-2005, 02:40 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Can you do 'smbclient -L 192.168.1.251'? (Supply a username and password as needed)
 
Old 08-06-2005, 07:25 AM   #3
alsjordan
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy mounting a samba share

Hi,

I havent got smbclient as one of the commands that i can use?

Anyone else got any ideas.. They will be appreciated

Alan
 
Old 08-06-2005, 09:22 AM   #4
alsjordan
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Mapping a windows samba share!

For anyone that's interested i have finally worked this out !!!

different syntax:

smbmount "//<netbios or ip>/<sharename>" /<mountpoint> -o username=xxxx,password="yyyy"

the quotes seem to be important even though my shares have no spaces in them!

Alan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Network Share via Samba colabus Linux - Software 11 12-08-2008 02:52 AM
automatic Mounting Windows Share using samba MediMania Linux - Software 4 11-17-2005 04:54 AM
Mounting Windows Network Share via Samba colabus Linux - Newbie 6 10-12-2004 09:15 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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