Format:
Mount-t CIFS//ip/share-folder/mnt-point-o Username=your-username,passwd=your-password
Share the F partition (or a folder) under Windows (192.168.230.1) to the user (password is password), make sure that you enter \\192.168.230.1 in CMD to see the shared folder
[[email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/-o username=user,passwd=password[[email protected] m nt]# df-hfilesystem Size used Avail use% mounted on/dev/sda2 18G 2.5G 15G 15%/tmpfs 137M 0 137M 0%/dev/shm/dev/sda1 291M 32M 244M 12%/boot.host:/ 40G 28G 13G 70%/mnt/hgfs//192.168.230.1/f 3.9G 48M 3.8G 2%/mnt/share
Common errors:
1. The command line does not contain a user name and password
[Email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/
Mount:wrong fs type, bad option, bad superblock on//192.168.230.1/f,
Missing codepage or helper program, or other error
(for several filesystems (e.g. NFS, CIFS) might
Need a/sbin/mount.<type> Helper Program)
In some cases useful info are found in Syslog-try
DMESG | Tail or so
[Email protected] mnt]#DMESG | tail
CIFS Vfs:cifs_mount failed W/return code = 22
2. The command line does not contain a password
[Email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/-o username=***
Mount:block device//192.168.230.1/f is write-protected, mounting read-only
Mount:cannot mount block device//192.168.230.1/f read-only
[Email protected] mnt]# DMESG | tail
Status code returned 0XC000006D nt_status_logon_failure
CIFS vfs:send Error in Sesssetup = 13
CIFS Vfs:cifs_mount failed W/return code = 13