LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting a windows (samba) share? (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-windows-samba-share-350340/)

alsjordan 08-05-2005 01:31 PM

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?:study:

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

Matir 08-05-2005 01:40 PM

Can you do 'smbclient -L 192.168.1.251'? (Supply a username and password as needed)

alsjordan 08-06-2005 06:25 AM

mounting a samba share
 
Hi,

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

Anyone else got any ideas.. They will be appreciated

Alan

alsjordan 08-06-2005 08:22 AM

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


All times are GMT -5. The time now is 10:37 PM.