Android(安卓)- Mount a Samba share
Mount Manager, Cifs manager :Manage your CIFS/NFS network shares
was working, but the command from the terminal was not.
For me anyway, it turned out that I just had to modify the command slightly and it worked.
Try the following command:
mount -o username=guest,password=guest -t cifs //[ipaddress]/[share] /sdcard/cifs/nas
Make sure that the local folder /sdcard/cifs/nas (or your desired equivalent) exists
before running the command or you might get a "file or directory doesn't exist" error.
This document provides help on mounting SMB/CIFS shares under Linux.
All files accessible in a Linux and UNIX systems are arranged in one big tree, the file hierarchy, rooted at /.
These files can be spread out over several devices.
The mount command serves to attach the file system found on some device to the big file tree.
Use the mount command to mount remote SMB/CIFS shares under Linux as follows:
mount -t cifs //192.168.1.1/mySharedFolder -o username=myUser,password=myPassword /mnt/mySharedFolder
Where,
-t cifs: File system type to be mount
-o: are options passed to mount command, in this example I had passed two options.
First argument is the user name (myUser) and second argument is the password (myPassword)
to connect to the remote computer.
//192.168.1.1/mySharedFolder: remote computer and share name
/mnt/mySharedFolder: local mount point directory
Make sure to create/mnt/mySharedFolderfirst.
to connect to the remote computer.
mount.cifs(8) - Linux man page
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer