yashsingh1/xdaforums huggingface dataset:
[Ouya Android Development] frickinjerms:
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 :/
[Ouya Android Development] Toxic_Dragon:
Whats the best combo as far as speed and performance goes? Fastest usb vs SD Card (sandisk extreme pro) with usb adapter? :confused:
[Ouya Android Development] cronikman84:
"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 :confused:...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...
[Ouya Android Development] WhoDunnit:
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 Android Development] WhoDunnit:
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:
[Ouya Android Development] robinscp:
Where can we get this app?

Forget that. I have seen you have addedit to the 1st post.
[Ouya Android Development] robinscp:
I am having issues with the app finding the partition.

What type Id does it need to be?
[Ouya Android Development] robinscp:
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. :confused:
[Ouya Android Development] WhoDunnit:
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.
[Ouya Android Development] robinscp:
Well at least it has been discovered.

I will try again tomorrow when you post the new version.

Cheers
[Ouya Android Development] billouetaudrey:
Hi, SdExMounter work with ntfs partition ?

Envoyé depuis mon Transformer TF101 en utilisant Tapatalk 4 Beta
[Ouya Android Development] WhoDunnit:
Absolutely not. This is only for ext4 partitions.
[Ouya Android Development] WhoDunnit:
version 1.1 of SDExt2Mounter uploaded

New version of SDExt2Mounter released in OP. Notice the subtle change in name of the app? Least I make the same mistake again. :o

If anymore problems are found, do report them.
[Ouya Android Development] WhoDunnit:
Using an extremely fast SD Card in a usb adapter won't gain you anything, because you will be limited to the USB2.0 speeds anyway. You can tune the ext4 filesystem for better performance: see the link in my signature to my ext4 partition for Archos.
[Ouya Android Development] robinscp:
It works great now. Thanks.

Any way I can add the obb files to the usb storage?
[Ouya Android Development] billouetaudrey:
For obb :

http://xdaforums.com/showthread.php?p=43660792

Envoyé depuis mon Transformer TF101 en utilisant Tapatalk 4 Beta
[Ouya Android Development] WhoDunnit:
I'm not sure where to go from here. Several things need to be improved. Rebooting the Ouya means loosing the apps stored on SD for me, because the partition is not mounted when the Ouya populates the Play menu. That's easily solved by mounting the partition and then hot rebooting the Ouya. Or by somehow making sure that the mounting always takes place before Play population, which can probably be done by changing some system files. If anyone has a clear preference for either solution, please tell me.

Next step after that would probably be to integrate Link2sd like functionality in sdext2mounter. Then I can also address questions like moving obb to sdext2.
[Ouya Android Development] robinscp:
Have you tried the boot app from the Ouya store?

I was going to try adding your app to boot first. Would this resolve the issue?

---------- Post added at 05:53 PM ---------- Previous post was at 05:42 PM ----------

It doesn't work.

How do I hot boot?

---------- Post added at 05:59 PM ---------- Previous post was at 05:53 PM ----------

Also I am not sure the issue is with the play menu because if I boot and go directly into another launcher. My games are still missing. Both Ouya and sideloaded. :rolleyes:
[Ouya Android Development] WhoDunnit:
For manual hot rebooting you can issue

killall system_server

from a superuser adb shell.

It's not about populating the Ouya launcher specifically, but without the mounted partition the system doesn't know about those apps. So any launcher will have the same problem.

I will put it in the next version.
[Ouya Android Development] Abrasher:
Not sure what I am missing.... Did all steps. Linked apps. Moved Cobb to the data folder... And none of the games launch. Did I miss a step?
[Ouya Android Development] WhoDunnit:
SDExt2Mounter v1.2 released

v1.2 of SDExt2Mounter is released and added to the OP. Now you can automount the sdext2 partition on boot and see those games again after a cold reboot.

I had to many lockups with the manual hot reboot method, so I'd advise you to use SDext2Mounter's AutoMount options instead of manual hot rebooting the Ouya.

If anyone had issues with missing games after reboot, please give v1.2 a try, and follow the revised instructions in the OP.
[Ouya Android Development] :
CM10

I tried it on CM10 at first look its working ( except SDext2Mounter, not founding the partition, so I manualy mount it via Terminal ) apps are linking to 2nd Partition, but after a reboot and mounting, apps disapears from drawer..

how can we fix that and SDext2Mounter also..? :confused:
[Ouya Android Development] WhoDunnit:
I do not have CM10 installed, and wasn't planning to install that on my Ouya, so you have to help me out here by providing more details.

What command did you have to issue for manual mounting of the partition?

After manual mounting, restart SDExt2Mounter. Can you enable AutoMount on boot now?

If "yes" to AutoMount, do enable it and reboot your Ouya. Is it now mounted?
[Ouya Android Development] :
I used "mount -t ext4 /dev/block/vold/8\:2 /data/sdext2", after manual mount i can enable AutoMount but its not working on reboot, i use init.d script to mount 2nd partition on boot, problem are in Link2SD the app dosent relink apps on boot, its showing storage info on ext4 partition, but apps disapears like i said...
[Ouya Android Development] FabMan_UK:
Having the same problem as another member, I've tried two different USB sticks of different brands and sizes. I set both USB sticks first partition to FAT32 and the second partition to ext4 using MiniTool.

I have root to my OUYA, I've installed SuperUser, I've installed Link2SD. I've tried using SuperUser,apk and the manual method but I cannot mount the external USB drive. When I try the manual method after the mount command I get the error "mount: No such file or directory", when I used SuperUser I can't get mount to work.

Okay the OUYA cannot seem to detect either USB drive, so of course the commands and app will not work. So why won't the OUYA see my USB drive?

Any suggestions please?

-Edit-

I've tried a USB mouse and it works, so it shouldn't be hardware unless a mouse uses less contacts than a USB drive.

I've tried a Factory Reset, that didn't fix it either. Now I'm stuck.

-Edit 2-

Okay, so I found another USB stick formatted to FAT32 and OUYA could access data stored, so I then re-partitioned the drive into FAT32 and ext4. OUYA would then not recognize the first partition nor does the app work and neither does the manual method work. However, there is a new error message, "mount: Invalid argument", so something has changed.

When I don't have a USB drive inserted and try the mount command I get the error message "mount: No such device or address", so that tells me that the OUYA sees the all of the USB sticks to some degree. CONFUSION!

-Edit 3-

In case people need to know, I modified the USB drivers from the latest SDK to connect to my OUYA, it is also where I got ADB from. I rooted my device using the 1.1.2 OuyaToolbox test and installed Superuser and Busybox that way. I have tried to install Google Play Store, but I've Factory Reset since then and it has left remnants behind.
[Ouya Android Development] WhoDunnit:
I think it is the same problem as discussed before: The /data/sdext2 partition is not mounted before population of the menus of the launcher. Basically SDExt2Mounter and Universal init.d use the same method to enforce immediate mounting on boot. Apparently the used method is not valid for CM10. The only thing that you could still do right now is issue the hot reboot command manually after mounting the partition.

Still, that doesn't solve the problem of SDExt2Mounter not being able to mount the partition. The only reason for it to fail is it doesn't get permission for root access. Which can happen for example because one might have forgotten to properly reroot the device after a firmware update.

