Skip to content

munjeni/ntfs_android

Repository files navigation

How to:

 - you need ntfs-3g binary, you can get them on XDA Developers forum, just search for them!
 - (this) sdcardfs kernel module

How to install:
 - put sdcardfs.ko into /system/lib/modules folder and if you need these module insmoded on boot time, simple put insmod line to the install-recovery.sh script located under /system/etc folder
 - ntfsmount script you can put to the /system/bin folder and chmod them to 755

Script (aka ntfsmount):
----------------------------------------
#!/system/bin/sh

option="${1}"

case "$option" in
  "mount")
    echo "ntfs volume is mounted and selinux is permisive"
    setenforce 0
    ntfs-3g -o rw,uid=1023,gid=1023,fmask=0007,dmask=0007,umask=0007,permissions,allow_other,no_def_opts,nls=utf8 /dev/block/sda1 /mnt/media_rw/usbdisk
    mount -t sdcardfs -o rw,nosuid,nodev,noatime,nodiratime,uid=1023,gid=1023,derive=unified /mnt/media_rw/usbdisk /storage/usbdisk
    ;;
  "umount")
    echo "ntfs volume is unmounted and selinux is enforced"
    umount /storage/usbdisk
    umount /mnt/media_rw/usbdisk
    setenforce 1
    ;;
  *)
    echo "usage: `basename ${0}` [mount] | [umount]" 
    exit 1    
    ;;
esac
------------------------------------------------------------

How to mount/umount :
 - to mount: ntfsmount mount
 - to umount: ntfsmount umount

Enjoy! :)

About

support for ntfs filesystem on android - require ntfs-3g binary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages