[HOWTO] Expand storage space with Link2SD and SDExt2Mounter

robinscp

Senior Member
Feb 20, 2012
80
7
0
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.
Well at least it has been discovered.

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

Cheers

Sent from my GT-I9100 using xda app-developers app
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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. :eek:

If anymore problems are found, do report them.
 
  • Like
Reactions: indyssee

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
Whats the best combo as far as speed and performance goes? Fastest usb vs SD Card (sandisk extreme pro) with usb adapter? :confused:
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.
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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.
 

robinscp

Senior Member
Feb 20, 2012
80
7
0
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?

Sent from my GT-I9100 using xda app-developers app

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

It doesn't work.

How do I hot boot?

Sent from my GT-I9100 using xda app-developers app

---------- 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:

Sent from my GT-I9100 using xda app-developers app
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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.
 

Abrasher

Senior Member
Mar 11, 2008
164
5
0
Athens, GA
www.expandedmedia.org
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.

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?
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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.
 
  • Like
Reactions: robinscp
S

suruceanu.nick

Guest
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:
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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:
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.
  1. What command did you have to issue for manual mounting of the partition?
  2. After manual mounting, restart SDExt2Mounter. Can you enable AutoMount on boot now?
  3. If "yes" to AutoMount, do enable it and reboot your Ouya. Is it now mounted?
 
S

suruceanu.nick

Guest
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.
  1. What command did you have to issue for manual mounting of the partition?
  2. After manual mounting, restart SDExt2Mounter. Can you enable AutoMount on boot now?
  3. If "yes" to AutoMount, do enable it and reboot your Ouya. Is it now mounted?
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...
 
Last edited by a moderator:

FabMan_UK

Member
Oct 7, 2011
49
3
0
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.
 
Last edited:

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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...
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?
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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.
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.
 
  • Like
Reactions: FabMan_UK
S

suruceanu.nick

Guest
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?
No i didnt install it was alredy instaled with CM10, version 1.20.2-jb.
 

FabMan_UK

Member
Oct 7, 2011
49
3
0
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.
Thanks for this, yep, silly move by me. MiniTool defaults to logical, also first partition has to be active.
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone