A2SD Help - Hero CDMA Q&A, Help & Troubleshooting

I am on Fresh 2.0d I thought on this Rom it was already installed. I formatted the sd card as told. However, I don't think it is working. ON the Recovery menu there is a place that says transfer apps to sd & delvik. Am I supposed to use that?

Two places to go, here and also here

jj4201998 said:
I am on Fresh 2.0d I thought on this Rom it was already installed. I formatted the sd card as told. However, I don't think it is working. ON the Recovery menu there is a place that says transfer apps to sd & delvik. Am I supposed to use that?
Click to expand...
Click to collapse
connect your phone to your computer and open adb and type....
Code:
adb remount
adb shell
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd

xxwckdxx said:
connect your phone to your computer and open adb and type....
Code:
adb remount
adb shell
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
Ok, I did this and I am not running ap2sd. Can you provide steps on how to do it?

Again, go here > http://forum.xda-developers.com/showthread.php?t=666420&postcount=1

kyouko said:
Again, go here > http://forum.xda-developers.com/showthread.php?t=666420&postcount=1
Click to expand...
Click to collapse
I am running Fresh 2.0d is A2SD not supposed to be already installed?

Goto the link and flash the updated a2sd zip, reading thru the directions. I had problems before I did that as well.
Sent from my HERO200 using the XDA mobile application powered by Tapatalk

Welcome to xda..
The fellows are pointing u out to an update to a2sd just flashed it like a rom and follow the instructions...
jj4201998 said:
I am running Fresh 2.0d is A2SD not supposed to be already installed?
Click to expand...
Click to collapse

jj4201998 said:
I am running Fresh 2.0d is A2SD not supposed to be already installed?
Click to expand...
Click to collapse
Yes...Fresh 2.0d has a version of A2SD installed.
Do you have an ext2 or ext3 partition on your sd card? Without that, A2SD won't even work.

Related

MyBackup Pro Question

I just installed it and did a backup, wiped my G1 and went and restored each app. Now on the market it still says free which I dont have a problem. My concern is will I get notifcations for updates for the apps still even tho it says free for that app installed.
Well the first time I tried restoring my apps after a flash all of my apps said "Update available"... I started using that to get it to say "Installed" and then for no appearant reason they all said "Free". So I assume so... however I could be mistaken because my apps are stored to sd so I never have to technically restore my apps.
Binary100100 said:
Well the first time I tried restoring my apps after a flash all of my apps said "Update available"... I started using that to get it to say "Installed" and then for no appearant reason they all said "Free". So I assume so... however I could be mistaken because my apps are stored to sd so I never have to technically restore my apps.
Click to expand...
Click to collapse
Wait hold on...
If apps are stored to the SD card than we dont have to reinstall or back up our apps?
Lets say I have my apps installed to SD. Than I do Alt W wipe. My apps will still be there? I usally reformat my ext2 partition before I do an alt w wipe.
Sistum Id said:
Wait hold on...
If apps are stored to the SD card than we dont have to reinstall or back up our apps?
Lets say I have my apps installed to SD. Than I do Alt W wipe. My apps will still be there? I usally reformat my ext2 partition before I do an alt w wipe.
Click to expand...
Click to collapse
Not sure why you would need to reformate your ext2 partition.
I just follow the steps to restore the apps to sd.
I have all the .sh files stored to my sdcard and use gscript.
Here's is the script itself that I use...
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm -r /data/app
ln -s /system/sd/app /data/app
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
reboot
Click to expand...
Click to collapse
and it restores all of my apps automatically.
The only thing is that i have to go back to market and install them again from market so that it won't say "update available" or "free" even though I have them installed already.
You can also check this out here. VERY USEFUL! All you need to do is plug in the directory of your adb.exe and the location of your apps that are backed up onto your computer and it installs the rest. Obviously you need to already have the apps to sd mod running before you do it.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm -r /data/app
ln -s /system/sd/app /data/app
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
reboot
Click to expand...
Click to collapse
That doesnt seem to be working for me. After I reboot I just get stuck in the endless flashing droid on statup.
Sistum Id said:
That doesnt seem to be working for me. After I reboot I just get stuck in the endless flashing droid on statup.
Click to expand...
Click to collapse
It may flash for a while. I noticed that mine flashed for about 2 or 3 minutes.
Binary100100 said:
It may flash for a while. I noticed that mine flashed for about 2 or 3 minutes.
Click to expand...
Click to collapse
LOL maybe that was it. I dunno, doesnt matter right now, my phone wont stay on longer than a few minutes before rebooting even after reflashing back to RC29. Having a new one sent out for replacment.

Changing a SDCard

I have a Kingston 8Gig Class 4 and i just bought a Transcend 8Gig Class 6 SDCard.
Can someone please tell me step by step how to backup my class 4 to and restore it to my new Class 6.
Thanks in advance!
ubuntu is the easiest way believe it or not as it is the only o that will see ur partition when u mount ur sd card. check out the wubi installer. or u can use adb.
adb remount
adb pull system/sd/app to pull the apps off, just replace pull with push when u want to put them back on the ext.
i can't recall the exact thread in this Q&A section but there was one that showed how to backup /system/sd to your sdcard then you could pull those files off on a computer and put them on the new sdcard then copy them back over to the second partition.
i think they were something like
Code:
mkdir sdcard/ext2 (the directory name doesn't matter just whatever is easiest for you to remember)
cp /system/sd /sdcard/ext2
someone correct me if something is wrong with those. then put those files on your new sdcard and go to the recovery console so you won't have to worry about any force closes with the new sdcard. make sure you do this after partitioning your new sdcard
Code:
mount /system
mount /sdcard
mkdir /system/sd
cp /sdcard/ext2 /system/sd
i think the commands were something like that. but if you have adb then the way posted above is the easiest for me.
jedinyt said:
I have a Kingston 8Gig Class 4 and i just bought a Transcend 8Gig Class 6 SDCard.
Can someone please tell me step by step how to backup my class 4 to and restore it to my new Class 6.
Thanks in advance!
Click to expand...
Click to collapse
Why don't you just use backup(for root) users application? just copy the folder it creates on your sdcard to your drive, and place into the new sdcard.
@David, I think those commands would work, but here's what I always do (and can verify it works).
Code:
rm -r /system/sd/dalvik-cache/*
rm -r /system/sd/app_s/*
cd sdcard
mkdir ext
cp /system/sd/* /sdcard/ext/
Then to push back
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/*
cp /sdcard/ext/* /system/sd/
reboot
Its best to do all that in the recovery console, or adb shell when the phone is in recovery. Don't do it while the phone has booted in the ROM.
Thanks for all the help/reply...
one more question... how do i do it? do i do it in the terminal? console? or adb?
What they just gave you would be done in terminal.
jedinyt said:
Thanks for all the help/reply...
one more question... how do i do it? do i do it in the terminal? console? or adb?
Click to expand...
Click to collapse
I said at the bottom of my post. Recovery console is best, if you do it when your phone is actually running you could have issues.
supremeteam256 said:
What they just gave you would be done in terminal.
Click to expand...
Click to collapse
or adb shell
JJbdoggg said:
or adb shell
Click to expand...
Click to collapse
Well yeah, ideally when the phone is in recovery...
i have a Desire and im wondering if there's a easier way to clone the sd card to another bigger. Any idea ? Cloning softwares ?
What about just dd the SD card. something like:
1. Turn off the phone
2. dd sd card to img file
3. dd img to new file
4. New sd in slot and reboot

Switching SD Cards

I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Go to the recovery console
mount /sdcard
mkdir /sdcard/ext
cp /system/sd/* /sdcard/ext/
the copy the ext folder to your new card, put it in your phone and go back to recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
cp /sdcard/ext/* /system/sd/
I've probably made a couple of mistakes with mounting the partitions correctly, so you may have to mount /sdcard on the second batch of commands.
Anartic said:
I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Click to expand...
Click to collapse
Use Adrian's method
awesome, i've been wanting to know how to do this myself so this will definitely come in useful.
B-man007 said:
pretty sure the adb command is
adb pull /system/sd/*
then use adb push to get it back on the new one.
that should get everything on your ext partition. (note: do this while phone is booted into the rom. else you will need to mount the ext partition)
(if you need clarification, dont mind asking)
Click to expand...
Click to collapse
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
david1171 said:
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
Click to expand...
Click to collapse
easiest way i have done this is do a switchrom backup, make sure its saved to your old sd, get your new sd partitioned correctly, and copy the switchrom folder from your old sd to your new one, then do the normal steps to restore a switchrom backup... this will restore your rom to the exact moment it was when you saved it. had me back up and running in 10 minutes after a new sd was here.
Thanks so much for the help guys, I just noticed that I left my USB cord at work :/, so tomorrow I'll get back to you guys about this.
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
ya i started my response and saw you already answered so i was like mehhhh
i wrote my own script to do all this stuff below for me, and its done through the recovery.
Back up apps
Remove app_s folder
Reformat ext3 partition
Restore apps
Enter Recovery
SwitchRom Backup/Restore
Clear Dalvik-Cache
adb push while booted works fine for me, it just slows the crap outta the phone for a good 2-3 minutes, but it works fine. i use push because adb install hasnt always worked 100% for me (i have ~130 apps, and some of them don't install.)
anyways ill edit out my post to stop confusion
i have no more then 40 apps so adb install doesn't really flunk out on me
the only thing i don't like is the protected apps that show up in the fugly system default app icon and the long name.

mount -a errors?

can anyone tell me why when i try the
Code:
mount -a
command i get the error
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or directory
Click to expand...
Click to collapse
Do you have an ext partition on your sdcard?
im sorry im mostly a noob when it comes to this... i just installed cyanogens mod, did not touch the sd card, let alone part it.
gooberguy said:
im sorry im mostly a noob when it comes to this... i just installed cyanogens mod, did not touch the sd card, let alone part it.
Click to expand...
Click to collapse
Then that is the reason you are getting that error, it is trying to mount the ext partition, which you do not have. Just ignore it and carry on
should i be ignoring though?
my cirucumstance is i'm trying to install apps2sd as well as deleting a battery stats file, both which instruct to use mount -a beforehand
gooberguy said:
should i be ignoring though?
my cirucumstance is i'm trying to install apps2sd as well as deleting a battery stats file, both which instruct to use mount -a beforehand
Click to expand...
Click to collapse
There is nothing to install for apps2sd, once you parition your sd card it's automatic
And as already mentions yes you can ignore the error, becuase it's telling you it can't mount /dev/block/mmcblk0p02 which means it can't access the 2nd partition on your sdcard, because you don't have one, so to delete batterystats.bin just use adb or console and
Code:
cd /data/system (enter)
rm batterystats.bin (enter)
and you're done

[Q] How move apps to sd card?

I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Just use app2sd or link2sd .... U hv to root first of course ..
KR470S said:
I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Click to expand...
Click to collapse
Any custom ROM has native app 2 SD, plus you can follow
http://forum.xda-developers.com/showthread.php?t=1345872
To create a special partition in your SD card to which you apps can be automatically move, plus the swap space that will give you more free memory.
There are two good guides about custom roms:
http://forum.xda-developers.com/showthread.php?t=1333865
http://forum.xda-developers.com/showthread.php?t=1222348
If you are new to this, it will take some time get used to these guides, tools, etc. But there are lots of fun on testing custom ROMs, overclock, benchmarks, different skins, launchers, etc.
A good start is the toolbox, from puppet13th post:
http://forum.xda-developers.com/showthread.php?t=1117100
It is text only, different from SuperOneClick, a really great tool too, but toolbox can root your phone, install some modules (overclock, cypress / synaptics dual touch), and most important, the dual recovery: freexperia (or xrecovery... I don't remember) plus clockworkmod. Some ROMs are designed for the first one, but most recent ones are for CWM.
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
tohno said:
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
Click to expand...
Click to collapse
I did this yesterday, following this thread:
http://forum.xda-developers.com/showthread.php?t=1345872
I would prefer another way to repartition my SD, as Linux GPartED, that can easily resize partitions and add new ones. But I couldn't find the requirements for that and had problems a couple of months ago, when I tried to replace my SD and it was reformatted (don't know why) automatically, with no warning.
So I almost followed the thread:
1) backed up all my files (I just mounted SD and copied the files, as I didn't had sd-ext yet)
2) reboot into clockworkmod. I backup here is STRONGLY RECOMMENDED!
3) mounted /system & /data, and unmount /sdcard
4) copied sdparted.txt to /sbin/sdparted (already rooted, otherwise it would not work)
adb push sdparted.txt /sbin/sdparted
adb shell chmod 755 /sbin/sdparted
5) As I was in a different ROM, MiniCM7 2.1.6, I didn't have parted, required by sdparted.
So I copied from GingerDX v21
adb push parted /usr/xbin/parted
adb shell chmod 755 /usr/xbin/sdparted
But if your ROM already have parted, you can skip this.
6) Now just run sdparted as mentioned in MarJar thread. I have a 8 GB SD, and I choose 512 MB for sd-ext and 256 MB for swap, leaving more than 7 GB for files. So mine was:
adb shell
sdparted -es 512M -ss 256M -efs ext4
(someone, somewhere, mentioned that ext4 would be faster. I saw some benchmarks for Linux telling the opposite... But ext4 jas journaling, so it should be safer)
Now you have a partitioned SD.
7) Copy userinit.tx from the thread to /sd-ext/userinit.sh. It will be automatically executed on startup and mount the enable swap:
adb push userinit.txt /sd-ext/userinit.sh
adb shell chmod 755 /sd-ext/userinit.sh
8) Now I would recommend, if you have installed your apps to your ROM, to mount the SD again and copy the files back to the SD. You can do it in clockworkmod, menu Partitions or something like that, choosing Mount SD Card.
I didn't, so when I rebooted the phone, the "Apps" (or whatever remained fromthem in /data) were move to /sd-ext automatically. But any previous ROM, as mine also, would keep files in SD. The result was the nothing was working. So I copied the files back to SD card and restored the backup I took in step 2 (that saved me ).
But if you restore the files back to SD before rebooting, I think you would be fine.
It worked gracefully for me after restoring the backup.
9) Reboot and enjoy.

Categories

Resources