LeviDaily
asked on
Mount.CIFS - Unable to mount to share - Need example
I just installed CIFS from the Debian package directory. When I look at the help, it looks like the mount command starts with mount.cifs <remotetarget>...etc.. I just cant seem to get the command working. Can anyone help me?
I have a Windows 7 share I am trying to mount. Is there anything I need to do on my Windows side as well?
Usage: mount.cifs <remotetarget> <dir> -o <options>
Mount the remote target, specified as a UNC name, to a local directory.
Options:
user=<arg>
pass=<arg>
dom=<arg>
Less commonly used options:
credentials=<filename>,gue st,perm,no perm,setui ds,nosetui ds,rw,ro,
sep=<char>,iocharset=<code page>,suid ,nosuid,ex ec,noexec, serverino,
mapchars,nomapchars,nolock ,servernet biosname=< SRV_RFC100 1NAME>
directio,nounix,cifsacl,se c=<authent ication mechanism>,sign
Options not needed for servers supporting CIFS Unix extensions
(e.g. unneeded for mounts to most Samba versions):
uid=<uid>,gid=<gid>,dir_mo de=<mode>, file_mode= <mode>,sfu
Rarely used options:
port=<tcpport>,rsize=<size >,wsize=<s ize>,unc=< unc_name>, ip=<ip_add ress>,
dev,nodev,nouser_xattr,net biosname=< OUR_RFC100 1NAME>,har d,soft,int r,
nointr,ignorecase,noposixp aths,noacl ,prefixpat h=<path>,n obrl
Options are described in more detail in the manual page
man 8 mount.cifs
To display the version number of the mount helper:
mount.cifs -V
I have a Windows 7 share I am trying to mount. Is there anything I need to do on my Windows side as well?
Usage: mount.cifs <remotetarget> <dir> -o <options>
Mount the remote target, specified as a UNC name, to a local directory.
Options:
user=<arg>
pass=<arg>
dom=<arg>
Less commonly used options:
credentials=<filename>,gue
sep=<char>,iocharset=<code
mapchars,nomapchars,nolock
directio,nounix,cifsacl,se
Options not needed for servers supporting CIFS Unix extensions
(e.g. unneeded for mounts to most Samba versions):
uid=<uid>,gid=<gid>,dir_mo
Rarely used options:
port=<tcpport>,rsize=<size
dev,nodev,nouser_xattr,net
nointr,ignorecase,noposixp
Options are described in more detail in the manual page
man 8 mount.cifs
To display the version number of the mount helper:
mount.cifs -V
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The mount.cifs program is called by mount if you use the '-t cifs' switch with it.
You say you installed the cifs package... which cifs package[s]?
It's usually installed with samba, since that's the mount type samba uses for shares by default.
try it like this
Once you get it to mount like that, you can put a line in the /etc/fstab file (without the -t and -o switches) and it should mount automatically at every restart.
You say you installed the cifs package... which cifs package[s]?
It's usually installed with samba, since that's the mount type samba uses for shares by default.
try it like this
$ sudo mount -t cifs //192.168.1.1/share /mnt/cifs --verbose -o rw,user=MyUserName,password=MyPassWord
That should give you extra messages (though it looks like you're getting lots of messages already :) at every step of the process.Once you get it to mount like that, you can put a line in the /etc/fstab file (without the -t and -o switches) and it should mount automatically at every restart.
ASKER
Weird - still not mounting.. I installed cifs -utils & verified that samba-commons is installed.. Weird??
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
vyatta@vyatta:/mnt$
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
vyatta@vyatta:/mnt$
Use as below
mount -t cifs //192.168.1.1/share -o username=myusername,passwo rd='mypass word' /your/mount/point
mount -t cifs //192.168.1.1/share -o username=myusername,passwo
ASKER
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)