Note: Newer version of Darktremor Apps2SD can be found here: http://forum.xda-developers.com/showthread.php?t=670087
Okay...since I ended up rebuilding the Apps2SD 2.0 due to improvements and to allow moving the dalvik-cache automatically (per request), I figured I better just release this.
Apps2SD version 2.5
Warning: Do not use this version if you are partitioning your SD card with ext4. This version is not compatible with that partition layout.
Apps2SD is a script that runs when you phone boots. Many of the ROM developers include the script in one form or another. Originally based on Cyanogen's Apps2SD, this script will allow a user to free up more storage space on their phone.
How does it do it? It uses an ext2 or ext3 partition (if one exists) to move all your free and purchased apps (not core apps) to the ext2/ext3 partition on your SD card. It also tricks Android into thinking it is storing your programs in the internal storage space by linking the install directories (/data/app and /data/app-private) to similar directories on the sd card.
Here's the program:
http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip
Requirement: An ext2 or ext3 partition on your SD Card.
HOW TO INSTALL:
Since you are flashing this version to your phone, do a nandroid backup of your phone before starting these instructions.
1. Download the program above.
2. Determine if you have setup your SD Card with an ext partition
If you have setup your SD card already (existing users of A2SD...any version):
a. Copy the program to your SD card. One way of doing that is to use ADB by typing this command: adb push a2sd-2.5-signed.zip /sdcard/a2sd-2.5-signed.zip
b. Reboot into recovery
Click to expand...
Click to collapse
If you have not setup your SD card (for those new to A2SD):
a. BACKUP YOUR SD CARD TO YOUR COMPUTER. Can't stress this enough, as partitioning will wipe the entire card.
a. Reboot into recovery
b. In Android System Recovery, select Partition sdcard
c. In the Partition sdcard menu, select Partition SD
d. Follow the instructions on the phone to partition your SD card. You can optionally set a swap file while you are partitioning your SD card.
e. In the Partition sdcard menu, select SD:ext2 to ext3. Follow the instructions on the screen. Do not select the option SD:ext3 to ext4 after this step completes, otherwise A2SD will not work.
e. Press the back button on the phone to go back to the main menu.
f. Put the A2SD file on the SD card (and all your other files you backed up earlier) by selecting USB-MS toggle and transfer the files to your computer.
Click to expand...
Click to collapse
3. In recovery, select Flash zip from sdcard.
4. In Flash zip from sdcard, select a2sd-2.5-signed.zip. Press HOME to flash.
5. Reboot phone.
NOTE: The first time your phone is booted after installing a2sd, you may experience a long delay before your phone completely boots. This is due to the dalvik-cache being redirected to your sd card. The contents of dalvik-cache are recreated on your SD card, which can take up to 10 minutes to complete.
Click to expand...
Click to collapse
NOTE: If you experience force closes or random reboots after you apply A2SD version 2.5, this could be that your SD card is not fast enough to handle the dalvik-cache. Perform the following steps to move your dalvik-cache back to your SD card:
1. Switch your phone into read-write mode by typing: adb remount
2. Enter your ADB shell by typing: adb shell
3. In the ADB shell, type /system/bin/a2sd nocache
4. Reboot phone by typing the following command: reboot
If that doesn't work, follow these commands:
1. Switch your phone into read-write mode by typing: adb remount
2. Enter your ADB shell by typing: adb shell
3. In the ADB shell, type rm /data/dalvik-cache/*
4. Reboot phone by typing the following command: reboot
If you have a swap partition and you suspect this may also be an issue, follow these instructions:
1. Enter your ADB shell by typing: adb shell
2. In the ADB shell, type /system/bin/a2sd noswap
Click to expand...
Click to collapse
What does this program do:
1. Moves applications to the sd card
2. Moves dalvik-cache to the sd card
3. Activates swap partition if one exists
4. Allows the user to deactivate a2sd without removing the ext2/ext3 partition (a2sd remove to deactivate, a2sd install to activate)
5. Allows the user to restore dalvik-cache back to the main memory (a2sd nocache to deactivate, a2sd cache to activate)
6. Allows the user to deactivate swap (a2sd noswap to deactivate, a2sd swap to activate)
7. Creates the /system/sd mount if one doesn't exists.
How to tell if it is working:
1. On your computer in the Android SDK Tools directory, type adb shell
2. In the adb shell, type ls -l /data
3. Look for the entries app and app-private. The entries should look like the following:
app -> /system/sd/app
app-private -> /system/sd/app-private
If they don't, follow these instructions:
1. Enter the ADB Shell by typing adb shell
2. In the ADB shell, type /system/bin/a2sd install
If you have any issues, you can PM me for assistance.
Thanks for this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can this be done?
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Thanks! I am finally going to take the plunge and go Apps2SD!
Can this be used with any 2.1 Rom?
thanks for the share big improvement...
Flash and partition from recovery. As always nandroid first and also backup sd card before partitioning as it will wipe the card.
jjjjayd13 said:
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Click to expand...
Click to collapse
help
how do you reverse this im getting alot of apps FC on me please help
METHOD1911 said:
how do you reverse this im getting alot of apps FC on me please help
Click to expand...
Click to collapse
reinstall the apps
dont
this totally f**ked my phone up
i did something simliar last night, damage will have it in his rom shortly. Didn't check the download but the current way a2sd was implemented in the ramdisk on dc was wrong and has potential to hang the phone on boot (expecially moving dalvik)
wow, this worked beautifully, took a little while to boot, but now showing 138 free up from 79.
using fresh rom
METHOD1911 said:
this totally f**ked my phone up
Click to expand...
Click to collapse
Restore your Nandroid and try again. Also, what ROM are you using?
before i had 110mb used with 45 apps.After installing this now i have 24mb used..loving this upgrade...
puertoblack2003 said:
before i had 110mb used with 45 apps.After installing this now i have 24mb used..loving this upgrade...
Click to expand...
Click to collapse
It would beautifully for me. First I nandroid, converted my ex2 to ex3 (partitioned sd card), ran this script and it has worked wonders for me
works perfectly for me as well. everything s on the card and my phone is as smooth as silk
METHOD1911 said:
how do you reverse this im getting alot of apps FC on me please help
Click to expand...
Click to collapse
Ran this last night and same thing happened to me. It happens because your phone is on and suddenly all of your apps have moved to your SD card. Simply reboot and everything will be back to normal.
Running perfectly for me on Fresh 2.0d. Going entirely app crazy as a result.
luftwaffles86 said:
Ran this last night and same thing happened to me. It happens because your phone is on and suddenly all of your apps have moved to your SD card. Simply reboot and everything will be back to normal.
Running perfectly for me on Fresh 2.0d. Going entirely app crazy as a result.
Click to expand...
Click to collapse
lol or even better use titanium and backup up all apps and restored them back...
jjjjayd13 said:
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Click to expand...
Click to collapse
It can if your phone is already setup with an ext3 partition. If not, you'll need to go to recovery first and do that.
It's easier to flash this via recovery, but if you want to do this manually, here's what you do:
1. Unzip the contents of the zip to a folder
2. Open a command prompt and type adb remount
3. Push the system/bin folder to the /system/bin directory on the phone by typing adb push <folder>/system/bin /system/bin where <folder> is the folder you extracted the zip to.
4. Push the system/lib folder to the /system/lib directory on the phone by typing adb push <folder>/system/lib /system/lib where <folder> is the folder you extracted the zip to.
5. Type adb shell "chmod 777 /system/bin/a2sd"
6. Type adb shell "chmod 777 /system/bin/e2fsck"
If you already have the ext2/ext3 partition, type /system/bin/a2sd to activate.
even though i entered the command on the first page and it says its active I still dont have all my space back? is that to do with the stock apps?
Related
All props go to Jonnythan who gave the steps in another post. Mods may want to sticky this....
1. As always: Nandroid backup
2. reboot phone
3. adb shell into the phone
4. mkdir /sdcard/backup/
mkdir /sdcard/backup/app
mkdir /sdcard/backup/app-private
cp -r /data/app/* /sdcard/backup/app/
cp -r /data/app-private/* /sdcard/backup/app-private/
5. copy sd card to pc
6. Shut off phone and remove old sdcard and insert new sdcard
7. Start in recovery mode and partition new sdcard (fat32, ext2, swap)
8. Enable usb mode, copy data from old sdcard to newly partitioned sdcard
9. reboot and ignore force closings
10. Plug in USB and enable USB mode
From PC ADB shell into phone and type the following (enter after each line):
rm -r /data/app/*
rm -r /data/app-private/*
[chances are those directories are empty already, but you never know]
cp -r /sdcard/backup/app/* /data/app/
cp -r /sdcard/backup/app-private/* /data/app-private
reboot recovery
11. Restore most recent nandroid
12. reboot and enjoy
All thanks again to Jonnythan
Tweaks:
Between 5 and 6, shut off phone. Then start step 7 by specifying to start into recovery mode to partition the card. Then specify that you need to plug in the usb and adb shell for step 10. End step 10 by typing in "reboot recovery" which will reboot you right into the recovery partition.
Thanks for writing it up! Now I don't have to
Ok, I must be doing something wrong here... Does this require a custom ROM or anything? Im on the sprint Hero, stock ROM and I do have root. Everytime I get to step 4, at the cp -r /data/app/* /sdcard/backup/app/ command i get an error. It cant find the directory. Also, if i check the folder properties through Astro or linda file manager, it says 0 files, 0 folders, and also shows that it is not taking up any space. Just as a test to see if I was somehow blocked, I made a nandroid backup and deleted the /data folder, and upon reboot nothing had changed. Still have all of my apps on the phone...
I think the stock ROM doesn't include the cp command.
jonnythan said:
I think the stock ROM doesn't include the cp command.
Click to expand...
Click to collapse
Wait, when i get my sd card I have to do all this? I can't just reformat using the utility and drag and drop everything back into the sd card?
runsoverfrogs said:
Wait, when i get my sd card I have to do all this? I can't just reformat using the utility and drag and drop everything back into the sd card?
Click to expand...
Click to collapse
Not if you're using AppsToSD.
If you're not using A2SD then just make a backup of the old card, unmount it, put the new one in, and copy everything back. If you are using A2SD, the process is more complex.
Cp = Copy. Works on any rom. Like he said since you're on the stock rom, I doubt you're using Apps2SD so no you don't have to do all this.
If only people would actually read the thread title....
"How to swap SD cards w/ Apps2SD."
Don't have Apps2SD? Then this isn't the thread for you.
Exactly what I was thinking.
jonnythan said:
If only people would actually read the thread title....
"How to swap SD cards w/ Apps2SD."
Don't have Apps2SD? Then this isn't the thread for you.
Click to expand...
Click to collapse
I'm using the modaco 1.1, i should've mentioned that. Doesnt that come with Apps2SD built in?
Only if you partitioned your sd card before you flashed.
After step 6, how do you boot into recovery mode to partition the new card if you dont have the recovery image on the new card? Did I miss a step where I added the recovery image to the new card?
chalan30 said:
After step 6, how do you boot into recovery mode to partition the new card if you dont have the recovery image on the new card? Did I miss a step where I added the recovery image to the new card?
Click to expand...
Click to collapse
The recovery partition is installed on the phone itself, not the card.
thanks I dont know why the first time I tried i didn't get back into the recovery screen but the second time I booted into it just fine... oh well thanks for all your hard work!!!
Partitioning links
To partition the new card, you might want to include links to sdparted and this page for people who want to do it manually.
I have a question about how to make the swap. I have moved /data/dalvik-cache/ to my sd card and freed up about 25 meg of space on internal memory. Is there anything I need to do in addition to your instructions or would it be better to just do a wipe and start from scratch. I am using MoCaDo 1.2 Rom using apps2sd and ext3 partition. I have a 16 gig card coming. By moving the cache I now have 143 meg of internal memory with about 65 apps installed counting some of the stock apps. I have removed several of those as well. 34 apps from the market or handmark.
esoteric1311 said:
All props go to Jonnythan who gave the steps in another post. Mods may want to sticky this....
1. As always: Nandroid backup
2. reboot phone
3. adb shell into the phone
4. mkdir /sdcard/backup/
mkdir /sdcard/backup/app
mkdir /sdcard/backup/app-private
cp -r /data/app/* /sdcard/backup/app/
cp -r /data/app-private/* /sdcard/backup/app-private/
5. copy sd card to pc
6. Shut off phone and remove old sdcard and insert new sdcard
7. Start in recovery mode and partition new sdcard (fat32, ext2, swap)
8. Enable usb mode, copy data from old sdcard to newly partitioned sdcard
9. reboot and ignore force closings
10. Plug in USB and enable USB mode
From PC ADB shell into phone and type the following (enter after each line):
rm -r /data/app/*
rm -r /data/app-private/*
[chances are those directories are empty already, but you never know]
cp -r /sdcard/backup/app/* /data/app/
cp -r /sdcard/backup/app-private/* /data/app-private
reboot recovery
11. Restore most recent nandroid
12. reboot and enjoy
All thanks again to Jonnythan
Click to expand...
Click to collapse
I see some possible problems with this method... what happens if you're copying the sdcard onto a windows machine to backup? You'll lose symlinks, uid, and the like.
Also, what if /app and /app-private don't get put back onto the new sdcard? You'll end up with symlinks that point to nothing.
How 'bout this method? (just a little tweak).
Boot into recover (adb shell reboot recovery)
when recovery comes up, go to the shell (adb shell)
Then, issue these commands (this assumes your ext partition is ext3, and that you're using Amon-Ra's recovery so you have BusyBox 1.13.2 or later):
mkdir /sdcard/extback
mount -o ro -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /system/sd/. /sdcard/extback/
Now, back up the sdcard to a linux machine... keeping uid's and everything the same.
Turn the phone off, swap the cards, reboot into recovery (manually), format, partition, and convert ext2->ext3 the sdcard, put all the stuff back onto the card... and in the shell (within recovery
mount -o rw -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /sdcard/extback/. /system/sd/
reboot
Now, it should all come up with the same attributes, no force close, and everything...
Basically, this method would swap sd cards outside of the normal OS (in recovery), but would keep all the attributes, symlinks, and uids the same for the main OS.
I think if you're using a windows box to backup the card, then we may want to look into making a tarball of the ext partition. I'm not sure if Amon-Ra's recovery supports this or not.
jmanley69 said:
I see some possible problems with this method... what happens if you're copying the sdcard onto a windows machine to backup? You'll lose symlinks, uid, and the like.
Also, what if /app and /app-private don't get put back onto the new sdcard? You'll end up with symlinks that point to nothing.
How 'bout this method? (just a little tweak).
Boot into recover (adb shell reboot recovery)
when recovery comes up, go to the shell (adb shell)
Then, issue these commands (this assumes your ext partition is ext3, and that you're using Amon-Ra's recovery so you have BusyBox 1.13.2 or later):
mkdir /sdcard/extback
mount -o ro -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /system/sd/. /sdcard/extback/
Now, back up the sdcard to a linux machine... keeping uid's and everything the same.
Turn the phone off, swap the cards, reboot into recovery (manually), format, partition, and convert ext2->ext3 the sdcard, put all the stuff back onto the card... and in the shell (within recovery
mount -o rw -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /sdcard/extback/. /system/sd/
reboot
Now, it should all come up with the same attributes, no force close, and everything...
Basically, this method would swap sd cards outside of the normal OS (in recovery), but would keep all the attributes, symlinks, and uids the same for the main OS.
I think if you're using a windows box to backup the card, then we may want to look into making a tarball of the ext partition. I'm not sure if Amon-Ra's recovery supports this or not.
Click to expand...
Click to collapse
Now I'm confused don't take much.
I tried reading the ext2 partition using ubuntu and loading it temp on my windows 7 PC. It would not let me open that partition so I could not copy anything to it.
I guess the easiest way is to just wipe the phone back to factory, booting to recovery with the new card in and create the fat32-ext2-swap partition, re-flash the MoDaCo or any Rom that uses Apps2Sd and install all my apps again. I am assuming this would work as well.
jmanley69 said:
I see some possible problems with this method... what happens if you're copying the sdcard onto a windows machine to backup? You'll lose symlinks, uid, and the like.
Also, what if /app and /app-private don't get put back onto the new sdcard? You'll end up with symlinks that point to nothing.
How 'bout this method? (just a little tweak).
Boot into recover (adb shell reboot recovery)
when recovery comes up, go to the shell (adb shell)
Then, issue these commands (this assumes your ext partition is ext3, and that you're using Amon-Ra's recovery so you have BusyBox 1.13.2 or later):
mkdir /sdcard/extback
mount -o ro -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /system/sd/. /sdcard/extback/
Now, back up the sdcard to a linux machine... keeping uid's and everything the same.
Turn the phone off, swap the cards, reboot into recovery (manually), format, partition, and convert ext2->ext3 the sdcard, put all the stuff back onto the card... and in the shell (within recovery
mount -o rw -t ext3 /dev/block/mmcblk0p2 /system/sd
cp -a /sdcard/extback/. /system/sd/
reboot
Now, it should all come up with the same attributes, no force close, and everything...
Basically, this method would swap sd cards outside of the normal OS (in recovery), but would keep all the attributes, symlinks, and uids the same for the main OS.
I think if you're using a windows box to backup the card, then we may want to look into making a tarball of the ext partition. I'm not sure if Amon-Ra's recovery supports this or not.
Click to expand...
Click to collapse
Well, for one thing your method requires a linux machine
But what would you even have symlinks on the SD card for? Symlinks, uids, and attributes on SD card files simply aren't an issue at all for most people.
And truthfully if you are already doing that kind of stuff, you don't need this guide.
jonnythan said:
Well, for one thing your method requires a linux machine
But what would you even have symlinks on the SD card for? Symlinks, uids, and attributes on SD card files simply aren't an issue at all for most people.
And truthfully if you are already doing that kind of stuff, you don't need this guide.
Click to expand...
Click to collapse
As far as Linux... get VMWare player for free and download ubuntu and you're set real fast. Also if you notice what I said about doing a tar instead id using Linux.
As far as symlinks. You're right there "shouldn't" be any... but if you're backing up something why not do it right just in case? We have no idea what future versions of apps2ad sill do. It may happen that a file MUST reside on internal memory and therefore you'd need a symlink.
As far as the rest...
Actualy... each app gets its own user id and mismatches in those can cause problems with some apps. And each file in Linux gets attributes to tell the OS who is allowed ti read/write/execute it. If those get messed up it can cause problems.
So... we have a responsibility aa educators to give the best instructions possible. And not give instructions that ultimately would result in a backup that is missing vital information and would lead to a complete reload to fix the problems.
There are many reasons why Google decided to restrict apps to internal memory and we will never know all of them... this may very well be one of the problems they saw happening.
Like ghosting a HDD to another, I wanted to know if there's an app that can do this?
I think my 8GB LG branded MicroSD is failing as Windows keeps reporting that the drive needs to be scanned when I mount it via USB from my Desire so I'd like to just get a new Sandisk 8GB card and clone the old to new one to avoid having to go through restoring backups and so on.
If anyone has any ideas that would be grand!
check winimage.
That app can make image and recover it to drives!
Doesnt matter if disk is bigger than previous ( NB! may need to resize to get total space if its bigger, cannot remember)
I've always used it for vmware ESXi embedded sticks, made a million of them and the app works!
also linux routers.
Hope this helps.
vmware ESXi runs linux so it supports EXT!
No need for a program, copy data from fat partitions vis pc and use this ( from cyanogen wiki page) Used it three times now and no problems
Upgrading SD / Moving data to new SD
If you are using RA recovery, this is all done for you by making a BART backup. The following is if you're wanting to do it from the command line.
1. First, backup your ext partition on to your fat32 partition. Note, you will need enough free space to hold all of your apps.
* In Terminal Emulator or recovery console:
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
Note that you must have root access for Terminal Emulator. If you get "permission denied" after entering the above command, then try entering the command "su". "sudo" will not work. After entering "su" try the above command again.
* Or, Using ADB shell from your PC:
adb shell
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
2. Next, mount your SD card and download/backup everything on your fat32 partition. Make sure to get the ext.tar file that you just created in the previous step.
3. Change cards/repartion, or do whatever it is you planned to do here. For instructions on creating new partitions see the installation instructions above.
4. If you're not already, reboot into your recovery. Restore your backup files to your fat32 partition. Don't boot into CM yet!
5. Either go to console or ADB shell and type:
*
mount -a [enter]
*
tar xvf /sdcard/ext.tar [enter]
6. Double check that your directories are moved with:
ls /system/sd [enter]
7. Now you can reboot into CM!
8. Run fix permissions to fix any corrupted permissions.
9. Enjoy your new card!
If you have Amon Ra's recovery on your android phone you can do a bart backup with your old sd card, partition the new sd card as required, copy the bart backup to new sd card and then do a bart restore. It is what i did when i upgraded from my 2gb to 8gb, worked a treat.
Since I created this thread a few great things have happened, EXT4 support in unrevoked permanent flashed AmonRA recovery being the main one so now I am sorted thanks!
I use Gparted just copy paste
I'm trying to run: adb shell, but I keep getting error msg: "adb" is not recognized as file or program.
I have Adnroid SDK r08, lattest from the site, installed on my Windwos XP.
I'm doing this, because I cant mount my SD Card on Clockwork, so I can't proceed Flashing with a new ROM, the phone it self under Android, is recognizing the memory.
It is formated under FAT32 and was re-formated with the phone as a couple of posts suggests.
Could someone help me? Thanks
Before running adb, you should change your working directory to the directory where it is located.
For example, if you've installed android sdk in C:\andsdk, then you should use the following command to use it:
Code:
cd C:\andsdk\tools
adb shell
Done, I can already access to adb shell, but when Im trying to mount the sdcard, it says that its unable to mount.
So when I'm trying to Install ROM from SD Card, at Recovery Menu - Clockwork, it says that its unable to mount the SDCard.
Are you sure that your SD card is inserted properly?
Well the card works perfectly when I'm running Android. No problems at all.
Then, they came up (problems) as soon as I went into Recovery menu (Clockwork) and the phone was rooted perfectly with unrevoked 3.31
Things that I've already tried:
- Format SDCard under Fat32 and re format it with the phone => The SD Card works perfectly under Android but cannot mount on Recovery Menu.
- Format SDCard under Ext3 and 4, same as previous.
Any suggestion are welcome, and thank you so much.
When you ask ADB to list devices ('adb devices'), is yours recognised?
As soon as I got into Recovery Menu:
Ran: adb devices
This is what I got:
List of devices attached:
XXXXXXXXXXX - recovery
Click to expand...
Click to collapse
xxx - corresponds to my phone code
Then I do:
adb shell
mount /sdcard
And I get:
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: No such file or directory
Any suggestions?
Thank you!
Have you tried mounting the SD card in ADB while booted into Android?
This thread sounds like a similar thing, and might be worth reading.
This article is for people with rooted Android phones. Everyone else please ignore. There are dozens of ways to remove SD-EXT Partition your SD card and I would like to share the one that has worked for me every time.
Requirements before getting started:
Custom Recovery (TWRP/ CWM etc).
SD Card (Any Class).
Android Device Bridge(ADB): Comes with the Android SDK.
These instructions apply to both the Windows command prompt and the Mac terminal.
As you can see from my screens, I was using Windows Vista. You can Remove/ Delete your SD-Ext Partition at any time, but you might as well do it before you flash a new build of Android and You want a different size SD-EXT Partition.
IMP: As always, back up your data when performing any hacks.
Formating your SD card will erase all data on it.
I split this guide into 5 steps, but it is not as difficult as it looks. Read the whole thing before starting.
Step 1: Connect your phone to your computer via USB. Reboot into recovery mode.
Command: adb shell reboot recovery
(this will reboot your phone into Custom recovery image.
Command: adb shell
(type this after your phone has booted and on the recovery screen. it should take you to a # prompt)
Step 2: Open parted to partition your SD card.
Command: parted /dev/block/mmcblk0
(opens parted and mounts your SD card)
Step 3: Check the size and partitions of your SD card.
The print command will display this info. You can see the size of my SD card is 7969 MB (8 GB). I have 1 partition which is fat32. If your SD card is blank and no partitions are listed, you can skip to Step 5.
Command: print
(displays SD card information)
Step 4: Remove all existing partitions. If you have multiple partitions, remove each one at a time.
Command: rm 1
(deletes partition number 1)
Command: rm 2
(if needed. keep going till all partitions are removed)
Command: print
(check when you are done to make sure all partitions are removed)
Step 5: Check the sizes of your SD Card.
Use the command print again to display the partition sizes (There should be no partition).
If you made any mistakes you can return to Step 4 and remove them.
Command: print
(displays your partition information)
IMP: Now Remove USB Cable from Phone and go to WIPE Menu in Recovery and Format/ Cleat SD Card..
Now Go to Advance Menu and Partition SD Card with What Size / Swap / ext You Want..
[Additional GUIDE]
How to manually Partition your SD CARD {EXT 2/ 3/ 4 And Swap / Linux} Via ADB.
For SD-EXT Partition Please Continue After Step 5 (Don't Remove USB cable from PC).
Step 6: Create your new partitions.
You can make these any size, but the most common setup is
32 MB linux-swap partition,
512 MB ext2 partition, and
remaining free space as a fat32 partition.
In order to work properly, the partitions must be created in this order:
fat32,
ext2,
linux-swap.
The linux-swap partition is used for a swap file on some builds. Not all builds use linux-swap, but I create one just in case I ever need it.
The ext2 partition is where your apps will be installed. I use 512 MB which gives me plenty of room but you can go larger like 1024 MB if you want.
IMP: Parted only creates ext2 partitions and we can convert them to ext3 or ext4 later.
When using the Linux command mkpartfs, you must tell it where to start and and end each partition. This can be done by taking the total SD card size and subtracting the linux-swap then ext2 partition sizes. See the following example for my 8 GB card.
Command: mkpartfs primary fat32 0 7425
(start is 0 and end is Total C)
Command: mkpartfs primary ext2 7425 7937
(start is Total C and end is Total B)
Command: mkpartfs primary linux-swap 7937 7969
(start is Total B and end is Total A)
For Example
7969 Total A
-32 Linux-Swap
7937 Total B
-512 EXT 2
7425 Total C
* If You Don't want Linux-Swap partition follow this
7969 Total A
-512 EXT 2
7457 Total B
IMP: Kindly Change Values for EXT / Linux-Swap Accordingly if You want more or less space for Partitions.
Step 7: Check the sizes of your partitions.
Use the command print again to display the partition sizes.
If you made any mistakes you can return to Step 4 and remove them.
Command: print
(displays your partition information)
Step 8: Exit parted and upgrade your ext2 file system to ext3.
For most users this is the final step.
I suggest all users upgrade to ext3.
Its main advantage over ext2 is journaling which improves reliability and eliminates the need to check the file system after an unclean shutdown.
Command: quit
(exit parted and return to # prompt)
Command: upgrade_fs
(script to upgrade from ext2 to ext3)
Step 9 (Optional): If you wish, you can upgrade your ext3 partition to ext4.
Skip to Step 10 is you wish to use ext3.
The file system (EXT 4) offers enhancements like delayed allocation.
Command: tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
(enter this command from the # prompt)
Command: e2fsck -fpDC0 /dev/block/mmcblk0p2
(run e2fsck after tune2fs. wait for the file check to finish)
Step 10: Finished.
Check your work with print
Command: parted /dev/block/mmcblk0
(open parted again)
Command: print
(check all your system partitions and their sizes)
Command: quit
(exit parted)
Command: reboot
(reboot your system to the operating system)
[Guide] How to Install SDK / ADB..
http://forum.xda-developers.com/showthread.php?p=37805872
Credits:
akshat.shenoy (For SDK / ADB installation GUIDE).
XDA.
Screen Shots Added in Second Post.
Re: [GUIDE] How to Remove SD-EXT Via ADB
For Step 1 to 5:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For Step 6 to 10:
Sent from my LIL RDX using XDA premium
Re: [GUIDE] How to Remove SD-EXT Via ADB
Awesome man. Thanks ..
Didn't know of this method.. us there a way to partition via adb?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [GUIDE] How to Remove SD-EXT Via ADB
akshat.shenoy said:
Awesome man. Thanks ..
Didn't know of this method.. us there a way to partition via adb?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Yes there is a simple method..
If u wanna know I ll post that too..
Sent from my HTC Explorer using Tapatalk 2
Re: [GUIDE] How to Remove SD-EXT Via ADB
R. SAINT said:
Yes there is a simple method..
If u wanna know I ll post that too..
Sent from my HTC Explorer using Tapatalk 2
Click to expand...
Click to collapse
Nice tutorial.
Screenshots are really helpful for me (as I know nothing about adb).
Thanks bro..
And yeah post it too.. :thumbup:
Edit
Some questions
1. So wiping SD ext comes under rm2 right... and it does nothing to partition fat32(1)
2.parting with Adb... will it cause erasing all data in SD card? And partition of any type ext3 ext4 ..?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [GUIDE] How to Remove SD-EXT Via ADB
ptcpayme said:
Nice tutorial.
Screenshots are really helpful for me (as I know nothing about adb).
Thanks bro..
And yeah post it too.. :thumbup:
Edit
Some questions
1. So wiping SD ext comes under rm2 right... and it does nothing to partition fat32(1)
2.parting with Adb... will it cause erasing all data in SD card? And partition of any type ext3 ext4 ..?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
rm 1 - SD Fat32
rm 2 - SD-EXT (if available)
rm 3 - Swap / Linux (if available)
Partition via ADB delete all ur SD data.. I hv mentioned that in Guide already.
I ll add tutorial for Partition ext 2/ 3/ 4 and swap partition ASAP..
Sent from my LIL RDX using XDA premium
Or else, we can directly do it with Mini partition tool..!(duh!)
unknown_anonymous said:
Or else, we can directly do it with Mini partition tool..!(duh!)
Click to expand...
Click to collapse
U can.
Basically This guide is for ppl who r nt depended on different softwares.
Sent from my HTC Explorer using xda premium
How to flash CyanogenMod 12
Code:
[CENTER]Neither I nor any other member of the forum not responsible for bricked devices and dead
SD cards. Whatever you do, you do it at your own risk![/CENTER]
What we need:
1. Last build of CyanogenMod 12
2. Last version of this recovery
3. HTC USB Drivers v4.0.1.001
4. MiniTool Partition Wizard
5. View attachment ADB.zip
How to do:
1. First you need to install HTC USB Drivers on your PC.
2. Now install MiniTool Partition Wizard.
Make a backup copy of the files on your SD-card. If you have any partitions on your SD-card you must delete them. Now insert your SD-card in card reader (don't use "Mount USB Storage" in recovery) and format it in file system FAT32 (note: all files will be deleted).
You must create two ext4 partitions on your SD-card.
Launch MiniTool Partition Wizard. You must delete partition on SD-card and create three new.
First partition SD with file system FAT32. Second partition SD-DATA with file system ext4 and size minimum 1Gb. Third partition SD-SYSTEM with file system ext4 and size 1.2Gb. All partitions must be Primary.
Partitions should look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More instructions how to use MiniTool Partition Wizard you can find HERE.
3. Insert your SD-card in phone and boot it in recovery (use power button + volume down). In recovery go to "Wipe" menu [1] then in "Advanced Wipe" and do all wipes except sdcard and SD-Ext [2]. Now reboot your phone in Bootloader --> fastboot mode [3, 4].
Connect your phone to your PC using the cable.
Download ADB.zip and extract it on your PC. Download new recovery and rename it as "recovery.img". Put recovery.img in ADB folder and run recovery.bat from this folder.
After flashing recovery you must see cmd window like this:
4. Reboot your phone in recovery again. You need to convert your partitions from ext4 to f2fs.
Go to "Wipe" menu then in "Advanced Wipe" [1]. Now select "Data" and click on "Repair or Change File System" button [2], then click on "Change File System" button [3], choose "F2FS" [4] and swipe to change.
Go back and do the same with "System" [5].
After converting do all wipes except sdcard [6].
5. Download ROM and copy it on SD-card. Flash ROM. Flashing will take long so just wait.
6. After flashing ROM reboot your phone in Bootloader --> fastboot mode. Connect your phone to your PC using the cable.
Take out boot.img from ROM zip and put it in ADB folder on your PC. Run boot.bat from this folder.
After flashing boot.img you must see cmd window like this:
7. Now you can reboot your phone. After first boot you can back to recovery and flash Gapps if you need it.
Done!
Created 21-03-2015
Last Updated 21-03-2015
BCCCPCEKCAHET said:
How to flash CyanogenMod 12
Code:
[CENTER]Neither I nor any other member of the forum not responsible for bricked devices and dead
SD cards. Whatever you do, you do it at your own risk![/CENTER]
What we need:
1. Last build of CyanogenMod 12
2. Last version of this recovery
3. HTC USB Drivers v4.0.1.001
4. MiniTool Partition Wizard
5. View attachment 3220931
How to do:
1. First you need to install HTC USB Drivers on your PC.
2. Now install MiniTool Partition Wizard.
Make a backup copy of the files on your SD-card. If you have any partitions on your SD-card you must delete them. Now insert your SD-card in card reader (don't use "Mount USB Storage" in recovery) and format it in file system FAT32 (note: all files will be deleted).
You must create two ext4 partitions on your SD-card.
Launch MiniTool Partition Wizard. You must delete partition on SD-card and create three new.
First partition SD with file system FAT32. Second partition SD-DATA with file system ext4 and size minimum 1Gb. Third partition SD-SYSTEM with file system ext4 and size 1.2Gb. All partitions must be Primary.
Partitions should look like this:
More instructions how to use MiniTool Partition Wizard you can find HERE.
3. Insert your SD-card in phone and boot it in recovery (use power button + volume down). In recovery go to "Wipe" menu [1] then in "Advanced Wipe" and do all wipes except sdcard and SD-Ext [2]. Now reboot your phone in Bootloader --> fastboot mode [3, 4].
Connect your phone to your PC using the cable.
Download ADB.zip and extract it on your PC. Download new recovery and rename it as "recovery.img". Put recovery.img in ADB folder and run recovery.bat from this folder.
After flashing recovery you must see cmd window like this:
4. Reboot your phone in recovery again. You need to convert your partitions from ext4 to f2fs.
Go to "Wipe" menu then in "Advanced Wipe" [1]. Now select "Data" and click on "Repair or Change File System" button [2], then click on "Change File System" button [3], choose "F2FS" [4] and swipe to change.
Go back and do the same with "System" [5].
After converting do all wipes except sdcard [6].
5. Download ROM and copy it on SD-card. Flash ROM. Flashing will take long so just wait.
6. After flashing ROM reboot your phone in Bootloader --> fastboot mode. Connect your phone to your PC using the cable.
Take out boot.img from ROM zip and put it in ADB folder on your PC. Run boot.bat from this folder.
After flashing boot.img you must see cmd window like this:
7. Now you can reboot your phone. After first boot you can back to recovery and flash Gapps if you need it.
Done!
Created 21-03-2015
Last Updated 21-03-2015
Click to expand...
Click to collapse
One last question which is best cm12... is it Glade or cm12... performance wise ....
and thanks a lot for the guide......great post.
Doing many things wrong...
already pressed thanks button.
Pr.haddimal said:
One last question which is best cm12... is it Glade or cm12... performance wise ....
Click to expand...
Click to collapse
Performance in CM12 and Glade is identical.
1. For best performance you must use class 10 SD-card.
2. After booting ROM you can activate development settings and set up CPU governor as "ONDEMAND". You can find it in Settings --> Performance --> Processor. With this setting ROM working faster.
BCCCPCEKCAHET said:
Performance in CM12 and Glade is identical.
1. For best performance you must use class 10 SD-card.
2. After booting ROM you can activate development settings and set up CPU governor as "ONDEMAND". You can find it in Settings --> Performance --> Processor. With this setting ROM working faster.
Click to expand...
Click to collapse
ya hav this sdcard class 10
thanks
for assistance
How to take out boot.img from the ROM.zip in bootloader mode
Sent from my HTC Explorer A310e using Tapatalk 2
It is not possible to do so and it is not even required. The Dev means to say that you have to take out the boot.IMG from the zip ON YOUR computer and then use fastboot flash boot boot.img to flash the boot image as told by @kirmaniarslan.
help
i can't flash Rom, long wait
Same here.
Sent from my HTC Desire 616 dual sim using Tapatalk
Hi. Where i could find twrp 2.8 version? Link are broken
Regards
jmaa009 said:
Hi. Where i could find twrp 2.8 version? Link are broken
Regards
Click to expand...
Click to collapse
@Black_Eyes posted a new link in the ROM thread. Look for it
Sent from my Explorer A310e using Tapatalk
please help me my sd card has got corrupted how to revert back from f2fs to ext4 again
djmacpro said:
please help me my sd card has got corrupted how to revert back from f2fs to ext4 again
Click to expand...
Click to collapse
Use this guide : http://forum.xda-developers.com/showthread.php?t=2532212 and try again
MSF Jarvis said:
Use this guide : http://forum.xda-developers.com/showthread.php?t=2532212 and try again
Click to expand...
Click to collapse
Its for partition right?
My problem is my SD is corrupted and I can't do any thing add/delete files in SD card even if I add/delete files the SD card again becomes as previous I need to delete all f2fs partition
After you enter parted, type print. You'll see a list of partitions present. Just keep typing rm followed by the partition numbers like : rm 1 && rm 2
Do this till print returns no partitions. Then you can use the rest of the guide from that point onwards with required modifications for your specific use case. Be sure to thank @thewisenerd over there as well.
Sent from my HTC Desire 616 dual sim customised for Puchki using Tapatalk
MSF Jarvis said:
After you enter parted, type print. You'll see a list of partitions present. Just keep typing rm followed by the partition numbers like : rm 1 && rm 2
Do this till print returns no partitions. Then you can use the rest of the guide from that point onwards with required modifications for your specific use case. Be sure to thank @thewisenerd over there as well.
Sent from my HTC Desire 616 dual sim customised for Puchki using Tapatalk
Click to expand...
Click to collapse
i tried this thing still it didnt work, even after several rm 1 its showsing all the partition when typed print.
i think the sd card is gone and of no use as it not branded of any company
djmacpro said:
i tried this thing still it didnt work, even after several rm 1 its showsing all the partition when typed print.
i think the sd card is gone and of no use as it not branded of any company
Click to expand...
Click to collapse
That's the only logical explanation brother.
how copy ROM in SD-card? with card-reader? computer don't see my card.what to do next?
kesha_nsk said:
how copy ROM in SD-card? with card-reader? computer don't see my card.what to do next?
Click to expand...
Click to collapse
Use a card reader
Sent from my HTC Explorer A310e using XDA Labs
Do not work in TWRP - Change Filesytem to F2FS.... How to fix this ?
alidarkstone said:
Do not work in TWRP - Change Filesytem to F2FS.... How to fix this ?
Click to expand...
Click to collapse
What is the size of your /system ?