HOWTO: Automated APPS to SD (EASY!!!!)

egyptianbman

Member
Mar 10, 2009
46
13
0
35
Independence
www.ODSLabs.com
NOTE:
1. Must have a rooted phone
2. Must have two partitions on the sd card (fat32 for everything, and ext2 for "expanding" the phone's memory).
3. Must have Android SDK installed (so that adb will work)

Ok.. So I got sick of all the commands running back and forth. I found that I'm wiping my phone several times testing out new things and didn't want to continuously put in all these commands to get the apps to sd thing to work.

Therefore, I created a file to automatically do it for me!!! I just run this file with the usb connected to the phone, and let it run all the commands.

I've attached a file "tmp.zip". Download this file and extract it to your c:

The folder it extracts NEEDS to be at c:/tmp

After extracting, navigate to the folder and double click on "appsToSD1.bat". Follow the instructions and you'll be on your way.

I hope this helps!!!!
 

Attachments

Binary100100

Retired Forum Moderator
Apr 6, 2008
6,474
1,647
0
Detroit, Mi
NOTE:
1. Must have a rooted phone
2. Must have two partitions on the sd card (fat32 for everything, and ext2 for "expanding" the phone's memory).
3. Must have Android SDK installed (so that adb will work)

Ok.. So I got sick of all the commands running back and forth. I found that I'm wiping my phone several times testing out new things and didn't want to continuously put in all these commands to get the apps to sd thing to work.

Therefore, I created a file to automatically do it for me!!! I just run this file with the usb connected to the phone, and let it run all the commands.

I've attached a file "tmp.zip". Download this file and extract it to your c:

The folder it extracts NEEDS to be at c:/tmp

After extracting, navigate to the folder and double click on "appsToSD1.bat". Follow the instructions and you'll be on your way.

I hope this helps!!!!
EXCELLENT!!! I have already set my apps to sd... but I always welcome alternatives. Good work. I can't wait to try it out some time.
Thanks!
 

modem_over

Member
Jan 19, 2009
41
8
0
Just tried it

Failure, after last reboot i am stuck at the flashing android loader.

I did verify i was all the stuff the bat file said to look for
 
J

Joeriginal

Guest
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.1M 456.0K 99% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 20.9M 53.8M 28% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 978.6M 4.0K 978.6M 0% /sdcard

is my card partitioned I did it through paragon, but It only shows the one partition here what am I doing wrong its a 2 gig card, Ill try if I can get my damn card partioned lol.
 

russenreaktor

New member
Feb 22, 2009
4
0
0
Stuttgart
Thanks it worked for me.... ...but Im not sure if ext2 patitioon should be primary
http://forum.xda-developers.com/showthread.php?p=3483058#post3483058

...I made it primary and it worked...

$ df
/dev: 49520K total, 0K used, 49520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 69120K total, 66180K used, 2940K available (block size 4096)
/system/modules: 1532K total, 1532K used, 0K available (block size 4096)
/system/xbin: 3172K total, 3172K used, 0K available (block size 4096)
/system/sd: 1033712K total, 5116K used, 1028596K available (block size 4096)
/data: 76544K total, 21760K used, 54784K available (block size 4096)
/cache: 69120K total, 1160K used, 67960K available (block size 4096)
/sdcard: 6172916K total, 588568K used, 5584348K available (block size 4096)

sdcard - 6GB
sd - 1GB

$ mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)

$ cd /data
$ ls -al
ls: can't open '.': Permission denied
$ su
# ls -al
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 .
drwxr-xr-x 12 0 0 0 Mar 18 17:31 ..
drwxrwxrwx 1 1000 1000 2048 Oct 5 07:41 anr
lrwxrwxrwx 1 0 0 14 Mar 18 17:30 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Mar 18 17:30 app-private -> /system/sd/app-private
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 dalvik-cache
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 data
drwxrwx--x 1 2000 2000 2048 Oct 5 07:41 local
drwxrwx--- 1 0 0 2048 Oct 5 07:41 lost+found
drwxrwx--t 1 1000 9998 2048 Oct 5 07:41 misc
drwx------ 1 0 0 2048 Oct 5 07:41 property
drwxrwxr-x 1 1000 1000 2048 Oct 5 07:41 system
drwxr-xr-x 1 1000 1000 2048 Mar 15 12:15 tombstones
#
 
J

Joeriginal

Guest
Thanks it worked for me.... ...but Im not sure if ext2 patitioon should be primary
http://forum.xda-developers.com/showthread.php?p=3483058#post3483058

...I made it primary and it worked...

$ df
/dev: 49520K total, 0K used, 49520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 69120K total, 66180K used, 2940K available (block size 4096)
/system/modules: 1532K total, 1532K used, 0K available (block size 4096)
/system/xbin: 3172K total, 3172K used, 0K available (block size 4096)
/system/sd: 1033712K total, 5116K used, 1028596K available (block size 4096)
/data: 76544K total, 21760K used, 54784K available (block size 4096)
/cache: 69120K total, 1160K used, 67960K available (block size 4096)
/sdcard: 6172916K total, 588568K used, 5584348K available (block size 4096)

sdcard - 6GB
sd - 1GB

$ mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)

$ cd /data
$ ls -al
ls: can't open '.': Permission denied
$ su
# ls -al
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 .
drwxr-xr-x 12 0 0 0 Mar 18 17:31 ..
drwxrwxrwx 1 1000 1000 2048 Oct 5 07:41 anr
lrwxrwxrwx 1 0 0 14 Mar 18 17:30 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Mar 18 17:30 app-private -> /system/sd/app-private
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 dalvik-cache
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 data
drwxrwx--x 1 2000 2000 2048 Oct 5 07:41 local
drwxrwx--- 1 0 0 2048 Oct 5 07:41 lost+found
drwxrwx--t 1 1000 9998 2048 Oct 5 07:41 misc
drwx------ 1 0 0 2048 Oct 5 07:41 property
drwxrwxr-x 1 1000 1000 2048 Oct 5 07:41 system
drwxr-xr-x 1 1000 1000 2048 Mar 15 12:15 tombstones
#
Ive been struggling with this for three days, using paragon how exactly do you partition a card it says mines has been partitioned and showes the ext2 and the fat32 both as being primary but It wont show on busybox as my previous post above states, from there how do I go on to complete apps on sd card, it just aint working for me Im getting frustrated:(
 

androidmonkey

Senior Member
Mar 3, 2009
1,207
38
0
Ive been struggling with this for three days, using paragon how exactly do you partition a card it says mines has been partitioned and showes the ext2 and the fat32 both as being primary but It wont show on busybox as my previous post above states, from there how do I go on to complete apps on sd card, it just aint working for me Im getting frustrated:(
Since ext2 is a linux partition I would use a Live Ubunut CD to partition the card. This is the safest bet.
 

androidmonkey

Senior Member
Mar 3, 2009
1,207
38
0
I have read how people do it through paragon Id rather not download a 700mb file just to format my card, but thanks for the suggestion.
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works :)

Also, having a Live CD is a good troubleshooting tool for future issues.
 
J

Joeriginal

Guest
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works :)

Also, having a Live CD is a good troubleshooting tool for future issues.
Im at work on a dialup network if I start downloading I should finish by dinner time.....Friday.
 

egyptianbman

Member
Mar 10, 2009
46
13
0
35
Independence
www.ODSLabs.com
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.1M 456.0K 99% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 20.9M 53.8M 28% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 978.6M 4.0K 978.6M 0% /sdcard

is my card partitioned I did it through paragon, but It only shows the one partition here what am I doing wrong its a 2 gig card, Ill try if I can get my damn card partioned lol.
Nope, I'm not seeing a "/system/sd" partition on your phone.
 

xdavidn88

Senior Member
Mar 13, 2009
179
1
0
Don't know how easy using LiveCD Ubuntu is... but there's no way it's easier than Paragon Partitioner...

I dl'ed it, Personal Trial version.
Inserted my G1 via USB.
Create partition.
Select sd card.
Choose size.
DONE!
That's it. Voila. Sd card partitioned into 2 parts.
 

egyptianbman

Member
Mar 10, 2009
46
13
0
35
Independence
www.ODSLabs.com
Don't know how easy using LiveCD Ubuntu is... but there's no way it's easier than Paragon Partitioner...

I dl'ed it, Personal Trial version.
Inserted my G1 via USB.
Create partition.
Select sd card.
Choose size.
DONE!
That's it. Voila. Sd card partitioned into 2 parts.
I ended up having to use Ubuntu. I'm not sure why, I installed Paragon on my work computer (new, running Vista x64) and it couldn't create the partitions correctly... kept on giving me some error. I think it had something to do with mounting... So I thought maybe it's because I was on an x64. Took it home to my laptop running Windows XP and had the same problem. I finally got tired of it and got Ubuntu who worked like a charm :)