[HELP]Apps/Data on SD: Switching to new SD card

corp769

Senior Member
Feb 8, 2009
212
1
0
if you want to, you should be able to copy everything to a backup folder and upload to another sd card. you need to do this in linux cause windows does not natively read ext2 partitions. shut down your phone, remove the micro sd card, put in your computer, copy everything to the backup folder, then re-partition your new (hopefully bigger) micro sd card. put back in the phone and boot it up. i have never tried this, but it should work, just as long as you have the ext2 partition the system can read from. good luck.
 

Autarkis

Senior Member
Dec 12, 2008
97
0
0
Basel
I agree fully with corp769. In addition, two important things to remember are:

* ext2 must be the second (primary) partition
* you must preserve UNIX access permissions by copying apps and data directories with cp -rp ! That's the reason apps on SD doesn't work without repartitioning.
* you must use a separate card reader, you cannot do this while the card is plugged into your G1. (Unless you can do some fancy mounting/unmounting stuff on the phone, that is. It's certainly easier and safer to use a card reader).

I too have never tried this, but it should work.
 

LucidREM

Senior Member
Jan 18, 2009
1,572
5
68
Baltimore
www.lucidrem.us
Is it possible if I installed apps/data on SD card to switch to another card and install apps/data on it? I removed my current card and my phone stopped working. I will take help from anyone who has it.
i did this on linux from a 2G card to a new 8G card .. my partitions are named so i utilize naming to distinguish one partition from the other:

make two folders on your linux desktop .. "SDD1" and "SDD2" .. the FAT32(sdd1) can be click-and-drag to the desktop folder .. the EXT2(sdd2) needs to be run inside Terminal to retain the permissions (unless someone know a better way)

ie: sudo cp -a /media/sdd2/* /home/LucidREM/Desktop/SDD2

then switch cards

ie: sudo cp -a /home/LucidREM/Desktop/SDD2/* /media/sdd2

obviously substitute your name for mine unless you call yourself "LucidREM"
 
Last edited:

dixxa

Senior Member
Jul 30, 2007
353
12
0
Neuilly-Plaisance
In the exact same process when you have an error nfs :
In linux with the card reader
unmount both vfat and ext2 partitions and type :

fsck -p /dev/yourext2partition.
fsck.vfat -p /dev/yourfatpartition

that's how I manage to recover 2 MicroSD card :D
 

giantcrazy

Senior Member
Sep 29, 2007
220
4
0
If you want to go the GUI route - go grab a copy of the GParted Live distribution. Put that on bootable media (whatever your case may be, USB or CD/DVD) then boot into GParted and use the GUI to copy and paste the partitions over. GParted will do a consistency check and fix any errors in both partitions first, then copy over into the new SD card.
 

SolemnWishing

Senior Member
Feb 26, 2009
648
12
0
Oregon
If you don't have linux, is there a program for windows or mac I can use to do this? Thanks
Yes download Wubi (which is like Linux in a box, and can be installed in like 10 minutes and ready to use and removed like a normal program) or download Paragon Partition Manager 9 Trial Version, it must be version 9 not 10. I recommend Wubi however, much easier, and who knows, you might fall in love with it like I did.
 

BrooklynAvi

Retired Recognized Developer
Nov 5, 2008
498
74
0
Brooklyn
www.mibapps.com
Simplest Method

Just in case people still want to know how to change SD cards (ext partition and all), which I suspect will happen a lot since the 16GB cards are going to start dropping in price soon, here's the simplest and best way I know how to do it. I have done this a bunch of times without any issues. I've even used this to go from a G1 to a myTouch (with minor compatibility changes, of course). But simply changing/upgrading SD cards is a breeze.

First thing's first. You will need bart.sh which can be found here: http://forum.xda-developers.com/showthread.php?t=562292. If you are using a myTouch or simply don't want to bother typing commands, use Amon_RA's wonderful recovery menus with bart.sh already built in. The Nexus One version can be found here (http://forum.xda-developers.com/showthread.php?t=611829) but there are links to the recovery menus for the G1, myTouch, Hero, etc. on that page.

You will need to be familiar with how bart.sh works and this is way beyond this post. There is a ton of information on the bart.sh thread. So here are the steps that need to be done.

1) Run bart.sh, either in recovery console or via recovery menu, to backup your entire ext2/3/4 partition (as well as nandroid for simplicity).

2) Back up the fat32 portion of your SD card as you normally would by mounting your SD card to your computer. Make sure that this includes the new bart.sh backup which should be located in the bart folder in the root of you SD card.

3) Partition your new SD card using the method of your choice. Amon_RA's recovery menus have an easy and painless method for this but you can use parted or any other method you choose. If you use your device to partition your new SD card do NOT boot your phone after you partition the card. You will want to finish Step 4 first. Amon_RA's recovery allows you to mount your SD card from recovery to help you complete Step 4 if you do not have a SD card reader.

4) Using Amon_RA's recovery menu or an SD card reader copy the fat32 partition, which includes your bart.sh backup, from your PC to the fat32 partition of your newly partitioned SD card. From the recovery menu, restore your bart.sh backup.

5) Voila. You now have all of your partitions moved to a new SD card.

This process can be simplified into one sentence. Do a bart.sh backup and restore it to the new SD making sure the SD card has the proper partitions and that you don't forget about the fat32 partition. The above is just a list showing the proper order so that you don't lose any data during the process.