Just guessing, did you install busybox? If so, what version?
[Ouya Android Development] WhoDunnit:
Seems like something went wrong when you partioned the usb drive. Both partitions on the drive should be primary partitions, and the 2nd partition shoudl be formatted to ext4 (it's not enough to just MAKE the partition, it needs to be formatted).

Can you access the partitions on a PC? To my knowledge windows does not support partitions on a USB drive, so you have to use linux of perhaps macosx (although macosx does not support ext4 out of the box).

I have no experience with minitool; I always use gparted.
[Ouya Android Development] :
No i didnt install it was alredy instaled with CM10, version 1.20.2-jb.
[Ouya Android Development] FabMan_UK:
Thanks for this, yep, silly move by me. MiniTool defaults to logical, also first partition has to be active.
[Ouya Android Development] WhoDunnit:
Okay. Next step. Does your installation of cm10 support /etc/init.d?

It seems link2sd was having problems with cm10 on other devices too.

Without a cm installed myself thus will be slow going.

-edit-

OK, cm10-ouya does support /etc/init.d I will let SDExt2Mounter write a script for init.d on CM then.
[Ouya Android Development] Deen0X:
Hi guys!

i wrote a little guide to use DirectoryBind to "emulate" a memory swap, and install apps and data on external storage (USB Pendrive, HDD, mounted CIFS, etc)

hope you found useful.

Note: Is in spanish. use tranlsator to get a translated version. Hope i get some time and generate a proper English version to post here. If there is any guy that wants to help me translating, it will be nice.

http://manguiro.blogspot.com/2013/07/guia-rapida-bind4swap-directorybind.html

I created another guide, similar to BIND4SWAP, and i use a shared directory on my local net to use as a sdcard on any android device. This is useful if you want to "extend" your storage to a remote location, and you can use the same installed files on many android devices. i.e., i tested and use one single installation of my android applications (nova3 in example), and can load an play on my Ouya, JXDS7300B, JXDS5110B, S908, Motorla Razr, GPD5005, etc... all devices are pointing to the same net resource and load the files, without need of installing files on local device.

note: this guide (CIFS&BIND) is for fast local networks. If you have a slow network, then i suggest to use it for small size games, or games that loads small portions of data (i.e. Bard´s Tale is a game that runs ok in a 100mb speed network)

http://manguiro.blogspot.com/2013/07/cifs-directorybind-sambadroid-cifs.html

Now, i´m working in a new version of the CIFS&BIND guide, but i´m using the OUYA as network resource. I attached a HDD via USB to the console (350GB), and ouya uses as their sdcard (via DirectoryBind). I get over 120 games installed on the ouya... and share all these data to my other devices. I have only a problem for now, i want go create a Access Point Wifi on the Ouya, but all the software i tested hangs or get errors. I want to get advantage of the WIFI antenna of the OUYA because runs at 150mbs (wifi n), that is a good speed for many guys that don´t have a fast wifi router on their installations.

if you can help me with this, please send me a mp.

hope these guides will be interesting and useful.

Zalu2!
[Ouya Android Development] WhoDunnit:
[MENTION=3410188]Deen0X[/MENTION]

Right, that's part of what's needed and that's how I would do it, but then without DirectoryBind or FolderMount. Do note that the Ouya uses several other directories to store the majority of the larger data files. But something a lot like that was my initial plan for a later version of SDExt2Mounter. However, I prefer a Link2SD kind of solution where you can just select what part of what apps you want to move over.
[Ouya Android Development] Deen0X:
yes, may be, but any folder on sdcard can be linked to external disk (usb hdd, etc).

the only directory that i cannot move, and may be grow, are the /data/app folder, that is part of the system,
[Ouya Android Development] WhoDunnit:
Of course, that's the whole point. Else FolderMount, DirectoryBind, and Link2SD would not exist.

And that's the reason I prefer Link2SD where you can pick what you want to move, because it is possible to move large parts of /data/app, as long as you skip the needed system files. Games can be moved from /data/app.
[Ouya Android Development] robinscp:
I can't get the app to auto mount. I press the automount button but the writing status red and doesn't say it will mount on boot.
[Ouya Android Development] WhoDunnit:
So what changed? You said earlier all was fine. Changed rom? Firmware update?
[Ouya Android Development] robinscp:
I've never had the auto mount working.

Only tried the latest version of the app recently.
[Ouya Android Development] WhoDunnit:
So more info then, please. What rom are you using, do you have busybox installed, can you mount the partition, does sdext2mounter have root access, can sdext2mounter mount the partition?
[Ouya Android Development] robinscp:
Official rom. Rooted, busybox installed.

The partition mounts manually with sdext2mounter but nothing happens when I press the auto mount button.
[Ouya Android Development] robinscp:
The problem seems to be with the request for super user. When I press the automount button in sdext2mounter the superuser notification allowed comes up but stays up. When I look in the superuser log it seems to be requsting su access continually. (20 times in the same minute.) Even though the mount button was only pressed once.
[Ouya Android Development] Toxic_Dragon:
Is this working properly now?
[Ouya Android Development] V8vroom:
Open up SuperSU and see if it has updated?
[Ouya Android Development] robinscp:
I have got it working.

My problem was that busy box was not installed properly.

The app now auto mounts the drive and I don't lose apps that are linked to the usb partition. :D

It says the partition isn't mounted but it is and everything works.
[Ouya Android Development] :
is this a better option than foldermount or basically the same?
[Ouya Android Development] huckjam:
Well foldermount is still needed because this will link the apk and some of the other files to your usb it doesnt link the entire /data/obb/"game here"

folder. So it will do ouya games fine because most of them don't have additional data files but games like MC4 and Vice city still benefit from folder mount because you can put the entire data directory on your usb drive.

That being said I'm still having problems getting this to work from cold boot if I turn on the ouya the first time after power off all my linked data isnt there but if i adb reboot after than it mounts on startup and everything is fine. It seems that its having trouble when its not already mounted then warm rebooted. I have everything setup properly su,busybox,exposed framework, playstore, and ota update turned off mod. Its not really that big of a deal that i have to start then do a quick reboot but I figured I would let you know. Thanks man you really helped me out with this one.:highfive:
[Ouya Android Development] frickinjerms:
im on stockplus which has init.d, root, and busybox support and the /data/sdext2 directory but sdext2mounter says it cant mount the partition.. i have a 1.5tb hdd and wireless kb plugged into a powered hub.. theres a 100gb ext4 partition i made in gparted and it is set as a primary.. the ouya has no problem loadimg up all my movies and roms and stuff from the ntfs side of the hdd with this setup.. soooo im stumped
[Ouya Android Development] Oscar_david:
I did this a while back just to test it out. It worked back then.

But no I'm on stock plus latest version and link2sd won't run. any others encoutering this?
[Ouya Android Development] dark_saian:
Same here. Link2SD sees the second partition, moves the apks on it but they are still seen by the system in /data/app, so it's not freeing any space for me.
[Ouya Android Development] WhoDunnit:
Puzzled

This app was developed and tested using the stock, but rooted Ouya. I understand that when using CM10 on Ouya, things work a little different and automounting doesn't work. I think I can fix that, but without having a CM10 installation myself, I cannot test it, and I as I am quite happy with my Ouya configuration, I do not want to put CM10 on it. So is anyone volunteering for testing a batch of attempts to fix CM10?

The problem reports with Stock+ installations puzzle me, though. As I understand it, Stock+ is actually just stock with some Xposed framework modules installed. I just installed the Xposed Ouya mod collection which bundles most (if not all) modules added in Stock+, and still this app works fine.

As an alternative for people that experience problems with the solution of this threat, and only want to move the big data and obb directories of side loaded apps to and external usb drive, I can recommend using FolderMount. FolderMount is happy to move stuff to a fat32 formatted usbdrive, without fusing about first or second partitions. And as you will only move data files to an external drive, you won't have problems with apps disappearing on boot because the apps are still in the correct place. Just bear in mind that this only seems to work for the apps that would normally store the big data files on /sdcard/. So that excludes the apps from the Ouya store. With Link2SD you can also easily move the internal data of the Ouya games to /data/sdext2.

This FolderMount setup was tested by me on said rooted stock Ouya, with a fat32 formatted 16 GB thumb drive, for the obb file of Asphalt 8. I case people want to know: To get Asphalt 8 running on Ouya you need the Xposed Framework with Google Play and GameLoft patches.
[Ouya Android Development] WhoDunnit:
Can you manually mount the partition to /data/sdext2, using the shell commands of the OP?
[Ouya Android Development] tcollum:
I can't for the life of me make this work. I can't get the partition to mount with SDExt2Mounter, manually (mount: no such file or directory), or with the init.d script.

-Stock rooted rom

-Busybox and Superuser updated

-2nd Partition is ext4 and primary (using MiniTool, I made 1st partition active, like one person had luck with earlier in the thread)

I've tried every possible configuration I can think of. Any ideas?
[Ouya Android Development] WhoDunnit:
Assuming you didn't make any typos and you have made the directory /data/sdext2, the only reason for manual mounting to fail is something wrong with the 2nd partition. Most likely it is not formatted. Can you mount it in Linux? Just pop in a live cd if you don't have a Linux pc at hand. Or try a parted live cd to partition the USB drive properly instead of minitool.
[Ouya Android Development] tcollum:
Well, I got it to work with an sd card + card reader. Still used minitool. I wonder why my hd wouldn't work. Is there a size limit to that second partition that you know of?
[Ouya Android Development] WhoDunnit:
Good point. I am not aware of a size limit to the second partition. Ext4 by itself does not have a relevant size limit, but Android/Link2SD might have one.
[Ouya Android Development] cronikman84:
that's what i'm saying also...whats the point of this if they are still being seen by the system and it's still taking internal space and it's not freeing anything?...it's not really called "Expanding Storage" if "Obb" files are still being stored in OUYAs internal Storage and CAN'T be moved with this process to the External Storage like i thought it did...If all "Obb" files could be moved to External Storage on Install and freeing Internal storage then it could be considered "Expanding Storage"...
[Ouya Android Development] Asadullah:
I had issues with my usb stick till I formatted both partitions to ext4. Don't know why that is.
[Ouya Android Development] Paulhxc:
Hey dude, thanks for make this, i realyly apreciated your work! :good::laugh:

Hugs from Costa Rica
[Ouya Android Development] Asadullah:
Are you Vegeta?
[Ouya Android Development] czucker:
Has anyone figured out how to get this working properly in CM 10?

I've tried just about everything that I can think of, but I can't seem to get the 2nd partition of my USB stick to mount on boot. . .

Any help would be greatly appreciated.

Thanks,m

Chris
[Ouya Android Development] PickleFart9:
FWIW I initially had the same problem with a powered and unpowered hub. Manually mounting the partition didn't work at that time. I had to plug the drive directly in and restart to get it back working, then restart with it plugged into the hub alone, then add the rest of the items from there. It's working right now so I don't want to move things around much again. I can only imagine that one of the devices we use is causing the hardware location to get reassigned, and my bet is the wireless xbox adapter.