Post Reply

Full NTFS Read Write support for Android (ARM)

21st June 2012, 06:07 PM   |  #1  
shardul_seth's Avatar
OP Senior Member
Thanks Meter: 1,702
 
1,096 posts
Join Date:Joined: Jul 2011
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, 890 views)
File Type: pdf USBOTG_debug_v2.sh.pdf - [Click for QR Code] (654 Bytes, 2823 views)
Last edited by shardul_seth; 1st July 2012 at 05:54 PM.
The Following 52 Users Say Thank You to shardul_seth For This Useful Post: [ View ]
21st June 2012, 06:08 PM   |  #2  
shardul_seth's Avatar
OP Senior Member
Thanks Meter: 1,702
 
1,096 posts
Join Date:Joined: 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.

The Following 12 Users Say Thank You to shardul_seth For This Useful Post: [ View ]
26th June 2012, 01:57 AM   |  #3  
david279's Avatar
Senior Member
Flag New Orleans
Thanks Meter: 1,558
 
5,072 posts
Join Date:Joined: Sep 2007
Donate to Me
More
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
26th June 2012, 03:15 AM   |  #4  
Junior Member
Thanks Meter: 6
 
7 posts
Join Date:Joined: Oct 2006
Quote:
Originally Posted by david279

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)
26th June 2012, 04:46 AM   |  #5  
chils41's Avatar
Senior Member
Flag Champaign, IL
Thanks Meter: 460
 
1,585 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Thnx Shardul,
This is great.
The Following User Says Thank You to chils41 For This Useful Post: [ View ]
26th June 2012, 10:10 AM   |  #6  
Senior Member
Flag Besançon
Thanks Meter: 31
 
115 posts
Join Date:Joined: Feb 2010
More
This is great news, imma give it some time before trying it though !
26th June 2012, 10:24 AM   |  #7  
Junior Member
Thanks Meter: 1
 
27 posts
Join Date:Joined: Oct 2007
More
Will try it tomorrow
26th June 2012, 11:52 AM   |  #8  
Member
Thanks Meter: 4
 
39 posts
Join Date:Joined: 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!
Last edited by daneel_; 26th June 2012 at 11:55 AM.
26th June 2012, 03:07 PM   |  #9  
ImgBurn's Avatar
Senior Member
Flag West Of Phily South Jersey
Thanks Meter: 120
 
172 posts
Join Date:Joined: Aug 2011
More
This is indeed awesome news. Thanks for the head's-up.

Ciao
The Following User Says Thank You to ImgBurn For This Useful Post: [ View ]
27th June 2012, 03:21 AM   |  #10  
dodoik's Avatar
Senior Member
Flag pekanbaru
Thanks Meter: 166
 
250 posts
Join Date:Joined: Dec 2011
More
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

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank