Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-05-2005, 01:31 PM   #1
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 // /public/media/movie/test

mount: Mounting // 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


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

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, 01:40 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

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

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


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

Anyone else got any ideas.. They will be appreciated

Old 08-06-2005, 08:22 AM   #4
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!



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 01:52 AM
automatic Mounting Windows Share using samba MediMania Linux - Software 4 11-17-2005 03:54 AM
Mounting Windows Network Share via Samba colabus Linux - Newbie 6 10-12-2004 08:15 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting a Samba Share msjenkins Linux - Software 0 07-16-2003 10:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 AM.

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