yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson XPERIA X10 Mini] galvic:
***Apps2sd on 2.1 for noobs***

Alright you'll be needing rooted phone, for that you can use z4root(i'll attach the download link)

Step I	: Firstly root your device using z4root or anyother way you prefer, as it is for noobs I would suggest using z4root.

Step II	: Now u need to make two partiton on your memory card, i would suggest you to bak up all your data before starting

Step III	: Downlaod Mini Tools Partition Wizard(i'll attach the link)

Step IV	: Run the .exe file and mount your SD card on the computer, now open Mini Too s wizard and right click on removable disk then select delete	partition(make sure you've backed up your data).

Step V	: Right click on the removable disk, select create partition, make the file system as FAT and make it primary, assign any volume label and adjust size	of the label according to your need(this will be your partition for normal storage)

Step VI	: Right click on the removable disk, select create partition, make the file system as FAT32 and make it primary too, assign any volume label and	leave the size of label untouched(this will be your partition for APP storage)

Step VII	: Mount the SD card on the device, give a reboot. (dont be bothered about any "blank SD card errors etc reboot will fix 'em)

Step VIII	: Now you've 2nd partition on your SD card, now open market download Links2SD application, open app and grant it root privelages and it'll ask for a reboot, give a reboot and now u can select apps and link them to the second partition of your SD card.

Required files:

Mini tools partition wizard: http://download.cnet.com/Partition-...62200.html?part=dl-6285158&subj=dl&tag=button

z4root	: http://xdaforums.com/attachment.php?attachmentid=446145&d=1290341328
[Sony Ericsson XPERIA X10 Mini] khakhi:
In your pc open up a dos terminal box by typing cmd in the Search programs and files box.

Type

cd /adb

then type

adb shell

then type

sh /sdcard/app2sd.sh

you'll be presented by this screen...

+________________________________+

|********************************|

|*Welcome To wolfilein's App2sd *|

|*installing script *|

|********************************|

+--------------------------------+

~this version should be go on any device ~

+___________________+

|********************|

|* Menu *|

|* *|

|*[0] install app2sd*|

|*[1] remove app2sd *|

|*[2] exit *|

|********************|

+--------------------+

[0]

now just press the enter key & wait.

Important : Make sure to set your phone screen timeout to the max because Superuser will ask for your permission to allow this script to run. If your screen goes blank, you can't see this prompt and the installation will fail.

after a while you'll get this..

busybox is /system/bin/busybox

rm failed for /etc/mount_sd.sh, No such file or directory

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+

Don't worry, actually it does not fail. I also got the same message and I also thought it failed but when install all the apps and check using Minitool Partition Wizard and Linux Reader for windows, all my applications are installed into my card (see my previous post with screenshot).

The Explanation

If you look through the app2sd.sh script, command rm /etc/mount_sd.sh means remove/delete the mount_sd.sh file from /etc folder, since that file does not exist in the fresh install phone, it gives this error message but continue with other commands..

rm /etc/mount_sd.sh

mv /system/bin/sh /system/bin/sh_bak

cat /sdcard/sh.sh > /system/bin/sh

chmod 777 /system/bin/sh

busybox cp /sdcard/mount_sd.sh /etc/mount_sd.sh

echo "

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+

"

sleep 1

reboot

Finally after a reboot, your phone is ready with app2sd. From now on when you install any applications it will save into your sd card.

Disclaimer : Do this at your own risk. I will not responsible if any injuries or damage occur to you or your phone ;)[/QUOTE]

When i go into dos and enter the commands you stated....do i have to press "enter" on all of them? because when i do i get an error. pls help me
[Sony Ericsson XPERIA X10 Mini] syammar:
hi guys ...

i made all the instruction in the first page .. i mean i had ext2 partion and all things and i installed app2sd such as u said but when i go to install a new app the phone said that no memory avaliable and go to manage apps to delete and free space

although i have free memory in my sdcard

that mean app2sd not working .. what should i do ??

please help ...

sorry for bad english
[Sony Ericsson XPERIA X10 Mini] cmsweet21:
i got an error in cmd promt please help >.<

this is the error "permission denied"

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Aimer>cd adb

C:\Documents and Settings\Aimer\adb>adb shell

adb server is out of date. killing...

* daemon started successfully *

$ /sdcard/app2sd.sh

/sdcard/app2sd.sh

/sdcard/app2sd.sh: permission denied

$ sdcard/app2sd.sh

sdcard/app2sd.sh

sdcard/app2sd.sh: permission denied

$ sh/sdcard/app2sd.sh

sh/sdcard/app2sd.sh

sh/sdcard/app2sd.sh: not found

$ sdcard/app2sd.sh

sdcard/app2sd.sh

sdcard/app2sd.sh: permission denied

$ sdcard/app2sd.sh

sdcard/app2sd.sh

sdcard/app2sd.sh: permission denied

$

or i also try this

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Aimer>cd adb

C:\Documents and Settings\Aimer\adb>adb shell

$ sh /sdcard/app2sd.sh

sh /sdcard/app2sd.sh

sh: Can't open /sdcard/app2sd.sh

$
[Sony Ericsson XPERIA X10 Mini] bananclaus:
FANTASTIC!!!!

This is working perfect on X10 mini.

Tnx.

Claus
[Sony Ericsson XPERIA X10 Mini] li_boud:
Do you have your phone rooted? You need a rooted phone in order to have a working app2SD.

root your phone and start rootshell. (you should have a # prompt, not $ prompt)

There are literally 100s of posts in this thread explaining exactly how to install this, still some people cant figure this out?

A suggestions: If you can not figure out how to install it, even after reading all the tutorials/posts in this thread, I'd suggest you give up, don't try. Chances are you will screw up something that you don't understand. That will leave your phone bricked/unusable.
[Sony Ericsson XPERIA X10 Mini] mangoman:
whats wrong with link2sd? works fine here (so far) and easy
[Sony Ericsson XPERIA X10 Mini] jnightz:
I read about link2sd

https://market.android.com/details?id=com.buak.Link2SD

I have doubts about this note:

On SE X10 mini how to add shortcuts?

Thanks.
[Sony Ericsson XPERIA X10 Mini] lavier:
gyz can ny1 help

i have a 2GB memory card with app2sd enabled................

i want to change it to 4GB what shud i do???????

juz wanted to kno if i should flash ma phone while changing ma memory card or juz put a partitioned memory card and restart the phone????????????

Plz Reply Quick
[Sony Ericsson XPERIA X10 Mini] cosmo1:
it does not work :(

it sais permission denied,the phone was rooted with SuperOneClick 1.9.5 and with z4root.haw can ai check if the phone is rooted?ai have the icon for superuser in the meniu and the memori card is partitioned
[Sony Ericsson XPERIA X10 Mini] Xeos14:
sir do i have to format my sdcard? or is it ok not to? coz i have already xrecovery, root explorer, superuser on my sdcard
[Sony Ericsson XPERIA X10 Mini] Xeos14:
pls help guys,
[Sony Ericsson XPERIA X10 Mini] dave481985:
if you want to use the method described in this thread you have to partition your sd card as stated in the quoted part from galvic

and on stock rom this works fine

also link2sd works (also an ext2 partition is required in this, havent used it myself, you can search it, there are a lot of threads here and in general for this)

if you dont want the hassle of partitioning your sd you can flash a custom 2.2 , 2.3 rom and have native app2sd, without partitioning of the sd card, from inside the os with a few clicks

now if formatting is your concern you can backup its current contents , format it, partition it and replace them where they were originally (in fat32 partition)

root explorer, superuser are not installed in your sd card but in your internal memory (if you dont have app2sd) and xrecovery has only a folder in which backups are stored so it is safe to move it, format the sd and partition , and move it back in place, as for all folders

remember if you decide to use app2sd you must never remove your sd with your phone powered on, or power your phone with the sd removed
[Sony Ericsson XPERIA X10 Mini] gdavies08:
i reckon this should be a sticky as this phone gets sluggish quick
[Sony Ericsson XPERIA X10 Mini] Rosered:
thnx works great on a sony xperia x10 mini pro

stock rom then and rooted

kisses

Rose
[Sony Ericsson XPERIA X10 Mini] thisab:
Something went wrong and the file 'sh' has root-only permissions! I followed the steps and it rebooted.

How do I fix this? I tried Root explorer but it crashed, terminal emulator also crashes (as expected, as the bash is root only).

Both Ghost and ES explorer don't work either..
[Sony Ericsson XPERIA X10 Mini] psycmos:
link2sd

Use link2sd.apk, i saw this in wiki and this uses the scripts of app2sd but very simple to install. download it from market and format your sd-card via CWM and create partition in Advance mode, choose your size partition and put 0 on swap partition and link2sd will work...
[Sony Ericsson XPERIA X10 Mini] arsyshell:
after first restart, phone turn on, then i type in cmd:

* daemon not running. starting it now *
* daemon started successfully *
$ rm /etc/mount_sd.sh
rm /etc/mount_sd.sh
rm failed for /etc/mount_sd.sh, Read-only file system
$ mv /system/bin/sh /system/bin/sh_bak
mv /system/bin/sh /system/bin/sh_bak
failed on '/system/bin/sh' - Read-only file system
$

What wrong here? i can't follow these steps...

Edit : YEAAHH I GOT IT!!!
[Sony Ericsson XPERIA X10 Mini] :
..

apps wont't use internal memory for storage only SD CARD ?
[Sony Ericsson XPERIA X10 Mini] batemann:
did your phone just hang on the se logo or rebootet?

if your phone rebootet very quick how did u fixed the mount point?

i tryd to follow your steps but forgott to chmod ln. so now im here with a rebooting phone :D

sick of flashing my phone over and over again. so is there a way to fix the chmod on the fly?
[Sony Ericsson XPERIA X10 Mini] wolfilein:
also i stop work for this because i haven't a x10 mini and here aren't many people who wanrt to help me :)

but if anyone want to help please upload the init.rc
[Sony Ericsson XPERIA X10 Mini] batemann:
if u have some spare time and any kind of a messanger i could help you.

but since i need my phone i cant play with most of the time ;) would be nice if we can

get this done in one session
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@ batemann have you skype or icq?
[Sony Ericsson XPERIA X10 Mini] li_boud:
My phone was just hanging at the boot screen..

If it doesnt give you enough time to execute commands, you can try executing a shell script through adb.. You can connect to adb just when phone boots and loads adbd driver, provided you already have usb debugging enabled.
[Sony Ericsson XPERIA X10 Mini] link87:
here is mi init.rc file uploaded to my dropbox:

http://dl.dropbox.com/u/10538027/init.rc
[Sony Ericsson XPERIA X10 Mini] wolfilein:
finally it works :)

thanks to batman for his help

i will edit my scripts an upload it in 15 min + -

wolfilein
[Sony Ericsson XPERIA X10 Mini] wolfilein:
so upoad the new version

finished
[Sony Ericsson XPERIA X10 Mini] Manny-:
Great! :D Does it work on the mini?
[Sony Ericsson XPERIA X10 Mini] svprm:
I don't have computer.

Shall I try it on better terminal emulator?
[Sony Ericsson XPERIA X10 Mini] link87:
so, the steps for using app2sd are:

1. make 2 partitions on the sd card, 1) ext2 2) fat32

2. execute the app2sd.sh script.

Is that correct?

And then, how can I install apps in the sdcard instead of the phone internal memory?

Thanks for the help, and thanks to wolfilein because of the script development.
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@all if it works on termianl emu i don't now but i should work

this should work also for the mini
[Sony Ericsson XPERIA X10 Mini] Manny-:
Can someone please explain every step needed to do this properly will help a lot!
[Sony Ericsson XPERIA X10 Mini] svprm:
I'm having mini pro.

Anybody try it on Terminal Emulator? And tell me.
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@ manny

what is your proplem

??
[Sony Ericsson XPERIA X10 Mini] rie_co:
please give me step by step how to install this.....

i lost all installed Application except Superuser apk

C:\android-sdk-windows\tools>adb shell

$ su

su

# sh /sdcard/app2sd.sh

sh /sdcard/app2sd.sh

+________________________________+

|********************************|

|*Welcome To wolfilein's App2sd *|

|*installing script *|

|********************************|

+--------------------------------+

~this version should be go on any device ~

+___________________+

|********************|

|* Menu *|

|* *|

|*[0] install app2sd*|

|*[1] remove app2sd *|

|*[2] exit *|

|********************|

+--------------------+

[0]0

0

mkdir failed for /system/sd, File exists

mount: No such file or directory

