Wednesday, May 4, 2016

How to mount cifs shares via Terminal on CM13?

Hi,

I am using CM13 with ElementalX and I wanna mount a Samba share on my local network. I wanna use this with Tasker in combination with EncFS, thats why I need a mountpoint in my filesystem.
I've already tried some combinations of "su --mount-master", "busybox" and "mount" commands, but all I can get is "Invalid Argument" or "Interrupted system call". Changing SELinux mode doesn't help either and Apps like CIFSManager or Mount Manager also don't work.

Here are the two error messages I get everytime. No matter if i change the mountpoint (e.g. to sdcard) or the SELinux mode.

Code:

su --mount-master -c "busybox mount -o username=USER,password=PASSWORD -t cifs //192.168.xxx.xxx/share /mnt/smb/nas
mount: mounting //192.168.xxx.xxx/share on /mnt/smb/nas failed: Invalid argument

as soon as I remove the password, the error is another one.

Code:

su --mount-master -c "busybox mount -o username=USER -t cifs //192.168.xxx.xxx/share /mnt/smb/nas
mount: mounting //192.168.xxx.xxx/share on /mnt/smb/nas failed: Interrupted system call

Did somebody manage to mount cifs shares on CM13 or Android 6 in general, using a Terminal command? If yes, whats the trick?


witti


from xda-developers http://ift.tt/1W8qjDm
via IFTTT

No comments:

Post a Comment