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/mySharedFolder first.

to connect to the remote computer.

mount.cifs(8) - Linux man page

时间: 2024-08-29 15:49:09

Android - Mount a Samba share的相关文章

linux 下 用mount 挂载 samba 以及Linux 开机自动挂载 samba  

linux 下 用mount 挂载 samba 以及Linux 开机自动挂载 samba 一.挂载匿名samba#mount -t cifs //192.168.2.2/share /151.2_share   -o guest#ls /151.2_share 二.挂载非匿名samba #mount -t cifs //192.168.2.2/share /151.2_share -o   username=samba,password=samba,iocharset=utf-8#ls /151

How to mount a NFS share?

Assume you have a NFS share /data/shares/music, at server: 192.168.1.5 You can mount the NFS share from another system at /mnt/music (create this directory first), with the command below sudo mount 192.168.1.5:/data/shares/music /mnt/music 转自: http:/

CentOS(RedHat) 6.2 Samba share权限拒绝访问

在实现<CentOS(RedHat) 6.2下Samba配置>的过程中,发现CentOS 6.2的Samba share总是没有权限写文件,已经试过在Windows XP/Windows 2003和2台CentOS.当然已经在CentOS端给了所有人完整的权限.而在RH 5.0系列是没有这个问题的. 网上找了一下,参考以下2篇文章: Windows 7 map network drive to Centos Linux samba share gives “Access Denied” 试了一

Linux使用mount挂载samba共享文件夹

挂载smb的目录,使用读写644权限 mount -t cifs -o "rw,dir_mode=0644,file_mode=0644,username=username,password=yourpassword" //192.168.1.100/yourshare_folder_name /usr/local/your_server_folder 原文地址:https://www.cnblogs.com/faberbeta/p/samba003.html

How to mount remote windows partition (windows share) under Linux

http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html  by nixCraft on April 26, 2004 · 64 comments· LAST UPDATED August 3, 2007 in CentOS, File system, Howto All files accessible in a Linux (and UNIX) syst

关于mac android studio 与svn 解除关联后 无法再次share (Subversion) 的解决办法

Android studio 把工程share 到 svn 上面,可是一不小心忘了 ignore files 的设置,结果没办法,把svn 上的删掉再重新share 一次,先接触本地代码与svn 的关联,两种方法,(1)android sutio 的设置按钮,找到version control 大类,用鼠标点击这一栏,旁变白色区域,有个project 最右边对应Subversion,白色区域左下角有个减号,点击也可以.(2)从android 切换到project目录,在.idea 文件夹下有个v

centos samba/squid 配置 第二十七节课

centos  samba/squid 配置  第二十七节课 上半节课 下半节课 一. samba配置1. 什么是sambaSamba服务类似于windows上的共享功能,可以实现在Linux上共享文件,windows上访问,当然在Linux上也可以访问到.是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务. 注意:smb侦听端口:139  和  445  端口 2. 安装配置samba yum install -y samba samb

samba 安装配置

安装: yum install -y samba   samba-client 2.编辑配置文件 vim /etc/samba/smb.conf [global]         workgroup = JIUGE         server string = Samba Server Version %v         log file = /var/log/samba/log.%m         max log size = 50         security = user    

centos 6.4配置samba+ldap认证

参考http://bbs.chinaunix.net/thread-958689-1-1.html 1. 什么是samba Samba服务类似于windows上的共享功能,可以实现在Linux上共享文件,windows上访问,当然在Linux上也可以访问到. 是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务. 2.安装配置samba [[email protected] ~]# yum install samba samba-clien