busybox is /system/bin/busybox

[1] Illegal instruction busybox cp -a /d...

mkdir failed for /data/appbak, File exists

[1] Illegal instruction busybox cp -a /d...

[1] Illegal instruction busybox sh <<...

rm failed for /etc/mount_sd.sh, No such file or directory

[1] Illegal instruction busybox cp /sdca...

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+
[Sony Ericsson XPERIA X10 Mini] wolfilein:
please remove busybox because it seems that busybox isn't install correctly
[Sony Ericsson XPERIA X10 Mini] rie_co:
in sdcard? or in /system/bin/busybox ??
[Sony Ericsson XPERIA X10 Mini] wolfilein:
in /system/bin/busybox
[Sony Ericsson XPERIA X10 Mini] li_boud:
The first partition should be vfat/fat 32 and make second partition as ext2. If you make first partition as ext2, sd card will not be recognised by a win pc.
[Sony Ericsson XPERIA X10 Mini] dinho-jrs:
ok!!

In my x10 mini is perfect, very thanks!!
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
Sir what am i doing wrong here?
[Sony Ericsson XPERIA X10 Mini] wolfilein:
it seems it's ok
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
You were right sir! I had to check internal memory and my sdcard on minitoolpartition to see that apps take space on ext2!

It is working perfect!

I cant remember being so much excited since i bought this phone!

For once again thank you!
[Sony Ericsson XPERIA X10 Mini] rie_co:
+___________________+

|********************|

|* Menu *|

|* *|

|*[0] install app2sd*|

|*[1] remove app2sd *|

|*[2] exit *|

|********************|

+--------------------+

[0]0

0

mkdir failed for /system/sd, File exists

mount: Invalid argument

busybox: not found

mkdir failed for /system/xbin, File exists

mkdir failed for /data/appbak, File exists

nohup: appending output to nohup.out

rm failed for /etc/mount_sd.sh, No such file or directory

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+

whats wrong?

i tried again with tutorial partitioning in page 1:

+___________________+

|********************|

|* Menu *|

|* *|

|*[0] install app2sd*|

|*[1] remove app2sd *|

|*[2] exit *|

|********************|

+--------------------+

[0]0

0

mkdir failed for /system/sd, File exists

mount: Device or resource busy

busybox is /system/xbin/busybox

mkdir failed for /data/appbak, File exists

nohup: appending output to nohup.out

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+

help please
[Sony Ericsson XPERIA X10 Mini] :
Tried to follow the instructions using my X10 mini but doesnt work. Also recieve messages same as above.

mkdir failed for /system/sd, File exists

mount: Device or resource busy

busybox is /system/xbin/busybox

cp: cannot stat '/system/sd/app/app': Stale NFS file handle

mkdir failed for /data/appbak, File exists

cp: cannot create '/data/appbak/app': File exists

nohup: appending output to nohup.out
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@both

You tried to install it over a already installed version please make a factory reset or.yuse seus tjen install it again
[Sony Ericsson XPERIA X10 Mini] Manny-:
@wolfilein

How do i partition my memory card (8GB) using ADB alone, i don't have a G1 or any other phone only the X10 mini and i have a card reader...
[Sony Ericsson XPERIA X10 Mini] li_boud:
If you have a card reader you can use miniTool partition wizard home edition to create fat and ext2 partition.

ADB doent provide partition tools, you need parted or something like that..
[Sony Ericsson XPERIA X10 Mini] Manny-:
My phone is hanging on SE logo now please help it said something like:

'Illegal instruction

busybox is /system/bin/busybox'

do i have to reflash my phone to get it to continue boot from logo now? this is why i said it would be great if someone posted a full tut on how to do it :(
[Sony Ericsson XPERIA X10 Mini] wolfilein:
the sameerror like the others

your installed version of busbybox don't work correctly

please remove busybox with

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

rm /system/bin/busybox

and run my script again if this doen't work

use SEUS to reset you phone and root you phone again witout installing busybox
[Sony Ericsson XPERIA X10 Mini] fizfaka:
i manage to install app2sd,

BUT, after rebooting the fon , he stuck at the sony logo.

the reason is, he trying so find the file in the internel memory.

their is any other way so that the fon will mount the sdcard even after rebooting?
[Sony Ericsson XPERIA X10 Mini] link87:
I've been taking a look to the sourcecode of your script... I dont know a lot about bash scripting, but I think the "not working busybox problem" could be easily solved removing this "if" condition:

if type busybox
then
else
mkdir /system/xbin
cat /sdcard/busybox > /system/xbin/busybox
chmod 4755 /system/xbin/busybox
/system/xbin/busybox --install -s /system/xbin/
fi

I mean, why don't install your busybox version without conditions?

Am I right?

I have more questions. I'm not sure about what the script actualy do: does it install all the apps of the phone in sdcard? When you install a new app it is installed on sd directly or it's posible to chose where to install it (phone mem / sd card)? where sould the ext partition be? first or second partition? doesn't matter?

Thanks, and sorry for all the questions.
[Sony Ericsson XPERIA X10 Mini] Manny-:
double post... sorry
[Sony Ericsson XPERIA X10 Mini] Manny-:
can u tell me how u did this: 'I had to check internal memory and my sdcard on minitoolpartition to see that apps take space on ext2!'?
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
If you connect your sdcard to your card-reader and open it with miniToolpartition, it is showing how much space is occupied in the first partition(FAT) and how much in the second one(ext2).

PS:It just shows the occupied space, NOT the files in it. Windows can't see ext2 partitions.
[Sony Ericsson XPERIA X10 Mini] batemann:
new apps will be installed directly to the sd card without asking.

1. partition fat32

2. partition ext2

as far as i understand the install script it will try to mount partition 2 on the sd card. so yes it matters. also if u connect ur phone with via usb and want to access the sd card (fat32 partition) its must be in that order.
[Sony Ericsson XPERIA X10 Mini] li_boud:
If your phone hangs on se logo, you can connect through adb, log in as root, restore the data/app and reboot again, the phone should work fine.
[Sony Ericsson XPERIA X10 Mini] wolfilein:
sry i hasn't time to answer

i would say the if is there to check if you have already an installed version of busybox and if yes use it because it isnt good if you install two busybox versions if you phone hang on boot please open an adb shell and give in

ln

then it should boot normaly
[Sony Ericsson XPERIA X10 Mini] link87:
And, wouldn't it be better to uninstall the current busybox version and install the new one?

thanks batemann. And the current apps (those that were in the phone before run app2sd script), Are they moved to sd?

Thanks
[Sony Ericsson XPERIA X10 Mini] Manny-:
I give up, been working on this since 1pm :mad: had no luck whats so ever did everything i could... still not worked out at all, n above all ive had to flash my phone for no reason, have lost everything...

it really would be great if someone did post a full guide on how to do this it may be that i have missed a small part out but im totally new to adb you see... so if someone can please post a total step by step guide I would APPRECIATE it

PS... flashing my phone once more because it seems i had messed my internal system up :(...
[Sony Ericsson XPERIA X10 Mini] wolfilein:
sry for you

but normaly this guide is so easy that everyone understand it
[Sony Ericsson XPERIA X10 Mini] st-tps:
Thanks for a great work on this wolfilein!

I have one question for you before I apply the script:

Is there any way to check if the busybox I use it the right one? I use the one downloaded by Titanium Backup, don´t really know any version-nr on it.

Or can I remove the old busybox and replace it with the one in your zip-file?

Whats the best thing to do to avoid unnecessary trouble..?

Greetings
[Sony Ericsson XPERIA X10 Mini] wolfilein:
if it works it should be ok
[Sony Ericsson XPERIA X10 Mini] st-tps:
Did not work with the original busybox so I removed it and tried again.

Everything seemed fine at first but all my apps installed at /data/app is now gone.

And the folder /data/app is no long a folder, it´s a 0-byte file instead.

If I check in /System/sd/ I have about 1gb free space but the folder app is no folder there either.

Any suggestions here?

A belive all apps are gone forever but I have made a backup with Titanium Backup so it´s Ok.

But whats the error? Why doesn´t my /data/app show up as a folder??
[Sony Ericsson XPERIA X10 Mini] wolfilein:
Please use?seus befor you try it aigain?if it had failed before
[Sony Ericsson XPERIA X10 Mini] Manny-:
@wolfilein

the problem is that the app file needs to be a folder... im having the same problem...

also check this out:

mkdir: cannot create directory '/system/sd': File exists(<- ok)

busybox is /system/sbin/busybox (<- thats ok)

mkdir: cannot create directory '/data/appbak': File exists (<- thats ok)

rm: cannot remove '/etc/mount_sd.sh': No such file or directory (<- this is just weird)

mv: cannot rename '/system/bin/ln': No such file or directory (<- whats this?)
[Sony Ericsson XPERIA X10 Mini] wolfilein:
it seems that all it's ok ?
[Sony Ericsson XPERIA X10 Mini] oversim:
After this mod, app folder is not a real folder, but it's a link.

ln -s /system/sd/app /data/app

what do you mean here?
[Sony Ericsson XPERIA X10 Mini] wolfilein:
no :)

tested on mini pro and another one had get it worked on the mini to