• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How to tranfer to a new SD card?

Peter123

Android Enthusiast
Nov 20, 2009
405
24
I am running XtrSense4.6.1 with the EXT3 partition and app2sd and cache2sd enabled with all apps on the sd card.

I have made a full nandroid backup with ext partition and saved it to the PC.

How do I transplant all this to a new SD card? Do I format it in the phone or the PC, how about the ext partitions and the apps on it?

Thanks for the help
Peter
 
This is what I would do. First, do a new Nandroid backup. Copy all of the files from the SD card to your PC. Put the new SD card un the phone, boot into Recovery and do the same steps that you did to set up apps2sd - create a partition and swap partition (which you can leave at 0), convert the ext2 partition to ext3.

Now you have a blank SD card. You can either power off the phone, remove the SD card from the phone and use a USB device to copy the files back to the SD card (which will include the nandroid backups), and put the SD card back in the phone and restart in recovery; or start the phone (knowing that your apps will not be there), mount the SD card to your computer, and copy the files over to SD, then power down the phone and restart in recovery.

Whichever way you used to get your files back on the SD card, from recovery do a factory wipe (just in case) and Nandroid restore and restart the phone and you should be all set.

If you have a Linux computer you may be able to partition and copy the files directly, but using the phone is probably the safest way.
 
Upvote 0
doogald thanks for the answer.

This is what I would do. First, do a new Nandroid backup. Copy all of the files from the SD card to your PC. Put the new SD card un the phone, boot into Recovery and do the same steps that you did to set up apps2sd - create a partition and swap partition (which you can leave at 0), convert the ext2 partition to ext3.

when I originally created the ext partition of the app2/cache2sd, I set 32Mb swap size and 1 G parttion size.
How come I set it to 0 (Which btw, the swap of the partition size?)


Now you have a blank SD card. You can either power off the phone, remove the SD card from the phone and use a USB device to copy the files back to the SD card (which will include the nandroid backups), and put the SD card back in the phone and restart in recovery; or start the phone (knowing that your apps will not be there), mount the SD card to your computer, and copy the files over to SD, then power down the phone and restart in recovery.

Whichever way you used to get your files back on the SD card, from recovery do a factory wipe (just in case) and Nandroid restore and restart the phone and you should be all set.

If you have a Linux computer you may be able to partition and copy the files directly, but using the phone is probably the safest way.

So I copied back everything onto the root directory, wipe and then
nandroid restore. Will the restore put everything back to the EXT partition? In fact, I have already everything in the root after I copied to it from the PC. So do I restore only the EXT or the whole thing?

Thanks for the help,
Peter
 
Upvote 0
when I originally created the ext partition of the app2/cache2sd, I set 32Mb swap size and 1 G parttion size.
How come I set it to 0 (Which btw, the swap of the partition size?)

Go ahead and set the swap partition to 32 mb. It won't hurt anything, but others say that setting the swap partition to 0 is just as good. If you set the swap partition to 0, it will not create one, so you will have only two partitions - the ext2 (which you later convert to ext3) and the FAT32 partition that stores all of your data files (and which you will see when you connect to your PC and mount the drive.)

The ext2 partition definitely should not be 0. I'd say in your case set it to 1 GB.


So I copied back everything onto the root directory, wipe and then
nandroid restore. Will the restore put everything back to the EXT partition? In fact, I have already everything in the root after I copied to it from the PC. So do I restore only the EXT or the whole thing?


From recovery I do not know of a way to restore just the ext partition, so just run a nandroid restore to restore the whole thing. As long as you did a nandroid+ext backup, it will restore the external partition as well. By the way, a Nandroid backup with ext will always have a name starting BDES, while a regular Nandroid backup will start BDS.

It seems obvious to me, but just to make sure that it is said, you want to do a Nandroid+ext backup just before you do this, so you are restoring the phone back exactly as it was when you ran the backup.
 
  • Like
Reactions: Peter123
Upvote 0
Go ahead and set the swap partition to 32 mb. It won't hurt anything, but others say that setting the swap partition to 0 is just as good. If you set the swap partition to 0, it will not create one, so you will have only two partitions - the ext2 (which you later convert to ext3) and the FAT32 partition that stores all of your data files (and which you will see when you connect to your PC and mount the drive.)

The ext2 partition definitely should not be 0. I'd say in your case set it to 1 GB.





From recovery I do not know of a way to restore just the ext partition, so just run a nandroid restore to restore the whole thing. As long as you did a nandroid+ext backup, it will restore the external partition as well. By the way, a Nandroid backup with ext will always have a name starting BDES, while a regular Nandroid backup will start BDS.

It seems obvious to me, but just to make sure that it is said, you want to do a Nandroid+ext backup just before you do this, so you are restoring the phone back exactly as it was when you ran the backup.


By-the-way, i have renamed the BDESxxxxxx to something more meaningful. (I have 3 or for backups already...)

Now how about the wipe before the restore? What do I need to wipe?
Peter

The other thing:

Any recommendation for high capacity (16Gb) and hogy speed (class 4-10) card?


Peter
 
Upvote 0
Now how about the wipe before the restore? What do I need to wipe?

It's probably optional, but the first option in the wipe menu - factory data/reset I believe it is called. I believe that Nandroid restore does a wipe anyway, but I can't remember.

Sorry on the SD card - I really don't know. I bought a class 6, 8 GB SD card from Amazon from Transcend and it is just fine.
 
  • Like
Reactions: Peter123
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones