yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] resofty:
Could you modify the script to move /cache too?

Thank you!
[Optimus One, P500 Original Android Development] lolphirae:
No need. Stick

dalvik.vm.dexopt-data-only=1

to /system/build.prop
[Optimus One, P500 Original Android Development] jimbrechin:
I've tried S2E, Link2SD, Apps2SD and none has worked for me. These scripts have worked very well, fantastic. I am using Cyanogenmod 9.0.0 - Rev RC2 - Cryptomolk- Alpha7.

Thanks

Jim
[Optimus One, P500 Original Android Development] andy4uall:
Will this script work on Oxygen ICS from? If yes then how can I move dalvik-cache to sd-ext?
[Optimus One, P500 Original Android Development] lolphirae:
Read the first post.
[Optimus One, P500 Original Android Development] valent|n0:
can I use multirom manager with this?

http://xdaforums.com/showthread.php?t=1828151

if so what is the step ??
[Optimus One, P500 Original Android Development] valent|n0:
is this work with gingerbread Oxygen 2.3?
[Optimus One, P500 Original Android Development] harshdoshi25:
question + IDEA !

hey Davis ! was just wondering if u could put another script for those who want to move data/data to sd-ext/data ?? like in simple2ext (s2e) its possible. thats the only advantage s2e seems to have over this.. and i very much preffer this over s2e cuz of its simplicity (: cheers ! :D

edit: or to rephrase it, whats the advantage over s2e ?? is the technicalities different ? (that is method of moving ? o.O ) anyways cheers !!! :D :laugh: :) ;) :good: :highfive:
[Optimus One, P500 Original Android Development] DavisNT:
Move to sd-ext is much more simple solution than S2E. S2E is application with various options available in GUI, it does all the staff in init.d script. Move to sd-ext is several files flashable via recovery. They are kept as simple as possible. The work of moving is done via recovery, mounting of /sd-ext is done via modified (to be able to mount any filesystem supported in kernel, e.g. ext4) CM 7 mount script.

About moving /data/data, it may degrade performance a bit more and wear sd card a lot more... I think moving entire /data/data is not a good idea (of course if many people will need it I can make it)...
[Optimus One, P500 Original Android Development] harshdoshi25:
:D somehow, even though my phone's hardware isn't good enough for 806mhz, it seems good enough for moving entire /data to ext! :D

Using s2e right now, and no performance problem whatsoever! And that's exactly why I want to use your script, no gui and simplistic. (yeah, GUI is too n00bish :p)
[Optimus One, P500 Original Android Development] mrcorey:
After link2SD let me down yet again, I gave your script a try. I had to change my recovery from cwm 5.0.2.7 to Amon RA to flash the 2nd script . Seems to be working very well on gingersnap 2.0 and the ext4 partition I created with cwm. Thanks
[Optimus One, P500 Original Android Development] emyller:
This mod is a great tweak, very simple and functional. Congrats. I sincerely don't know why it remains so "unknown" among the community.

I've been using it on CM9, and it worked great. I am now testing it on Jelly Bean (PA 2.2) and been facing issues. Suddenly, the sd-ext becomes not mount-able and for some obscure reason, I lose everything I had in /data/app, forcing me to start all the installation over. Is there any failure reports regarding Android 4.1+?

Right now, I just ran a ``dd if=/dev/zero`` on my SD card and will test it again, to make sure it was not a problem about the partition table/structure. Will post results.

Thanks.
[Optimus One, P500 Original Android Development] brownsmell:
I am using hephappy's ICS 9.1.1 final, just upgraded. My SD card was already partitioned.

I flashed the 1st zip for this patch and it worked.

I flashed the second zip and got this error:

assert failed: in_mounted"data") == "/data" && is_mounted("sd-ext").... status 7.

This looks like a partitioning error since it says those locations are mounted. How did u guys partition, just use the Advanced>Partition SD option in recovery?

I repartitioned it with the max sizes offered and still get the error.
[Optimus One, P500 Original Android Development] Abhiroxx:
Am using gingerdx with link2sd.... can I use this script without wiping data or reflashing Rom??

Sent Via Optimus One
[Optimus One, P500 Original Android Development] eagledipesh:
ERROR while flashing 2nd zip

I have done complete wipe and reinstalled the CM10 rom by rashed using CWM 5.2.0.7, followed the installintion procress mentioned by you in the first thread, however while flashing 2nd zip recovery throws error, Script assert failed status 7, Line isMounted(

Please help, let me know if i am doing anything wrong.
[Optimus One, P500 Original Android Development] emyller:
Works.

As I promised, I'm coming back to report status of functionality.

I just zero-filled my sd card completely, to avoid blaming this project for my own hardware failure. Fortunately, everything is working perfectly so far, after two weeks of usage.

I'm currently running Paranoid Android 2.2 (Android 4.1.2), and flashed your zip files using CWMR 5.0.2.0. No errors from installation to intense usage. I surely recommend it to everyone.

Cheers.
[Optimus One, P500 Original Android Development] b1ggjoe:
Davis NT,

Quick question:

When this script is running successfully the way you designed it; If we were to look at 'Settings ==> Storage' under 'Internal Storage/Total Space'...should it display the size/capacity and the available space of the EXT 2/3/4 partition or will it just say the normal '165MB Total Space'.

Thanks!

BJ

---------- Post added at 05:33 PM ---------- Previous post was at 04:34 PM ----------

Has anyone been able to do what is described above and have it report the size/capacity and the available space of the EXT 2/3/4 partition?

Thanks!

BJ

:cool:
[Optimus One, P500 Original Android Development] emyller:
It will display the normal size of the data partition (which is up to 200mb), because all the magic is done by just symlink'ing to sd-ext. The actual device remains the same, so it shouldn't change. One thing you will notice, though, is that there will be always a lot of free space on it. ;)
[Optimus One, P500 Original Android Development] rush2ashu:
please please

Hi Dev,

I was using this app for a long time now.

But yesterday my mistake i formatted my SD-Card... lost everything. :eek:

I have now created a new partition on my sd-card but the SD-Card is not getting mounted.

when I enter Clockworkmod recovery, i see the files on my SD-Card. I am able to Flash ROMS as well.

But once I boot into Android, open File manager and try entering SD-Card folder it tells " SD CARD NOT mounted"

I tried with the Emulator, I don't get any output for mount | grep sd-ext

I have Formatted and partitioned my SD-card like this.

Please help me to resolve this as soon as possible.
[Optimus One, P500 Original Android Development] post-mortem:
This script hasn't been updated since May 2012, and the OP's last post on XDA was October 2012. If it's not working, I suggest you try Mounts2SD or Int2ext, instead.
[Optimus One, P500 Original Android Development] DavisNT:
What ROM are you using?

Have you flashed sd-ext_patch-signed-vXX.zip?
[Optimus One, P500 Original Android Development] rush2ashu:
OMG, thanks for Replying DavisNT

Hi DavisNT,

I seriously need your help. Thanks for replying.

I think I have screwed my SDCARD. I am not able to mount my FAT32 partition on SD CARD in Android OS.

I am currently using CM 10.1 Jenkins ROM on my P500.

During Flashing of this ROM, I have made a mistake or Running the sd-ext_patch-signed-vXX.zip before actually running the ROM zip file.

That has corrupted my Partition's file.

I have a 32GB card. around 27 GB is FAT32 Primary partition which is set to Active.

I have around 2GB of EXT4 partition which is logical and set to inactive. I am able to see the FAT32 partition in ClockwodRecovery, but when i boot into the ROM. I am not able to see the SD-CARD.

Mounts2SD reports invalid init.d scripts. I can't open any application which refers to SD_card like camera, rom manager or anything.

Here is the partition info that is displayed under settings->About Phone -> Partition info

/System

190MB/190MB

/data

162MB/200MB

/cache

1.14MB/64.00MB

/sdcard (FAT)

0.00B/207MB

/sd-ext (EXT)

0.00B/0.00B

After this above mistake. I tried numerous times flashing the ROM.. different ROMs...

1. installed the new ROM

2. ran sd-ext_patch-signed-vXX.zip

3. Boot into the the first Boot.

4. Reboot into recovery

5. Flash to_sd-ext_patch-signed-v10.zip.

( This step was not successful. here is the screen log.

Mounting sd-ext...

Verifying mounts...

assert failed: is_mounted("/data") == "/data" && is_mounted("/sd-ext")

E:unkown command [==]

E:Error in /sdcard/step2/to_sd-ext_patch-signed-v10.zip ( Status 7)

Installation aborted.

)

6. Boot into Android

7. Reboot into recovery

8. Flash the Gapps.

Another thing, I wanted to add here is when I am trying to clear all data and install a new rom.

I get a error in Recovery when i Wipe /sd-ext

E: Can't mount /dev/block/mmcblk0p2 ( Invalid Argument)

Error mounting /sd-ext/ !

Please help me...
[Optimus One, P500 Original Android Development] allenwalker1998:
Bad file download?
[Optimus One, P500 Original Android Development] rush2ashu:
No

No allenwalker1998. The Zip is fine. I made a mistake of flashing the first ROM in OP before The actual ROM flashing.

That is because i was using move to SD-ext . was very happy.. didn't changed my ROM for 4-5 months.

As I got to know that 4.2.2 is working in P500.. couldn't resist.

I rem the steps, but didn't followed the exact steps as in the OP. Human Error. Feeling very Sorry for that now
[Optimus One, P500 Original Android Development] DavisNT:
sd-ext_patch-signed-vXX.zip writes only to /system partition, so any changes it did should be overwritten by ROM install.

If I understood you correctly you don't have any data that should be rescued and you want to simply repair the phone?

Have you tried to install the same ROM that worked fine?

You can repartition your sdcard in AmonRa recovery (repartitioning will erase all data on SDcard). AmonRa can be downloaded from this thread http://xdaforums.com/showthread.php?t=1523050.
[Optimus One, P500 Original Android Development] rush2ashu:
Thanks

HI DavisNT,

Thanks for the reply,

1. Yes, I don't have any data that should be rescued.

2. I have tried the same ROM, but the SD CARD in not mounting in this ROM. I checked in the ROM thread as well.. no body is facing this issue.

3. I used Partition magic to partition my SD-CARD. I have done the same partition as informed in my previous post.

4. I am able to install the ROM. only problem is SC card in not mounting. And I guess it is pointing to a different partition all together.

Which file does the ROM refer to for this partition details?. editing that directly ... will that help?

can it be problem with the CMW recovery? I see the SDcard in Recovery and once i come out ... the SD-CARD in inaccessible.
[Optimus One, P500 Original Android Development] DavisNT:
I don't remember exact partition layout of SDcard. I suggest installing AmonRa and partitioning SDcard from there. AFAIK ClockworkmodRecovery can't partition SDcard from UI.
[Optimus One, P500 Original Android Development] rush2ashu:
Thank you very much.

Thanks DavisNT,

It worked. Installing AmonRa and partitioning SDcard from there. :good:

After this mistake. I want to be extra sure. I am following these steps.

1. Installed the new ROM

2. ran sd-ext_patch-signed-vXX.zip

3. Boot into the the first Boot.

4. Reboot into recovery

5. Flash to_sd-ext_patch-signed-v10.zip.

6. Boot into Android

7. Reboot into recovery

8. Flash the Gapps.

or can i move point 8 to point 5?
[Optimus One, P500 Original Android Development] DavisNT:
Install my mod after installing Gapps.

Move 8. just before 5.

Alternatively you can move 8. just before 2. (if you don't reboot between ROM and Gapps installs).
[Optimus One, P500 Original Android Development] rush2ashu:
I am in another fix, Is it right to do this,....

Hi Davis,

I am currently using cm10.1 RC0 provided by Jenkins and Rashed on my p500. Now they have released cm10.1 RC3 and I want to upgrade to that ROM.

I tried following the same steps like:

Golden Rule: Create Nand Backup...

1. Cleared the data / cache and dalvik cache

2. Installed the new trimmed rom ( that will leave aroung 30 MB space in my internal)

3. ran sd-ext_patch-signed-vXX.zip

4. installed Gapps

5. Flash to_sd-ext_patch-signed-v10.zip.

6. Reboot

7. After that Android will restore all my apps.. and all apps should automatically install in sd-ext on my Sd-card.... rit?
[Optimus One, P500 Original Android Development] rush2ashu:
I got thisit Error while tryin step 5

ERROR: /data/app-private not found

called abort()

E: Error in /sdcard/to_sd_ext_patch-signed-v10.zip

(status 7)

Installation Aborted
[Optimus One, P500 Original Android Development] mcd_legend:
i git the same error using amonra ...

however i used cwm and formatted sdext with it .... after that it installs

but then also it didnt reboot

i formatted data and tried again ... same problem ... cannt get it to boot after that

---------- Post added at 08:44 PM ---------- Previous post was at 08:42 PM ----------

rc3 has gapps included

btw could you get this mod working ??
[Optimus One, P500 Original Android Development] rush2ashu:
YES, this mod is the best

Yes,.. and I am sure this is the best mod2sd ....

no data is stored in internal memory as against lin2sd and others

neither complicated... once done during installing the ROM.. done.. no managing is required.
[Optimus One, P500 Original Android Development] mcd_legend:
can you tell me exact procedure ??

i have wasted whole day trying all permutations and combinations

chemical engineering doesnt help much :P
[Optimus One, P500 Original Android Development] rush2ashu:
Update

I am currently using the same.

I have a 32 gb sd card which i have partitioned to have 6GB sd-ext... and all apps are installed in that space.

I usually have 50 - 70 mb free in my internal :)

See some of my previous post in this same thread.
[Optimus One, P500 Original Android Development] DavisNT:
In any case, you must boot into the ROM at least one time before you can flash to_sd-ext_patch-signed-v10.zip.

If you wish to upgrade without wiping data I suggest:

1. Golden Rule: Create Nand Backup... :good:

2. Wipe Cache and Dalvik Cache

3. Install new ROM and Gapps (see Note at end of this post!)

4. Flash sd-ext_patch-signed-vXX.zip

before booting in newly installed ROM

5. Reboot

If you wish to upgrade ROM with data wiping:

1. Golden Rule: Create Nand Backup... :good:

2. Wipe Cache and Dalvik Cache

3. Wipe data

4. Wipe Sd-ext

5. Install the new ROM

6. Flash the Gapps (see Note at end of this post!)

7. Flash sd-ext_patch-signed-vXX.zip

8.

Boot into the ROM for first time.

9. Reboot into recovery

10. Flash to_sd-ext_patch-signed-v10.zip.

11. Reboot into Android

If you wish to preserve applications while wiping data I suggest backing them up and restoring with Titanium Backup (or similar software).

EDIT: Note! In this particular case with cm-10.1.0-RC3-p500.zip ROM, separate Gapps must

not

be flashed (because there is no space on /system partition for them - in this particular case full Gapps won't flash completely and

won't leave space for Move to sd-ext

).
[Optimus One, P500 Original Android Development] emyller:
They should point to the last post every time someone talks about apps to sd card. Link2SD has become a "standard" that does a lot of work when a simple symbolic link is all it needs.
[Optimus One, P500 Original Android Development] mcd_legend:
doesnt boot at step 11

tried several times

could it be because output of

su

mount

mount | grep /sd-ext

/dev/block/mmcblk0p2 on /sd-ext type ext4 (ro,noatime,nodiratime....

here its ext4 then ro and not rw as in your case ... ???
[Optimus One, P500 Original Android Development] emyller:
Did you check your partition integrity? Try a df -f and check how much space you have left on your that partition. If a fsck isn't convenient, try to redo the partitioning, because it might be compromised.
[Optimus One, P500 Original Android Development] DavisNT:
If you have Amon Ra recovery, you can check sd-ext filesystem from recovery by selecting Partition Sdcard -> Repair SD:ext.
[Optimus One, P500 Original Android Development] mcd_legend:
thanks for giving the lead man

i tried cronmod also but couldnt get it to work

just mounts2sd app was working

i did a full wipe of sd card and repartitioned my sd card

and its working now

sorry for creating trouble problem was with my partitions i think

feeling silly

and thanks man

its amazing you are still providing support although you have changed device :good:
[Optimus One, P500 Original Android Development] DavisNT:
[MENTION=5224086]Arimar[/MENTION] has notified me via PM that he is successfully using Move to sd-ext on Samsung Galaxy Ace with CM 7.2 (see citation for details). He asked me to post this (because he currently can't post here, because he has less that 10 posts)
[Optimus One, P500 Original Android Development] mns123:
Just flashed cm-10.1.0-RC3-p500.zip ROM, and used this script and it works flawlessly.

Settings->About phone->Partition info tells me how much the /sd-ext(EXT) is filled up.

Thanks.
[Optimus One, P500 Original Android Development] nldxda:
I'm using the latest jenkins 5/25 and want to format my card for either ext2/ext3/or ext4.. which one is recommended and how big should I make the partition? I'll be using a 16gb scdard.. thnx
[Optimus One, P500 Original Android Development] DavisNT:
I prefer ext4 because it's considered to be most stable, although it may wear SDcard faster than ext2 (also ext4 may not be supported by some (usually old or size-oriented) kernels).

Partition size depends on number of apps you are intended to install. Most people prefer 1 GB (or even less), I prefer 2 GB sd-ext partition.
[Optimus One, P500 Original Android Development] nldxda:
cool, as soon as my sd card gets here in the mail tomorrow, I can set it up..thnx
[Optimus One, P500 Original Android Development] nldxda:
ERROR: /data/app-private not found

called abort()

E: Error in /sdcard/to_sd_ext_patch-signed-v10.zip

(status 7)

Installation Aborted

^^I got this error listed above, so I reformatted the sd card back to one main partition so I can try partition it using CWM recovery... hopefully this will fix the problem... but what Swap size do I choose?... I'm making the sd ext partition 2gb(2048mb)

Edit: I read that '0' is correct setting for swap..

Also, CWM recovery flashes ext3 whenever I click ext4...why is this?

Edit: and now amon ra leaves the ext at ext3 even though it says the operation was successful when upgrading ext3 to ext4.. Can this phone support ext4?
[Optimus One, P500 Original Android Development] stikmenow775:
You can format the partition in ext, 2,3,4 but your sd card have a number that is the read an write speed, can be 2, 4,6,10 if is class 6+ chose the ext 4 if is -6 chose ext 2 or ext3

Okey, now the script if you have link2sd, cronmod, mount2sd, s2e etc installed, the script dont work

The another possibility is if you have A OLD CWM (3.x.x or 5.x.x) the partition dont does well

Try using TWRP RECOVERY

AND THE SWAP IS A PART OF MEMORY THAT HELP THE RAM IS LIKE A VIRTUAL RAM THAT HELP THE PHONE IF DONT HAVE ENOUGHT RAM

IF THE ROM THAT YOU USE HAVE SOPORT FOR IT PUT IN 64,128, or max 264mb if not have put this in 0mb

I hope help you

Enviado desde mi LG-P500 usando Tapatalk 2
[Optimus One, P500 Original Android Development] nldxda:
thanx for replying..

well, my sd card is class 10.. but i'm having the problem getting ext4 to actually work..

and no, I don't have any of those apps listed installed.. I'm doing a fresh flash of rom, gapps tiny, and baseband fix.. along with the two files need for this script..

and also, I'm not sure if this cm10.1 jenkins rom supports swap.. anyone know?
[Optimus One, P500 Original Android Development] post-mortem:
Try it. If it doesn't support swap, it just won't get used. In that case, you've only "wasted" 64MB of sd card space (or however much you allocated), and you can easily flash a different kernel which supports swap.
[Optimus One, P500 Original Android Development] nldxda:
well I set "0", and am flashing the rom atm..so hopefully this time I can get thru all the steps and it actually boots
[Optimus One, P500 Original Android Development] nldxda:
Ok I've got everything working finally, except the old baseband fix.. Is this move to sd-ext script preventing it from working?
[Optimus One, P500 Original Android Development] DavisNT:
This error occurs when ROM is

not

booted for the first time, before flashing to_sd-ext_patch-signed-vXX.zip.

No - it shouldn't interfere with old baseband fix.
[Optimus One, P500 Original Android Development] nldxda:
well I've tried flashing it many times now... what could be the problem?

also, I forgot to mention I'm using ext2, since i couldn't get ext4 to work... seems to be working great tho!
[Optimus One, P500 Original Android Development] DavisNT:
You are talking about old baseband fix?

Please give download links for ROM and the fix. And describe what exactly happens.
[Optimus One, P500 Original Android Development] nldxda:
http://jenkins.androidarmv6.org/job/android/185/artifact/archive/cm-10.1.0-RC4-p500.zip <-- that's the rom

http://xdaforums.com/showpost.php?p=22419396&postcount=1460 <-- that's the baseband fix ... I've used it many times on cm7 and it even worked on the 5/25 build of jenkins cm10.1... Now, since installing the sd-ext script, the fix doesn't work.. I tried on both the same 5/25 build as well as the newer rc4 build.. I tried flashing it in this order:

1) flash rom

2) flash oldbbfix_signed.zip

3) flash sd-ext_patch-signed-vXX.zip

4) reboot phone (gsm not working after boot)

5) reboot to recovery, flash to_sd-ext_patch-signed-vXX.zip

6) reboot phone (gsm still not working) (everything else including sd-ext working, nice)

7) reboot to recovery again

8) flash oldbbfix_signed.zip

9) reboot phone again...gsm still not working =/
[Optimus One, P500 Original Android Development] emyller:
It doesn't seem to be a problem related to the script. Do us a favor: after wiping your phone, do the steps 1 e 2, reboot and tell us if GSM is working. If yes, then we have a problem.
[Optimus One, P500 Original Android Development] DavisNT:
For me it also looks that the problem is not Move to sd-ext related. Do what [MENTION=4286572]emyller[/MENTION] suggested :) and post us result.
[Optimus One, P500 Original Android Development] nldxda:
ok I flashed both the 5/25 and the rc4 roms separately...just the rom with the bbfix each time... and sure enough, the gsm isn't working!... so it must not be the move to sdext script causing this problem....

the oldbbfix actually worked perfectly the first time I flashed the 5/25, before re-flashing the rom with move to sdext... Now it's not working at all with or w/o move to sdext!

I tested my sim in another phone and it worked, and the sim card slot in my p500 looks clean, so I don't know what it could be..

Any ideas??
[Optimus One, P500 Original Android Development] post-mortem:
Do you have an old nandroid you can restore? Any old nandroid from any time when the gsm worked.
[Optimus One, P500 Original Android Development] nldxda:
yes, I'll try that out and report back, thnx

UPDATE: so I flashed back to a backup of 5/25 jenkins 10.1 and sure enough the t-mobile signal works (as it already did originally)...

then back to rc4 backup with move to sd-ext and signal no longer works!

THEN, I changed recoveries from amon ra to cwm 5.0.2.0 and flashed the oldbbfix and it works! So now I'm on jenkins rc4 w/ working t-mobile signal... woot.. so somehow, amon ra wasn't properly flashing the zip properly, I suppose..

thanks for listening lol