Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

How to mount a shared folder on android 4.4.2 QS3.1 Minix X7

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to mount a shared folder on android 4.4.2 QS3.1 Minix X7

    Need help using cifsmanager on QS 3.1

    I am trying to mount a shared folder using cifsmanager but I keep getting "invalid argument" error. My setup is as follows:

    share path: smb://10.0.0.9/sharename/
    mount point: /mnt/cifs/
    username: guest
    password:
    options: none

    I can see the cifs folder where it should be, but I doesn't work, I keep getting the error.

    Any help will be appreciated.

    #2
    CIFS doesn't work anymore with KitKat.

    Comment


      #3
      It should work. IIRC the current mount apps do not handle KitKat too well. Try adding it manually via init.d

      Code:
      #!/system/bin/sh
      
      # Make sure networking is up before mounting
      while :
      do
         check_if_up=($(netcfg | grep -e eth0 -e wlan0 | busybox awk '{print $2}'))
         if [[ (${check_if_up[0]} = UP) || (${check_if_up[1]} = UP) ]]; then
          break
         fi
         sleep 1
      done
      sleep 1
      
      # Switch rootfs to read / write
      # Be careful after this. Misplaced commands may
      # brick your system
      busybox mount -o rw,remount /
      
      # Create Mount Points
      mkdir /data/media/0/mov
      mkdir /data/media/0/e
      
      # Mount shares
      busybox mount -t cifs -o username=XXX,password=YYY,iocharset=utf8,noserverino,nounix,file_mode=0777,dir_mode=0777 //192.168.178.11/02_Movies /data/media/0/mov
      busybox mount -t cifs -o username=XXX,password=YYY,iocharset=utf8,noserverino,nounix,file_mode=0777,dir_mode=0777 //192.168.178.11/E /data/media/0/e
      
      # Switch rootfs to read only
      busybox mount -o ro,remount /
      Add an init.d like the above example, replacing username, password, server addresses and mount-points to match your needs.

      For KitKat mount your folders in a location like /data/media/0/ and not the traditional ones like
      • /mnt/shell/emulated/
      • /sdcard/
      • /storage/

      as they are likely to fail due to KitKat's new security model.
      Last edited by SoulStyle; 11-03-2014, 06:36.

      Comment

      Working...
      X