Transferred from: http://blog.163.com/sg_liao/blog/static/29577083200942811445981/
One, mount the shared directory
sudo mount-t cifs-o Username=liaoxiaohui,password=l23456,iocharset=utf8//server/share/mnt
sudo: Toggle Administrator Execution
Mount: Mount command
-T CIFS CIFS is the shared protocol for Windows,
-O: User information username= user name, password= password (note with, separate user name and password) in the password later there is a, separated
Iocharset=utf8: This parameter allows the mounted Chinese to be displayed correctly.
Server: Name or IP address
/share: Shared directory Name
/MNT: Mounting to a local directory
Two, Mount partitions (FAT and NTFS)
sudo mount-t vfat-o iocharset=utf8/dev/sda1/mnt
sudo mount-t ntfs-o iocharset=utf8/dev/sda1/mnt
-T VFAT:FAT format partition
-T NTFS:NTFS format partition
/DEV/SDA1: First partition on the first SCSI hard drive
Mount mount Windows partitions and directories