Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,784,443 Members 47,879 Now Online
XDA Developers Android and Mobile Development Forum

Full NTFS Read Write support for Android (ARM)

Tip us?
 
shardul_seth
Old
(Last edited by shardul_seth; 1st July 2012 at 05:54 PM.)
#1  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1,701
Posts: 1,095
Join Date: Jul 2011
Storage Full NTFS Read Write support for Android (ARM)

I had a hard time searching for full NTFS read-write support for android. This thread is the fruit of that search..

I am posting it here with the hope that it will be useful for many more users of android.

Warning: I will take no responsibility for data loss or corruption that may occur on NTFS drives, though ntfs-3g has been known to be safe.

Q. Why would someone need this?
1. To support NTFS formatted partition(s) of USB-OTG mounted drives
2. To support NTFS partition(s) in microSD card

Q. What are requirements?
1. Fuse driver fuse.ko (compiled for the ROM kernel sources)
2. Latest ntfs-3g binary (see download below)
3. arm powered rooted android device (including SONY, Samsung, Motorola, HTC etc devices)

Q. Steps to get it working?
1. Push fuse.ko to /system or /data, chmod 644, and insmod
2. Push ntfs-3g to /system/xbin/, chmod 755
3. Mount USB OTG device (See script below)
For sdcard, only minor changes required!
4. Unmount as usual with "busybox umount /path/to/mount/"

Download
ntfs-3g
mount script

Update: My USB OTG Helper app has been updated to include this and more. Check it out!!


All-in-one for Sony Xperia 2011 devices -> Here
All-in-one for Samsung Galaxy SII -> Here
Reported working on Samsung Galaxy Note - link - thanks globalthrasher


Touble-shooting!:
For debugging..
1. Download this script and extract to sdcard
2. Connect your drive (pen drive, flash disk, powered HDD)
3. Run the script with script manager
4. Copy the output file from /sdcard/usb_otg_debug.txt and post here


Technical details
---------------------------------------------------------------------------------------------
As the ntfs driver in linux 2.6 kernel does not have write support, the only feasible way was ntfs-3g

Steps:
1. Fuse support (fuse.ko) to be compiled for the respective device from kernel source.
2. The ntfs-3g module was compiled with codesourcery toolchain (arm-none-linux-gnueabi)
Code:
./configure --enable-really-static -host=arm-none-linux-gnueabi
make
ntfs-3g: Main site | More details | Release History
Attached Files
File Type: pdf USBOTG_debug.sh.pdf - [Click for QR Code] (189 Bytes, 863 views)
File Type: pdf USBOTG_debug_v2.sh.pdf - [Click for QR Code] (654 Bytes, 2737 views)
My Apps: [APP] USB OTG Helper (MAJOR UPDATE) | Donate version

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS
The Following 52 Users Say Thank You to shardul_seth For This Useful Post: [ Click to Expand ]
 
shardul_seth
Old
#2  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1,701
Posts: 1,095
Join Date: Jul 2011
NTFS Utils

NTFS Utils reference:
Quote:
NTFS UTILITIES
==============

The ntfsprogs includes utilities for doing all required tasks to NTFS
partitions. In general, just run a utility without any command line
options to display the version number and usage syntax.

ntfsfix - Attempt to fix an NTFS partition and force Windows to check NTFS.

mkntfs - Format a partition with the NTFS filesystem.

ntfslabel - Display/change the label of an NTFS partition.

ntfsundelete - Recover deleted files from an NTFS volume.

ntfsresize - Resize NTFS volumes.

ntfsclone - Efficiently create/restore an image of an NTFS partition.

ntfscluster - Locate the owner of any given sector or cluster on an NTFS partition.

ntfsinfo - Show some information about an NTFS partition or one of the files or directories within it.

ntfsls - List information about files in a directory residing on an NTFS partition.

ntfscat - Concatenate files and print their contents on the standard output.

ntfscp - Overwrite files on an NTFS partition.
My Apps: [APP] USB OTG Helper (MAJOR UPDATE) | Donate version

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS
The Following 12 Users Say Thank You to shardul_seth For This Useful Post: [ Click to Expand ]
 
david279
Old
#3  
david279's Avatar
Senior Member
Thanks Meter 1,556
Posts: 5,071
Join Date: Sep 2007
Location: New Orleans

 
DONATE TO ME
This is great. The fat32 4 GB size limit suck. Hope to get some exFAT support in the future also since exFAT is currently supported by both Mac and Windows 7,8.

Sent from my EVO 4G LTE

------------------------

My G+ Profile

BB PIN: 79807B1C
 
asgari
Old
#4  
Junior Member
Thanks Meter 6
Posts: 7
Join Date: Oct 2006
Quote:
Originally Posted by david279 View Post
This is great. The fat32 4 GB size limit suck. Hope to get some exFAT support in the future also since exFAT is currently supported by both Mac and Windows 7,8.

Sent from my EVO 4G LTE
exFAT is working just fine on my SGS III (XXALE9)
 
chils41
Old
#5  
chils41's Avatar
Senior Member
Thanks Meter 460
Posts: 1,585
Join Date: Mar 2009
Location: Champaign, IL

 
DONATE TO ME
Thnx Shardul,
This is great.
Not into Phones any more!
now into AirGuns!

zech out the AirGun Forum I am working on:

http://www.AmatureAirGunner.com/Forum
The Following User Says Thank You to chils41 For This Useful Post: [ Click to Expand ]
 
Fears
Old
#6  
Senior Member
Thanks Meter 31
Posts: 115
Join Date: Feb 2010
Location: Besanšon
This is great news, imma give it some time before trying it though !
 
BlackBull85
Old
#7  
Junior Member
Thanks Meter 1
Posts: 27
Join Date: Oct 2007
Will try it tomorrow
 
daneel_
Old
(Last edited by daneel_; 26th June 2012 at 11:55 AM.)
#8  
Member
Thanks Meter 4
Posts: 39
Join Date: Apr 2009
Great news. I was able to make ntfs work with my SG2 and now i hope to do the same with my sg3. Thanks!
 
ImgBurn
Old
#9  
ImgBurn's Avatar
Senior Member
Thanks Meter 119
Posts: 172
Join Date: Aug 2011
Location: West Of Phily South Jersey
This is indeed awesome news. Thanks for the head's-up.

Ciao
If this was helpful, be sure to press theThanks button!
Hit THANKS, even if I didn't help you.. It Make's Me



Phone: HTC Inc 2, Moto Droid X2 & Samsung Galaxy S III
(Droid Bionic)------> Retired

These aren't the droids you're looking for.
The Following User Says Thank You to ImgBurn For This Useful Post: [ Click to Expand ]
 
dodoik
Old
#10  
dodoik's Avatar
Senior Member
Thanks Meter 166
Posts: 250
Join Date: Dec 2011
Location: pekanbaru
Great news....
Gonna try it soon...my galaxy fit would have external hardisk from now

Is it posible to include it when i compile with my own kernel rather than push the fuse.ko directly to the system?

Sorry for my bad english...

Sent from my GT-S5670 using xda premium

Tags
exfat, ntfs
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes