NOTE: Currently only working on Android 4.1.2. I'll look for a workaround when my new OTG cables come in.
So I purchased the 8 GB Nexus 7 and began to regret not getting the 16 GB version. These 1-3 GB games are killing me. I purchased The Bard's Tale (great game btw) and the TegraHD version requires 3.5 GB! I already had a USB OTG cable so I began looking for a way to store the game data on the USB drive and mount it to the data directory on the sdcard.
You will need:
Compatible USB OTG Cable
Paragon NTFS&HFS+
GScript Lite
Compatible kernel (ntfs read/write support)
I've tested this on ParanoidAndroid and SGT7 but it should work on any rom.
Note: Each game requires a game data folder on the USB drive that matches my script (or you can create your own folder and edit the script). You will also need a blank folder on the sdcard (/sdcard/android/data/GAMEFOLDER_from_Script - You have to use this folder name). Once this folder from the USB drive has been mounted to the correct position on the SDCARD, the game data will download to the USB drive.
Video: http://www.youtube.com/watch?v=4dWqLjnCSBg&feature=youtube_gdata
NTFS USB Drive STEPS:
Plug in USB drive to Nexus 7 and unmount if the system automounts the drive (Settings - Storage - Unmount shared storage)
Open Paragon NTFS&HFS+ and mount the USB drive using the automatic mount point setting (/storage/usbdisk).
Open GScript Lite and run a game script to bind mount the game data folder to the sdcard.
Enjoy your game and extra space!
When done, unmount with Paragon NTFS&HFS+.
FAT32 USB Drive STEPS:
Plug in USB drive to Nexus 7, it should be automounted by the system to the default location: /storage/usbdisk
Open GScript Lite and run a game script to bind mount the game data folder to the sdcard.
Enjoy your game and extra space!
When done, unmount via the system: (Settings - Storage - Unmount shared storage)
Assuming your USB drive is mounted on /storage/usbdisk/ and you have created the empty game data folder on the sdcard (/sdcard/android/data/GAMEFOLDER_from_Script), the following scripts should work:
Code:
Script for Horn:
mount -o bind /storage/usbdisk/Horn /sdcard/Android/obb/com.Phosphor.Horn.Paid
Script for Bard's Tale:
mount -o bind /storage/usbdisk/BardsTale /sdcard/Android/data/com.inxile.BardTale
Script for Max Payne:
mount -o bind /storage/usbdisk/MaxPayne /sdcard/Android/data/com.rockstar.maxpayne
Script for Dead Trigger (gave me an error the first time opened but worked fine afterwards):
mount -o bind /storage/usbdisk/DeadTrigger /sdcard/Android/obb/com.madfingergames.deadtrigger
Script for Shadow Gun THD:
mount -o bind /storage/usbdisk/shadowgun /sdcard/Android/data/com.madfingergames.shadowgun_thd
Script for Asphalt 7:
mount -o bind /storage/usbdisk/Asphalt7 /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM
Script for The Dark Knight Rises:
mount -o bind /storage/usbdisk/TDKR /sdcard/Android/obb/com.gameloft.android.ANMP.GloftKRHM
Script for Mass Effect Infiltrator:
mount -o bind /storage/usbdisk/MassEffect /sdcard/Android/data/com.ea.games.meinfiltrator_na
I'll add more scripts as time permits.
Alternate Method (No scripts needed but you loose SDCard when USB drive is mounted):
http://forum.xda-developers.com/showthread.php?t=1865094
Have you tried running horn or dead trigger from the flash drive? I'm just curious if the drive is fast enough to play high end games off of or if it lags?
kieso said:
Have you tried running horn or dead trigger from the flash drive? I'm just curious if the drive is fast enough to play high end games off of or if it lags?
Click to expand...
Click to collapse
I'll see about moving dead trigger over. I haven't purchased horn yet due to lack of space but may consider buying it now.
(BTW the Bard's Tale is pretty graphics intensive and it runs fine)
kieso said:
Have you tried running horn or dead trigger from the flash drive? I'm just curious if the drive is fast enough to play high end games off of or if it lags?
Click to expand...
Click to collapse
Dead Trigger works.. added script.
I'm getting a black screen followed by a close on Mass Effect... Going to try internal memory to make sure it's not the rom.
Sent from my SGH-T989 using xda app-developers app
I get the message 'no NTFS of HTS+/HFSX partitions found' when opening the app
On paranoid android 2.15
life02 said:
I'm getting a black screen followed by a close on Mass Effect... Going to try internal memory to make sure it's not the rom.
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
I had the same problem with mass effect....just turn on internet and use it...game will start. You might need to delete 1 more file...but 1st see if it runs
Please press thanks if it works.
Sent from my K-Touch W619 using xda premium
Jordanooo said:
I get the message 'no NTFS of HTS+/HFSX partitions found' when opening the app
On paranoid android 2.15
Click to expand...
Click to collapse
Did you unmount via storage first? Is your USB drive formatted with NTFS?
life02 said:
Did you unmount via storage first? Is your USB drive formatted with NTFS?
Click to expand...
Click to collapse
...oops haha. Forgot about formatting
Jordanooo said:
...oops haha. Forgot about formatting
Click to expand...
Click to collapse
Let me know if it works for you when you get the drive ready.
Kudos to you sir this is briliant i've got the 16gb and i've got a ton of games and im down to 4GB's this should come in handy when more 1gb games come out that interest me.
Directory bind works best for this and free, bards tale works, as does GTA/FIFA/spiderman
Sent from my Nexus 7 using Tapatalk 2
karl0ss said:
Directory bind works best for this and free, bards tale works, as does GTA/FIFA/spiderman
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Yeah that's pretty much what I'm doing with GScript (directory bind mounts from one device to another)... still have to unmount via Storage and use Paragon if you want to use NTFS drives.
Got usb mounted and had a go at the script, but keeps saying directory not found
Could you possibly do a video?
Jordanooo said:
Got usb mounted and had a go at the script, but keeps saying directory not found
Could you possibly do a video?
Click to expand...
Click to collapse
Yeah I'll see if I can't throw one together tonight/this weekend. What game are you trying?
Note: Each game requires a game data folder on the USB drive that matches my script (or you can create your own folder and edit the script). You will also need a blank folder on the sdcard (/sdcard/android/data/GAMEFOLDER_from_Script - You have to use this folder name). Once this folder from the USB drive has been mounted to the correct position on the SDCARD, the game data will download to the USB drive.
life02 said:
So I purchased the 8 GB Nexus 7 and began to regret not getting the 16 GB version. These 1-3 GB games are killing me. I purchased The Bard's Tale (great game btw) and the TegraHD version requires 3.5 GB! I already had a USB OTG cable so I began looking for a way to store the game data on the USB drive and mount it to the data directory on the sdcard.
You will need:
Compatible USB OTG Cable
Paragon NTFS&HFS+
GScript Lite
Compatible kernel (ntfs read/write support)
I've tested this on ParanoidAndroid and SGT7 but it should work on any rom.
Note: Each game requires a game data folder on the USB drive that matches my script (or you can create your own folder and edit the script). You will also need a blank folder on the sdcard (/sdcard/android/data/GAMEFOLDER_from_Script - You have to use this folder name). Once this folder from the USB drive has been mounted to the correct position on the SDCARD, the game data will download to the USB drive.
STEPS:
Plug in USB drive to Nexus 7 and unmount if the system automounts the drive (Settings - Storage - Unmount shared storage)
Open Paragon NTFS&HFS+ and mount the USB drive using the automatic mount point setting (/storage/usbdisk).
Open GScript Lite and run a game script to bind mount the game data folder to the sdcard.
Enjoy your game and extra space!
When done, unmount with Paragon NTFS&HFS+.
Code:
Script for Bard's Tale:
mount -o bind /storage/usbdisk/BardsTale /sdcard/Android/data/com.inxile.BardTale
Script for Max Payne:
mount -o bind /storage/usbdisk/MaxPayne /sdcard/Android/data/com.rockstar.maxpayne
Script for Dead Trigger (gave me an error the first time opened but worked fine afterwards):
mount -o bind /storage/usbdisk/DeadTrigger /sdcard/Android/obb/com.madfingergames.deadtrigger
I'll add more scripts as time permits.
*FAT32 drives may work fine using the default Android USB automounter (just skip step 1 (unmount part) and step 2. When finished, unmount via storage instead of Paragon NTFS&HFS+). Please let me know if this works for you!
Click to expand...
Click to collapse
Gotta love bind mounts! I use em all the time.
-Ronan
Sent from my Nexus 7 using xda app-developers app
life02 said:
Dead Trigger works.. added script.
Click to expand...
Click to collapse
No lag? Wow you deserve a beer! Awesome work! I have a 16 gig and don't want to get below 4 gig and this will be a big help. This should be pinned.
thanks for the tip, very useful info. I'm looking at using a USB to micro SD adapter and using the micro SD as storage (obviously), will report how well (or not) it works.
Oh, wow. Just got this working.
Didnt see the space in the script
Great work, thanks for this tutorial!
Ignore...
Related
I was wondering if a dev would be able to come up with a SD Storage flip flop for the Bionic? I had always used the modified app that navenedrob had posted here for my Droid X2,
http://forum.xda-developers.com/showthread.php?t=1229294
I'm hoping someone could come up with this for the Bionic.
Sent from my DROID BIONIC using XDA App
I'd also second this.
Sent from my DROID BIONIC using Tapatalk
Terri M said:
I was wondering if a dev would be able to come up with a SD Storage flip flop for the Bionic? I had always used the modified app that navenedrob had posted here for my Droid X2,
http://forum.xda-developers.com/showthread.php?t=1229294
I'm hoping someone could come up with this for the Bionic.
Sent from my DROID BIONIC using XDA App
Click to expand...
Click to collapse
I would like to "third" this.
Fourth?
Sent from my DROID BIONIC using xda premium
sd flip flop
i would love to have the flip flop. it would fix a few things
Count me in!!
Sent from my DROID BIONIC using Tapatalk
+1 for me.
What a pain in the ass the two storage systems are.
I haven't tested this but it's just a theory since Linux is generally pretty flexible. Hypothetically you could just use the Terminal to unmount both the storage spaces, and then re-mount them but switch the addresses. See here:
/dev/block/vold/179:1 is the address of the external storage, named '/sdcard-ext'
/dev/block/vold/179:58 is the address of the internal storage, named '/sdcard'
so you could HYPOTHETICALLY type into the terminal:
su
unmount /sdcard-ext
unmount /sdcard
mount /dev/block/vold/179:58 /sdcard-ext
mount /dev/block/vold/179:1 /sdcard
and it should mount the two in each others' locations.
Again, I haven't tested this and my phone is on the charger right now so I'm not going to yet, but assuming that works it would probably just restore itself to normal when you reboot since I'm assuming there is a script that mounts the hardware locations to everything when Android loads.
K.AuthoR said:
I haven't tested this but it's just a theory since Linux is generally pretty flexible. Hypothetically you could just use the Terminal to unmount both the storage spaces, and then re-mount them but switch the addresses. See here:
/dev/block/vold/179:1 is the address of the external storage, named '/sdcard-ext'
/dev/block/vold/179:58 is the address of the internal storage, named '/sdcard'
so you could HYPOTHETICALLY type into the terminal:
su
unmount /sdcard-ext
unmount /sdcard
mount /dev/block/vold/179:58 /sdcard-ext
mount /dev/block/vold/179:1 /sdcard
and it should mount the two in each others' locations.
Again, I haven't tested this and my phone is on the charger right now so I'm not going to yet, but assuming that works it would probably just restore itself to normal when you reboot since I'm assuming there is a script that mounts the hardware locations to everything when Android loads.
Click to expand...
Click to collapse
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
sk8tingusmc said:
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
Click to expand...
Click to collapse
Probably because when it's trying to mount it sees them still as what they really are instead of the edited vold.fstab. There is probably somewhere else you would need to edit to get that working correctly also. Or you could try something such as Auto Mount in the Market. Maybe it'd work.
Anyone have luck downloading that file? Seems like its down or its just me?
Sent from my DROID BIONIC using Tapatalk
sk8tingusmc said:
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
Click to expand...
Click to collapse
I was wondering if it was an fstab file but I didn't really poke around. Good to know, thanks!
frostincredible said:
Probably because when it's trying to mount it sees them still as what they really are instead of the edited vold.fstab. There is probably somewhere else you would need to edit to get that working correctly also. Or you could try something such as Auto Mount in the Market. Maybe it'd work.
Click to expand...
Click to collapse
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
cvmaas said:
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
Click to expand...
Click to collapse
Good to know. I was messing around with it. Ill check into this. Maybe I can magically make something happen
Sent from my DROID BIONIC using Tapatalk
Let us know if you have any luck, even if it's just a temp solution, because I would most certainly like to quit using this stupid internal memory if possible.
cvmaas said:
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
Click to expand...
Click to collapse
Oh okay. Does the bootloader need to be unlocked to edit that? I'm coming from the Incredible (hence my name) and have just become used to the Incredible's unlocked bootloader.
Anyone have any luck downloading any file in the browser?
Sent from my DROID BIONIC using Tapatalk
CWM zip originally by navendrob
Does not have full functionality yet! Read below!
Here is a CWM zip that I have modified that will flip flop SD storage locations. This is just to speed the process when someone figures out how to mount them to computer.
Important Facts
make your own back up before flashing
mount storage in CWM
Flash
This will mount the actual SD card as SDCARD and internal as SDCARD-EXT, but will not mount via USB to a computer. This will reboot phone and has already been discussed in thread.
sk8tingusmc said:
Does not have full functionality yet! Read below!
Here is a CWM zip that I have modified that will flip flop SD storage locations. This is just to speed the process when someone figures out how to mount them to computer.
Important Facts
make your own back up before flashing
mount storage in CWM
Flash
This will mount the actual SD card as SDCARD and internal as SDCARD-EXT, but will not mount via USB to a computer. This will reboot phone and has already been discussed in thread.
Click to expand...
Click to collapse
Thanks to everyone who is working on this!! Sk8, I will give this a try and will let you know! Thank you!
Sent from my DROID BIONIC using XDA App
dadsterflip said:
Anyone have any luck downloading any file in the browser?
Sent from my DROID BIONIC using Tapatalk
Click to expand...
Click to collapse
The stock browser is actually a POS. Try using the Dolphin hd browser.
Sent from my DROID BIONIC using XDA App
Dear Friends,
angelom said:
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
Click to expand...
Click to collapse
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/showthread.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 !!!
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/showpost.php?p=15001824&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,
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.
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,
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.
Really looking forward to development on this matter.
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
angelom said:
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
Click to expand...
Click to collapse
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
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).
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,
Other than the ability to use bigger size files, is there any advantage of using ntfs ?
THere are the new 64gb cards . was wondering if there would be any benefit in using them in ntfs
drgopoos said:
Other than the ability to use bigger size files, is there any advantage of using ntfs ?
THere are the new 64gb cards . was wondering if there would be any benefit in using them in ntfs
Click to expand...
Click to collapse
Dear drgopoos,
Main purpose is to be able to use larger files than 4 gb, other then i didnt realize any speed improvements regarding to my short time tests... Forum User " The_Steph " got a new 64 gb SDXC card and he is starting to test it with ntfs i guess... He will kindly report back soon...
Kind Regards,
My 64 card has been ordered at Amazon and it is planned to be delivered to my house the 4th of January.
As the SGN does have a big enough internal memory to store all daily files such as applications, pictures and data, my only aim using this modules is to be able to store HD movies on it (always bigger than 4GB) as I mainly use my SGN as an HD PMP during my daily commuting. I don't really care about the rest since as I said eearlier, it cans be hosted in the internal memory.
I am currently doing some tests with an old 16GB SD Card before my big jump to the 64GB world
I have now tests to do with AbyssNote 2.5 kernel then
An aditional question, is you fuse.ko removed from /lib/modules each time you restart your SGN?
The_Steph said:
An aditional question, is you fuse.ko removed from /lib/modules each time you restart your SGN?
Click to expand...
Click to collapse
Dear The_Steph,
No, It is always in /lib/modules... I have several times restarted my Gnote and never copied fuse.ko... Weird...
Kind Regards,
PROTOCHIP,
I think this then because of angelom that kindly added fuse.ko and ntfs.ko in the /lib/modules
Moved to angelom's AbyssNote 2.6 kernel and did your step by step procedure. Everything is now working perfectly
Next point is now how to automate it to automatically mount the card at Android startup and unmount it when shutting it down.
Dear The_Steph,
Yeah these files must be related with the kernel itself... By the way, is abyss v2.6 released? I cant find it...
Kind Regards,
PROTOCHIP,
Did not look for AbyssNote 2.6 yet as I was working on automation.
BTW, I succeded in automation of launching script with autostart https://market.android.com/details?id=nk.bla.android.autostart.
Last point to do is finding the settings > mount SD card script line to finalise a complete NTFS formatted card mount script at start
Once done, I will create a CWM flashable file to ease the process.
I have voted this thread 5-star that it deserves. CHEERS.
Here's my experience so far using stock KL7 deodexed ROM with Abyss kernel 2.5:
0. Firstly, I have a 32GB MicroSD card and I have successfully copied a 10gig 1080p MKV video file to it and played it without any issues on my Note thanks to this thread. THANK YOU heaps.
1. Using 'Script Manager' app, I can auto-run the script at bootup. But I still need to manually go to settings - storage and mount SD for it to be actually mounted. Is there a command to do this also at boot up via the same script? or is there no other way to mount it?
2. I noticed that all the video files in the \sdcard\external_sd are not seen by the media scanner. So the videos do not show up in Videos app and my favorite video player which is Act 1 Video player. (it just goes by the media scanner indexing and has no option to specify folders manually) Is there a way around this? or is this a limitation that is unavoidable?
3. I have no issues with connecting it as mass storage to my PC using USB cable and can copy files without any issues or speed loss to my MicroSD card. Awesome. (I get 11MB/sec consistent write to my Lexar 32GB class 10 card)
Anyways, overall, I'm super duper happy. =)
But yeah, solutions for #1 and #2 would make it perfect.
Dear jakiman,
Thanks for the feedback...
1- We are all looking for a solution to mount automatically... At least in new abyss kernel V2.6, fuse.ko will be automatically loaded during startup so there will be no need to use it in scripts i guess...
Use Autostart app or script manager to run script on boot...
Use elixir 2 widgets app to create a shortcut directly to settings-storage...
2- Stock apps has problems recognizing ntfs files... We have to use 3rd party alternatives...
For videos i use mxplayer and bsplayer.. Bsplayer is much more smooth that make me shocked...
For photos neither stock nor 3rd party apps i tried could read ntfs files... So viewing photos from ntfs is still problem... i select the file with es file explorer and then choose gallery to show photo file from ntfs.... I copied all photo files to internal memory for a temporary solution...
3- My card is 32 gb class4 and that may be the problem for copying small files... For big files like movies i get 7 mb/s transfer rate with usb mass storage mode on windows7...
Kind Regards,
Sent from my GT-N7000
I guess everybody would like to expand the Ouya's internal memory. I tried the usual tools, and although DirectoryBind is working, it doesn't help much because there are no obb or data directories to be moved for Ouya games.
However, Link2SD works just fine!
Prerequisites:
Installed SuperUser on Ouya
Link2SD apk
USB drive with a 2nd primary partition formatted as ext4
There are plenty of guides that explain how to get the SuperUser apk installed, so just use the search button above.
The Link2SD apk you can install on your phone from Google Play, and copy it to some place from where you can install it on your Ouya.
Use any tool (gparted, MiniTool Partition, etc.) to create a 2nd, primary partition on your USB drive, and format it to ext4. Use the search button if you are in doubt.
Now, Link2SD does not seem to recognize that there is indeed an ext4 formatted 2nd partition on the USB drive.
To make it work you have to mount it manually (see below), or install my SDExt2Mounter for Ouya, or use the script in post #3.
Manual way:
So, insert the USB drive in Ouya, and do the following:
[in adb shell]:
su
mkdir /data/sdext2
mount -t ext4 /dev/block/vold/8\:2 /data/sdext2
exit
:victory: Now start Link2SD on the Ouya, and start using that cumbersome touchpad to move apps and data (use the Link button, as Move to SD card does not work for Ouya) to your new found storage space! There are some options in the Link2SD menu to make all future installed app be automatically moved (and linked) to the new location, but I haven't tested that one yet.
Of course things will break if you remove the USB drive from the Ouya, and if you really power down the Ouya, you have to make sure you first mount the ext4 partition before the launcher starts, or you cannot use the games!
Use SDExt2Mounter:
Make sure you have rooted your Ouya and installed busybox; you will have to reroot your Ouya after each firmware upgrade!
Install SDExt2Mounter; you will find the app in the "PLAY" menu, not in the "MAKE" menu. Yes! My first Ouya app!
Start SDExt2Mounter
Grant it PERMANTENT root access if asked
Press the (make and) mount button
Press the AutoMount on Boot button
Reboot your Ouya
After the reboot step, your Ouya will automatically mount the sdext2 partition so your games will show up in the launcher. Obviously, you only need to go through these steps once.
Start the app, grant it PERMANTENT root access, and hit the "(make and) mount button".
Changelog:
v1.2: Added Automount option to mount sdext2 on boot, so your games show up in the launcher.
v1.1: Corrected directory path; added SuperUser permission
Awesome! on the todo list.. FYI though be sure not to put your main launcher or su stuff on the linked partition.
here i have made smal script....extract it to system/etc/init.d an then install Universal Init.d
https://play.google.com/store/apps/details?id=com.androguide.universal.init.d&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5hbmRyb2d1aWRlLnVuaXZlcnNhbC5pbml0LmQiXQ..
Now open the app and give it su permissions and turn inti.d support on! Now all goes automatically
What happens if you start up your OUYA with the USB drive not plugged in? Would it just not show the apps? Or maybe show an error? Basically I'm wondering if there could be any complications with the OUYA if I forgot to add the HDD to the OUYA before turning it on.
JLCollier2005 said:
What happens if you start up your OUYA with the USB drive not plugged in? Would it just not show the apps? Or maybe show an error? Basically I'm wondering if there could be any complications with the OUYA if I forgot to add the HDD to the OUYA before turning it on.
Click to expand...
Click to collapse
The links are basically shortcuts made to the app on the new partition. The same idea if you remove a drive with all your steam games on it, worst case the shortcut won't work.
Also they would then just show a link icon instead of the actual app icon as this is rendered from a file in the apk itself.
After reboot even with the init script any linked apps were gone for me
Sent from my OUYA Console using xda app-developers app
Someone correct me if I'm wrong, since I am in no way an expert, but looking at the init.d script I think there should be a space in between 'shmkdir /data/sdext2' and 'mount -t...' ? Haven't powered down yet so I can't confirm whether it works or not.
I have this working great now!
When I tried to go to the play store and download Universal Init.d, it would force close upon opening. I had to search for and download an earlier version, Uni-init v1.0.apk.
It does take longer for my OUYA to boot now, so just wait for it.
Do you mind if I add this script into my Ouya ToolBox?
All credit will be given to you, of course.
Thank you!
http://forum.xda-developers.com/showthread.php?t=2350900
I believe that you can add the ability to mount the ext partition to the ramdisk in the boot.img
foil said:
Do you mind if I add this script into my Ouya ToolBox?
All credit will be given to you, of course.
Thank you!
http://forum.xda-developers.com/showthread.php?t=2350900
Click to expand...
Click to collapse
Hope the author let you added asap it be pretty good
is there a way to verify the linking was successful?
i opened links2sd before i gparted my 1.5tb external and it said that there was no secondary partition..
then did the ext4 partition for 100gb and enabled the init.d support and moved the script linked in this thread to my new init.d folder created and then reboot my ouya
then when i opened up links2sd again it allowed me to make links so i did those on gta3 and gtaVC (which are about 1gb a pop) and after it finished i navigated to the /data/sdext2 folder in ES file explorer and it says the folder is empty... i then went into my system settings and it says that my internal storage is still the whack 5.78gb and that i only have like 1,21gb remaining (which is what was present before i tried the mod)..
Im purdy sure i followed everything like i am supposed to... plus it says that my usbdrive folder is empty now too??
so i went into terminal emulator and rebooted the device.. and now my usbdrive shows up, but the apps i linked aren't there in the make drawer and when i opened up links2sd, i cant find the apps i linked in the list at all and it says the second partition isn't found :/
Whats the best combo as far as speed and performance goes? Fastest usb vs SD Card (sandisk extreme pro) with usb adapter?
WhoDunnit said:
I guess everybody would like to expand the Ouya's internal memory. I tried the usual tools, and although DirectoryBind is working, it doesn't help much because there are no obb or data directories to be moved for Ouya games.
However, Link2SD works just fine!
Prerequisites:
Installed SuperUser on Ouya
Link2SD apk
USB drive with a 2nd primary partition formatted as ext4
There are plenty of guides that explain how to get the SuperUser apk installed, so just use the search button above.
The Link2SD apk you can install on your phone from Google Play, and copy it to some place from where you can install it on your Ouya.
Use any tool (gparted, MiniTool Partition, etc.) to create a 2nd, primary partition on your USB drive, and format it to ext4. Use the search button if you are in doubt.
Now, Link2SD does not seem to recognize that there is indeed an ext4 formatted 2nd partition on the USB drive. To make it work, you have to mount it manually to /data/sdext2. So, insert the USB drive in Ouya, and do the following:
[in adb shell]:
su
mkdir /data/sdext2
mount -t ext4 /dev/block/vold/8\:2 /data/sdext2
exit
:victory: Now start Link2SD on the Ouya, and start using that cumbersome touchpad to move apps and data (use the Link button, as Move to SD card does not work for Ouya) to your new found storage space! There are some options in the Link2SD menu to make every future installed app be automatically moved (and linked) to the new location, but I haven't tested that one yet.
Of course things will break if you remove the USB drive from the Ouya, and also if you really power down the Ouya, you have to first mount the ext4 partition manually before you can use the games!
If I find the time I might make a small app/script to automate things, but if someone beats me to it, I won't cry!
Click to expand...
Click to collapse
"To make it work, you have to mount it manually to /data/sdext2. So, insert the USB drive in Ouya, and do the following" <---do i type in the commands right from the ouya with terminal emulator? and if so when i type (mkdir /data/sdext2) from the terminal emulator i get a "mkdir failed for /data/sdext2, File exists" i know the file exists so it's cool but when i type the second command (mount -t ext4 /dev/block/vold/8\:2 /data/sdext2) it gives me a "mount: No such file or directory" i dont know what im doing wrong ...please i need some help, i keep running out of internal space and i need to expand ...also i used mini tool partition wizard to format my 16gb sd card to ext4...
foil said:
Do you mind if I add this script into my Ouya ToolBox?
All credit will be given to you, of course.
Thank you!
http://forum.xda-developers.com/showthread.php?t=2350900
Click to expand...
Click to collapse
Since the author of the script in post #3 (natorus87) is not answering your question, I will. If you want to copy the concept in your ToolBox, that's perfectly fine with me. Also, if you want to add my app to your toolbox, that's fine too. If you want the exact script of post #3, you'll have to PM natorus87.
Ouya mounting app added
I added an app for the Ouya to do the manual steps of creating the folder and mounting the partition to the OP. The app needs root access (so be sure to reroot your Ouya after a firmware update). Note: it is an Ouya app, so it will show up in the "PLAY" menu instead of the "MAKE" menu...:silly:
Where can we get this app?
Forget that. I have seen you have addedit to the 1st post.
Sent from my GT-I9100 using xda app-developers app
I am having issues with the app finding the partition.
What type Id does it need to be?
Sent from my GT-I9100 using xda app-developers app
I have tried unsuccessfully all day to create a partition that is seen by link2sd.
Your app mounts the ext4 partition and I can see it on a file explorer but link 2sd says no partition found.
Sent from my GT-I9100 using xda app-developers app
robinscp said:
I have tried unsuccessfully all day to create a partition that is seen by link2sd.
Your app mounts the ext4 partition and I can see it on a file explorer but link 2sd says no partition found.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
You're right. I'm afraid I left the app in "testing" mode: it mounts to /data/sdext while it should be /data/sdext2. I'll update it tonight. Sorry for the inconvenience, and thanks for reporting.
My nexus 7 is a 8GB wifi version, so I want to mount usb storage for huge games like ASPHALT 8 or Modern Combat 4.
The rom was cm10.0 stable, which was android 4.1.2. Both foldermount and stickmount working well.
However, when I updated the rom to cm10.1.3 which was android 4.2.2, there were some problems popping up.
Someone says that the problem is because of adding the multiple users and the emulated storage.
There are three situations (Here use DeadTrigger for example)
#1.FolderMount with no Stickmount:
System will automatically mount the usb storage and the path is: /storage/usbdisk/n7game/obb/dt/
Then I used FolderMount and set the path as target, started to transfer files, lighted up the pin in green. Everything seems to be good.
However, when I started the game, it said that I had to download 90mb of files that I had already done.
So #1 doesn't work.
#2.FolderMount with Stickmount, the path is in the emulated storage:
Setting the target path in FolderMount as: /storage/emulated/0/usbStorage/sda1/n7game/obb/dt/ which is the path Stickmount sets.
After transferring files to usb, I pressed the pin but didn't turn to be green.Then I started DT, still asking for downloading datas.
#2 failed again.
#3..FolderMount with Stickmount, using the path as /storage/usbdisk/
This time I set the target path as /storage/usbdisk
After transferring files and lighting up the pin in green, I started DT and it worked!!
And I have tested using the format of NTFS, it is no problem with Stickmount, can be fix with ntfs-3g and display well. However, the FolderMount seems not support it. I tried to transfer with FM but failed. So I format the usb storage as fat32, and working well till now.
I don't know why, but this is my experience, so I shared it. :cyclops:
And sorry for the poor English
Thank you for sharing this. I have been considering trying something similar.
Dude thanks a bunch!
I gave my nexus 7 (2012) a new look and more. Thanks for the information, it gave me an idea of what route to take to finally be able to extend my storage.
a note about foldermount
lobe14 said:
I gave my nexus 7 (2012) a new look and more. Thanks for the information, it gave me an idea of what route to take to finally be able to extend my storage.
Click to expand...
Click to collapse
To actually be able to transfer multiple files, I had to select the path with foldermount but move the files manually. The app kept overwriting my previous file transfer. So far it's working. :victory:
I Is it possible to mount the internal storage as USB Mass Storage device on the PC. I like to sync the memory to PC from time to time. It is important that the internal storage is mounted as a separate drive and not a portable device.
jesrani said:
I Is it possible to mount the internal storage as USB Mass Storage device on the PC. I like to sync the memory to PC from time to time. It is important that the internal storage is mounted as a separate drive and not a portable device.
Click to expand...
Click to collapse
Yes, just select the USB notification you get when you connect it and instead of charging you can choose to mount it as a drive.
jd1001 said:
Yes, just select the USB notification you get when you connect it and instead of charging you can choose to mount it as a drive.
Click to expand...
Click to collapse
When I select File Transfer option, it mounts as a portable device and not with a drive letter. As a portable drive I am able to access the files but cannot do automated backups using many backup software. Need to mount with a drive letter.
jesrani said:
When I select File Transfer option, it mounts as a portable device and not with a drive letter. As a portable drive I am able to access the files but cannot do automated backups using many backup software. Need to mount with a drive letter.
Click to expand...
Click to collapse
There's a reason for that. Read this:
http://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/
Alternatively, you could enable USB debugging and use ADB commands or something to back up device data.
If your rooted try USB mass storage enabler (UMS enabler v1.6). I have not tried it myself
Amd4life said:
If your rooted try USB mass storage enabler (UMS enabler v1.6). I have not tried it myself
Click to expand...
Click to collapse
Our phones CAN NEVER do USB Mass Storage, NO MATTER WHAT.
http://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/
We use EXT4 or F2FS, but not FAT(16) or FAT32 anymore.
OP or Mods, please close this thread as answered.
card13 said:
Our phones CAN NEVER do USB Mass Storage, NO MATTER WHAT.
http://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/
We use EXT4 or F2FS, but not FAT(16) or FAT32 anymore.
OP or Mods, please close this thread as answered.
Click to expand...
Click to collapse
Lol! My linux box can read any file system. The issue is that internal storage is part of data now.
That said usb mass storage drivers work fine. There is a virtual cd drive with drivers. Im just wondering what linux /dev that is on the phone so I can wipe it and cram something else in there… make a rescue boot out of my phone!
uudruid74 said:
Lol! My linux box can read any file system. The issue is that internal storage is part of data now.
That said usb mass storage drivers work fine. There is a virtual cd drive with drivers. Im just wondering what linux /dev that is on the phone so I can wipe it and cram something else in there… make a rescue boot out of my phone!
Click to expand...
Click to collapse
If you want to boot a distro or windows or even a UBCD type ISO from the phone, that's what DriveDroid is for.
SpasilliumNexus said:
If you want to boot a distro or windows or even a UBCD type ISO from the phone, that's what DriveDroid is for.
Click to expand...
Click to collapse
I tried it. It doesnt work at all on my device (OnePlus 3T) and the interface blows badly, although I hacked my own APK that works great. No interface, just tap an ISO from anywhere.
Sent from my ONEPLUS A3000 using Tapatalk
Shameless plug. Here is my solution. https://forum.xda-developers.com/showthread.php?t=3570546
Sent from my ONEPLUS A3000 using Tapatalk