sudo mount -t cifs //192.168.0.100/share /mnt -o username=username, password=password
开机自动挂载
ace@ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=b02cd3ec-4994-41b1-8bf4-1a4105f30a46 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=ECCC-C137 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
//192.168.2.99/share /mnt cifs x-systemd.automount,noauto,username=username,password=password,iocharset=utf8,x-systemd.device-timeout=20s 0 0