Post Reply

[GUIDE] NTFS READ/WRITE for SDCARD and USB OTG ! UPDATED 21-JAN-2012 !!!

29th December 2011, 09:46 AM   |  #1  
PROTOCHIP's Avatar
OP Senior Member
Thanks Meter: 230
 
618 posts
Join Date:Joined: Nov 2005
Dear Friends,

Quote:
Originally Posted by angelom

I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:

su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb

And now the usb stick can be read and written


AbyssNote Kernel developer " angelom " pointed us solution for read/write ntfs for formatted usb stick and i apply it for sdcard and both works flawlessly !!!! Thanks angelom...

Some Tests:

** After mounting sdcard as read/write ntfs, camera app also can be able to record photos and videos to ntfs...

** Watching movies over 4 gb size is not a problem anymore. 1080p Mkvs with no lag at all...

** Most of the 3rd Party apps recognize ntfs formatted sdcard like it is fat32...

** Stock Video Player dont see NTFS so i use BSPLAYER LITE ( best for mkv on note ) OR MX VIDEO PLAYER !!! ( U can use ES file explorer to play videos with stock video player )

** Stock app like gallery dont see the files in ntfs sdcard... Quickpic app also doesnt work with ntfs formatted sd card...
PERFECT VIEWER CAN DISPLAY IMAGES AVAILABLE FROM NTFS SDCARD.... ( THANKS BROTBUEXE)

** You can use free apps like MyMusicOn or MixZing Basic to play music files which are in ntfs formatted sdcard...

** We have to repeat steps 4 and 5 after every reboot. Gscript lite app helps here so much with its shortcuts...

** We have to repeat steps 4 and 5 after using usb mass storage mode...

** Ntfs formatted sdcard also is recognized by windows when Gnote is using usb mass storage mode...

** I am getting very low transfer speed for small files in windows when Gnote is using usb mass storage mode... for big files it is as fast as Fat32...


My config:

MySAM ed.1 Rom
Abyss V2.5 Kernel
32 gb class4 SDCard

How to: READ/WRITE NTFS

1- Flash Abyssnote Kernel - Latest Version : http://forum.xda-developers.com/show....php?t=1362424
2- Format sdcard to ntfs in windows and plug it to phone.
3- Power on phone and GNote will recognize ntfs formatted sdcard as blank sd.
4- Download ntfs-3g.zip from attachment...
4- Extract zip and copy " ntfs-3g " to /system/bin/
5- Reboot
6- Install Terminal Emulator from market.
7- Enter these lines in terminal emulator. ( insmod commands are optional for abyssnote kernel since they are loaded automatically but for other kernels u have to use insmod commands )

a- To mount ntfs formatted sdcard

su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/mmcblk1p1 /mnt/sdcard/external_sd
vold

b- To mount ntfs formatted usb hdd or usb stick

su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb
vold

or create a newfolder named usb in internal sdcard

su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/sdcard/usb
vold

5- now goto settings-storage and select mount sdcard ( only for sdcard not usb stick )

6- now your ntfs formatted sdcard or usb memory stick should be recognized by system as read/write

7- After every reboot u have to repeat steps 4 and 5 !!!

8- To unmount usb hdd:

a- Run Terminal Emulator
b- Enter This line:

su

umount -l -f /mnt/usb

umount -l -f /mnt/sdcard/usb

c- now your usb hdd is unmounted.
d- You can safely remove it from otg cable.


** You can download "Gscript Lite" from market and create these scripts as shortcuts in your home screen so u dont have to enter line every time after reboot... ( Market - Free )

** Use "Autostart" app or "script manager" app to run script on boot... ( Market - Free )

** Use "elixir 2 widgets" app or " any cut " app to create a shortcut directly on home screen to settings-storage... ( Market - Free )




*** UPDATE 10-JAN-2012

I realized that after executing ntfs-3g , our ntfs formatted card is automatically mounted by the system even it says Blank SD in notification page... No need to go to settings-storage-mount sd card...

So if the blank sd message in noti. doesnt bother us, then no need to look for how to mount ntfs sd automatically... It is already mounted...

I use script manager to load the ntfs-3g script during boot and thats it... After boot i use my ntfs formatted card...



*** UPDATE 21-JAN-2012

While trying to get rid of blank sd noti, after running vold command, noti has gone, surprisingly...

No more " Blank SDCARD " or " Blank Usb Storage " in the notification bar.

Simply add " vold " command to end of script
...

After reboot "blank sd" noti will gone...

vold command remounts all storage.

Dont bother even settings-storage shows sdcard as unavailable since it is already mounted and recognized by the system...


Hope this helps,

THANKS GOES TO angelom, The_Steph, brotbuexe and to all who i forgot to mention....

Kind Regards,


ONLY AMIGA MAKES IT POSSIBLE !!!
Attached Files
File Type: zip ntfs-3g.zip - [Click for QR Code] (920.3 KB, 2520 views)
Last edited by PROTOCHIP; 3rd February 2012 at 04:19 PM.
The Following 25 Users Say Thank You to PROTOCHIP For This Useful Post: [ View ]
29th December 2011, 10:36 AM   |  #2  
PROTOCHIP's Avatar
OP Senior Member
Thanks Meter: 230
 
618 posts
Join Date:Joined: Nov 2005
Dear Friends,

Here is some info for read/write ntfs by fuse.ko module and ntfs-3g driver for GalaxyS2 but they failed to run in G-note when i try in terminal emulator...

http://forum.xda-developers.com/show...4&postcount=23

I hope someone may recompile fuse.ko for G-Note so we can use ntfs as read/write ... I dont know whether kernels has to be patched for fuse.ko support or not...


********** OLD INFO for READONLY NTFS as REFERANCE - OUTDATED !!!

I have managed to read ntfs for both ex.sdcard ( tested ) and usb otg devices ( not tested )... Needs ROOT ! Ntfs Read Only !

I wish some devs recompile ntfs.ko module as read/write so we can use all time ntfs formatted ex.sdcards...

Sdcard method is tested by me and i have watched 10 gb " last samurai " 1080P mkv movie with mx player flawlessly...

I dont have a usb otg cable so i couldnt test usb hdd or usb stick but i guess they will work, too. ( your feedback is needed here )

All Info is collected from xda forums. Combined and tested by me for G-Note...

My config:

MySAM ed.1 Rom
Abyss V2.5 Kernel
32 gb SDCard

How to: READONLY NTFS

1- Format sdcard to ntfs in windows and plug it to phone.
2- Power on phone and GNote will recognize ntfs formatted sdcard as blank sd.
3- Install Terminal Emulator from market.
4- Enter these lines in terminal emulator.

a- To mount ntfs formatted sdcard

su

insmod /lib/modules/ntfs.ko
mount -o umask=000 -t ntfs /dev/block/mmcblk1p1 /mnt/sdcard/external_sd

b- To mount ntfs formatted usb hdd or usb stick

su

insmod /lib/modules/ntfs.ko
mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usb

5- now goto settings-storage and select mount sdcard

6- now your ntfs formatted sdcard should be recognized by system as external_sd but READONLY. You can play full size mkv movies...




To unmount usb hdd:

1- Run Terminal Emulator
2- Enter This line:

su

umount -l -f /mnt/usb

3- now your usb hdd is unmounted.
4- You can safely remove it from otg cable.


** You can download "Gscript Lite" from market and create these scripts as shortcuts in your home screen...

Kind Regards,
Last edited by PROTOCHIP; 30th December 2011 at 07:56 AM.
The Following 2 Users Say Thank You to PROTOCHIP For This Useful Post: [ View ]
29th December 2011, 10:56 AM   |  #3  
Senior Member
Flag Paris
Thanks Meter: 278
 
758 posts
Join Date:Joined: Mar 2007
More
PROTOCHIP,

I carefully read your posts but I don't understand where ntfs.ko comes from. I used MySam Ed and AbyssNote kernel (I am on KL7 now) and I did not manage to understand where that ntfs.ko modules is. I saw your posts with angelom on AbyssNote thread but the question still remains.

Can you explain where it is from and if, for instance I could use it with another kernels ?

As I have ordered a 64 micro SDXC card for my toy, I really expect to be able to see films in HD with being bothered by file size. And if it is possible to have a read/write access to the card, it would be really amazing.

Thanks in advance for the upcoming info on the subject.
29th December 2011, 11:12 AM   |  #4  
PROTOCHIP's Avatar
OP Senior Member
Thanks Meter: 230
 
618 posts
Join Date:Joined: Nov 2005
Dear The_Steph,

Actually i dont know where the file comes from but after flashing MySAM rom to phone, ntfs.ko is located in /lib/modules/ ... In case it is needed, i have enclosed the file here ... You can copy it to /lib/modules/ and try with other kernels... I tested it by Abyss but for ChainFire kernel and FM Kernel, i didnt test it...

My sdcard is class4 32 gb and watching Last Samurai as 1080p mkv from ntfs formatted sdcard is amazing... The mkv file is around 10.2 gb...

For ntfs read/write ; there is another module called fuse.ko and driver called ntfs-3g but as far as i know these modules have to be recompiled for our kernels...


Hope this helps,

Kind Regards,
Attached Files
File Type: zip ntfsko.zip - [Click for QR Code] (70.1 KB, 423 views)
Last edited by PROTOCHIP; 29th December 2011 at 11:21 AM.
29th December 2011, 02:01 PM   |  #5  
Senior Member
Flag Paris
Thanks Meter: 278
 
758 posts
Join Date:Joined: Mar 2007
More
PROTOCHIP,

It is not in stock KL7 ROM and does not seems to be in MySam too. I read the post you linked. I understand now a bit more.

As I am planning to move to XtraLiteRom from Cassie today, I will try to do some tests tomorrow using the ntfs.ko and above 4GB files. I'll reports afterwards.

As you stated, maybe read/write library can be recompiled for the SGN.

It it is possible it would be awesome. Hopefully, a master in modules compilation will see this thread

Edit: I hope I helped a bit posting reference to this thread in RiverSource kernel thread.
Last edited by The_Steph; 29th December 2011 at 02:16 PM. Reason: Post in RiverSource kernel thread
The Following User Says Thank You to The_Steph For This Useful Post: [ View ]
29th December 2011, 06:01 PM   |  #6  
Jip-Hop's Avatar
Member
Flag Amsterdam
Thanks Meter: 31
 
96 posts
Join Date:Joined: Nov 2010
More
Really looking forward to development on this matter.
29th December 2011, 08:27 PM   |  #7  
Senior Member
Thanks Meter: 929
 
582 posts
Join Date:Joined: May 2006
More
I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:

su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb

And now the usb stick can be read and written
Last edited by angelom; 29th December 2011 at 08:39 PM.
The Following 3 Users Say Thank You to angelom For This Useful Post: [ View ]
30th December 2011, 04:18 AM   |  #8  
PROTOCHIP's Avatar
OP Senior Member
Thanks Meter: 230
 
618 posts
Join Date:Joined: Nov 2005
Quote:
Originally Posted by angelom

I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:

su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb

And now the usb stick can be read and written

Dear angelom,

Thats great... Gonna try it again... Thanks...


EDIT : It is working... THANKS... GUIDE AND TOPIC UPDATED !!!
Kind regards,

Sent from my GT-N7000 using xda premium
Last edited by PROTOCHIP; 30th December 2011 at 05:29 AM.
30th December 2011, 10:24 AM   |  #9  
Senior Member
Flag Paris
Thanks Meter: 278
 
758 posts
Join Date:Joined: Mar 2007
More
As planned, I did some tests this morning with my Cassie's XtraLiteROM v5 (stock KL7 kernel) as I have a spare 16GB micro SDHC card.

I formatted my card in NTFS and put it in the slot. Rebooted my SGN and got the message as my SD Card is empty. So i plugged my SGN to my PC to see what was wrong with libraires.

First point, as I use Multimount SDCard, my internal memory and external SD card are automatically mounted when my SGN is connected via USB. Which make me realised that even if librairies were not working, the NTFS formatted card can be read/written by Windows even if the SGN is not able to read it.

Once that seen, I tried to do your step by step tutorial (which was not working because I initially forgot fuse.ko in /lib/modules) and got the following error message:
insmod: init_module '/lib/modules/fuse.ko' failed (Exec format error).

So I created a /sdcard/ntfs-3g/ folder and put fuse.ko in it as I saw on another thread but it did not work. I rebooted my SGN and found that what was working the first time (automatic mount of SD cards) did not work anymore. Strange.

Looking for clues on Google, it seems that fuse.ko needs to be compiled for the kernel magic number to properly start (CL823206 for XXKL7). So, two cases: we are lucky that the kernel magic number was the same as angelom base (what a luck), or angelom compiled the fuse.ko for his kernel magic number (likely).

So my question is now, did angelom compiled the fuse.ko file for his kernel?

Next steps for me are to move my KL7 kernel to angelom's and to automate the SDCard mounting process (I'm pretty sure a script in init.d could do the trick).
Last edited by The_Steph; 30th December 2011 at 10:37 AM.
30th December 2011, 11:21 AM   |  #10  
PROTOCHIP's Avatar
OP Senior Member
Thanks Meter: 230
 
618 posts
Join Date:Joined: Nov 2005
Dear The_Steph,

Pls Follow the steps in the updated first post and the right files are also enclosed in the post. I guess u have to flash Abyss kernel... My Sdcard is now ntfs and even the camera app can read and write to it... Just woow... Now Watching 1080p Avatar movie... show off time !!!

Kind Regards,

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Note GT-N7000 Android Development by ThreadRank