[HOWTO] Expand storage space with Link2SD and SDExt2Mounter

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
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
Can you manually mount the partition to /data/sdext2, using the shell commands of the OP?
 

tcollum

Senior Member
Feb 10, 2011
142
57
0
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?
 

WhoDunnit

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

tcollum

Senior Member
Feb 10, 2011
142
57
0
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?
 

WhoDunnit

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

cronikman84

Senior Member
Dec 8, 2012
241
38
0
Holyoke
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.
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"...
 

czucker

Senior Member
Dec 21, 2011
81
22
0
Brooklyn, NYC
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

Sent from my Ouya using xda app-developers app
 

PickleFart9

Member
Mar 29, 2012
43
2
0
Quote:
Originally Posted by 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


Can you manually mount the partition to /data/sdext2, using the shell commands of the OP?
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.
 

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
I am finally getting this all working on StockPlus. The app does not work, even after manually mounting the partition using terminal shell it does not recognize it as being mounted. Since StockPlus has built in init.d I am trying to make that script work, but my Logitech unifying receiver may be causing a problem with mounting during boot.

I've been at it for a while now. Somehow even lost Bluetooth completely until I unplugged and reset it. No dice on getting link2sd to recognize the drive partition on boot. It just says SD card 2nd partition not found even when I set it up plugged directly in to OUYA. Any advice? Maybe I'll install universal init.d and check for sure that the Rom is implementing it.

Well that was it, the current version of StockPlus does not implement init.d, what an unbelievable amount of time I've wasted troubleshooting this. Thank goodness universal init.d actually tests this.

The good news is I'm up and running, the bad news is it's a quarter to four in the morning.
Sent from my Nexus 7 using Tapatalk 4
 
Last edited:

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
just out of curiosity, would it be possible to tweak one of these scripts here?

[CronMod-INT2EXT
Certainly, but with the same rate of success as this script. There will always be a race for mounting the USB drive in time before trying to access data on it. Depending on the exact configuration of your device (rom and accessories) , result may vary.

Sent from my GT-I9300 using XDA Premium 4 mobile app
 

WhoDunnit

Senior Member
Sep 10, 2007
185
299
103
Maybe I'll install universal init.d and check for sure that the Rom is implementing it.


The good news is I'm up and running, the bad news is it's a quarter to four in the morning.
Sent from my Nexus 7 using Tapatalk 4
I doubt you will have any luck with universal init.d since my app and universal use the same trick to get something done at boot time.

It really depends on your rom and accessories if thus method will work for you. My guess is that stockplus has removed the mechanism we used for boot time action.

Bottom line is that if you cannot mount the partition manually, these methods will fail. If you find out how to manually mount the second partition then tell me and I will add it to the app.

Sent from my GT-I9300 using XDA Premium 4 mobile app
 

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
I doubt you will have any luck with universal init.d since my app and universal use the same trick to get something done at boot time.

It really depends on your rom and accessories if thus method will work for you. My guess is that stockplus has removed the mechanism we used for boot time action.

Bottom line is that if you cannot mount the partition manually, these methods will fail. If you find out how to manually mount the second partition then tell me and I will add it to the app.

Sent from my GT-I9300 using XDA Premium 4 mobile app
I dunno, the OUYA hiccups for such random things it is really difficult to pin down errors. As of last night external storage was working. I need to run through all of my settings again though and double check init.d support in StockPlus. I'm using universal init.d at the moment, but want to check and see if the native support is working. With Bluetooth failing at one point during the night, who knows what bugs were popping up. I'm not faulting StockPlus, the stock code itself is full of glitches.

What I have is a 1TB Buffalo ministation split fairly equally in to ext4 and Fat32 (I tried to get Paragon NTFS working but gave up). I I'm using Android Tuner Pro and Folder Mount to do all of the work. I used terminal shell in AT and was able to mount the drive manually by typing "su" and then the mount command. . It was here I had all of the headaches getting the drive to mount at boot, then in the end used ES File Explorer to get the script in place . Once sorted out I looked at using Android Tuner vs. Link to SD to move apps on to ext4 partition. I finally decided on Android Tuner because of all of the other features I already use including backups and system tweaks. For the data folders Folder Mount is a cinch to use.

The only thing left to do now is sort out Nova launcher. For some reason when add shortcut for new apps is enabled, after boot new shortcuts for linked apps begin adding to home screen. The screens became a mess, so I cleared it all and will build new folders in the app drawer from scratch.
 

tcollum

Senior Member
Feb 10, 2011
142
57
0
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.
THIS! Although I have the same problem, but without an XBox adapter. The only other thing I have plugged into my hub is a keyboard/mouse combo.
 

PHYSC-1

Senior Member
Aug 11, 2013
147
29
0
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 :D
Sorry to be a pain or seem silly,but does what you just said mean there is no need to use link2sd if you use the 2 files?
 
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