[root@kvm-server ~]# mount -o username=user01,password=1234567890 //192.168.31.20/share /mnt/nas
Couldn't chdir to /mnt/nas: No such file or directory
[root@kvm-server ~]#
[root@kvm-server ~]# mkdir /mnt/nas
[root@kvm-server ~]# mount -o username=user01,password=1234567890 //192.168.31.20/share /mnt/nas
[root@kvm-server ~]# df -TH
文件系统 类型 容量 已用 可用 已用% 挂载点
/dev/mapper/centos-root xfs 48G 4.1G 44G 9% /
devtmpfs devtmpfs 4.1G 0 4.1G 0% /dev
tmpfs tmpfs 4.2G 0 4.2G 0% /dev/shm
tmpfs tmpfs 4.2G 9.4M 4.1G 1% /run
tmpfs tmpfs 4.2G 0 4.2G 0% /sys/fs/cgroup
/dev/sda1 xfs 1.1G 189M 876M 18% /boot
tmpfs tmpfs 821M 13k 821M 1% /run/user/42
tmpfs tmpfs 821M 33k 821M 1% /run/user/0
/dev/sr0 iso9660 4.6G 4.6G 0 100% /run/media/root/CentOS 7 x86_64
//192.168.31.20/share cifs 7.8T 4.0T 3.9T 51% /mnt/nas
[root@kvm-server ~]# cd /mnt/nas/
[root@kvm-server nas]# ll
总用量 1329600
drwxr-xr-x 2 root root 0 1月 19 11:43 501
drwxr-xr-x 2 root root 0 10月 6 2017 aix
drwxr-xr-x 2 root root 0 1月 19 13:16 doc
drwxr-xr-x 2 root root 0 9月 20 23:12 HP-UX
drwxr-xr-x 2 root root 0 1月 19 11:52 ISO
来源:oschina
链接:https://my.oschina.net/u/4397620/blog/3619300