Mount command help

Hi,

I want help on ‘MOUNT’ command. I am trying to mount a shared folder from windows machine to a folder on SUSE machine
The OS is SUSE 12 SP3. But when I execute the command in Terminal, I get command help information.
Pls advise at the earliest.

Thanks,
Priya

If the ‘mount’ command help information shows up, it likely means you have
a mistake in the command, at least according to what the ‘mount’ command
understands. It would help us help you if you posted the command you are
attempting to use here so we can try to parse it as well, or maybe even
try it out on our own systems. Otherwise, the help information is pretty
god and may help you correct the error, which is why it is displayed…


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

Hi,

Thanks for your reply.

My command is as below :

mount -t cifs -o user=${username},pass=${password} //server/folder /mnt/filefolder

were

user = Administrator (of windows server)
pass = (is password of Administrator and has special characters)
//server/folder = server ip/name of the shared folder on windows server

I am trying to mount a shared folder from windows server to linux server.

Pls advise.

Thanks,

Priya

Check the following:

man mount.cifs

If yours is like mine, you need to have usrename and password, not user
and pass, as your options:

OPTIONS
username=arg
specifies the username to connect as. If this is not given, then the
environment variable USER is used.

Earlier versions of mount.cifs also allowed one to specify the username
in a "user%password" or "workgroup/user" or "workgroup/user%password" to
allow the password and workgroup to be specified as part of the username.
Support for those alternate username formats is now deprecated and should
no longer be used. Users should use the discrete "password=" and "domain="
to specify those values. While some versions of the cifs kernel module
accept "user=" as an abbreviation for this option, its use can confuse the
standard mount program into thinking that this is a non-superuser mount.
It is therefore recommended to use the full "username=" option name.

password=arg
specifies the CIFS password. If this option is not given then the
environment variable PASSWD is used. If the password is not specified
directly or indirectly via an argument to mount, mount.cifs will prompt
for a password, unless the guest option is specified.

Note that a password which contains the delimiter character (i.e. a
comma ´,´) will fail to be parsed correctly on the command line. However,
the same password defined in the PASSWD environment variable or via a
credentials file (see below) or entered at the password prompt will be
read correctly.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.