I am running Cynogen Mod 4.1.999.
I have 3 partitions on my stock 1GB microsdhc card.
I want to backup everything and move them to a new microsdhc card that I bought.
Is it possible to transfer the data in all the partitions to the new card without losing my installed apps? I have a friend who only transferred the files that he could see in Windows Explorer to the new microsd card but when he loaded it to his phone, all his apps were gone.
So is it possible to retain what I already have but on a new and larger microsd card?
Help is appreciated.
To move apps off of ext:
adb remount
adb pull system/sd/ %CD%\whateveryouwant
(this pulls everything off of the ext including dalvik which you can delete from the folder and puts it in your user directory. *C:\Users*)
to put back:
adb push %CD%\whateveryouwant /system/sd/
sdcard you just mount and put files into a folder and put them back.
it is not necessary to pull the swap partition.
Hope this helps!
make a ubuntu live cd, run it, mount sd, copy ext partition, put new card in make partitions in gparted since you are there and then copy files over, run fix permissions
simple
The easiest way to do what you're asking is to flash to Amon_RA's latest recovery. He's built-in "Backup and Restore Tool", which essentially does what Nandroid originally did and extended it to the ext partition of your SD card.
Run BART to backup your entire phone from the Recovery Console and you can then replace your SD card, partition it the way you want, and then run BART to restore your entire phone as well.
Related
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.
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.
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.
creid2352 said:
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.
Click to expand...
Click to collapse
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"
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
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.
Thanks a lot for the help everyone. I will give this a shot when I get home. Appreciate all the quick responses.
no prob man, just let us know if it works for you or not.
If you don't have linux, is there a program for windows or mac I can use to do this? Thanks
legaleye2005 said:
If you don't have linux, is there a program for windows or mac I can use to do this? Thanks
Click to expand...
Click to collapse
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.
I tried the LucidREM instructions and it is looping on startup.
Is there a different way to do this?
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.
Hello,
I am buying a 16 GB Class 6 Micro SD soon, and i was wondering if there is anything I should do to it before putting it into my phone. Should I be worried, since the new SD card isn't partitioned, about accidentally bricking my phone? If so, what should I do to it before putting it inside of my phone?
Thanks.
1. you will loose all applications, they are stored on the sd card, so duh!. (lots of force closes)
2. you can't brick your phone by replacing an sd card.
If you want to use or already using apps2sd, you will need to partition the new card to have an EXT partition. This is where the apps will be loaded on the sd card. You can use the latest from Amon Ra (located here http://forum.xda-developers.com/showthread.php?t=5666691) to partition the new sd card.
After rebooting from the partitioning, you will need to download all of the apps from the market again. Or you can backup using a rooted back up.
If you are not using any apps2sd currently, then you only need to ensure that the new card is formatted to fat32.
Thanks, so when I get the sd card I should just put it in, boot into recovery, partition it and then re-download all the apps and I'm done?
make a backup using what you like best (nandroid, switchrom, etc.) and copy all you fat32 to your computer.
put in new sd card, create desired partitions and mount to your pc so you can copy all your old files over (this will include your backup) then unmount and unplug from pc
restore backup and you will be right back to business as usual for the most part (may lose some passwords and other small things)
I'm using a2sd on Fresh 2.0d, and want to move to a new class6 microSD card. Can I simply copy the data from the fat32 partition of the old card to the new one?
What about the /ext partition - I don't know how to access this. How do I move it to the new card?
Also, do I need any special commands to dismount the old card or mount the new one once it's installed?
Thanks.
check out the wiki on stickie, it's in there
Backup your apps or copy /system/sd/app, /system/sd/app-private, /system/sd/lost+found, /system/sd/xbin, if you have'm to some matching directories in the /sdcard fat32 partition.
Power down. Remove the old card. Insert the new , boot into recovery. Format the new card. Exit recovery to powerdown, or remove the battery.
Remove the new card.
Copy the contents of the fat32 from the old to the new, on a pc.
If you're linux based copy the ext2 or ext3 contents from one to the other.
Replace the new card and do a regular boot.
if you didn't copy the ext's then:
Copy the stuff from the matching directories (in the sdcard fat32 partition) into the directories in the ext2 or ext3 which should have been created for you at boot time.
If they were not created then create them. Move the stuff either from backup or from the matching directories which you created, into the appropriate new /system/sd ... directories-folders.
Reboot.
Your apps should be there. If they give symlink errors then reinstall by clicking on the apks from a file manager.
Here's another approach.
subliminalurge said:
That's a pretty good point. Upgrading isn't a huge worry, it's just a matter of creating the partitions and copying the files over to the new card (from both partitions). Having a Linux machine available would make that process a whole lot simpler. You can get ext2/ext3 drivers for Windows, but I've had, shall we say, mixed results with that over the years... (Edit: Now that I think about it, just doing a nandroid + ext backup and restore should be fine, then all that's left is the fat32 partition, and you can just copy those files back and forth from your pc....)
Click to expand...
Click to collapse
Hmmmm.. there is a MUCH easier way.
1. Do a "Nandroid +ext" back up.
2. Copy that back up to computer hd.
3. Power down phone
4. Insert new card
5. Partition correctly
6. You can do this next step a couple ways
a. USB toggle in recovery mode and copy nandroid to new sd card
b. Power down phone, insert new sd card with adapter into computer and copy nandroid
7. Power into recovery
8. Restore nandroid
9. Reboot
cptkool said:
check out the wiki on stickie, it's in there
Click to expand...
Click to collapse
could you post a direct link, cause i didn't find anything.
Danokan said:
Hmmmm.. there is a MUCH easier way.
1. Do a "Nandroid +ext" back up.
2. Copy that back up to computer hd.
3. Power down phone
4. Insert new card
5. Partition correctly
6. You can do this next step a couple ways
a. USB toggle in recovery mode and copy nandroid to new sd card
b. Power down phone, insert new sd card with adapter into computer and copy nandroid
7. Power into recovery
8. Restore nandroid
9. Reboot
Click to expand...
Click to collapse
How do I do a Nandroid +ext backup? Runnng CWM 5.0.2.0 and there is no option for ext backup. The only option is backup.
I have 3 files on my sd card that needs to be pushed to my EXT3. These files are from my old sd card.
Files are
app
app-private
dalvik-cache
They are currently on my fat32 partition of my new sd card.
What commands do I use in adb to push these files to EXT3 ?
Can you give the commands for terminal as well because with my new sdcard I can't boot into the Rom
For some reason also with my new sd card I can't boot into the rom even after a nanoid restore and reflash of the rom.
In a few days, I will get my new sdcard, a 16gb one. How should I go about switching it the easiest way? I run ICS and it's partitioned to 1GB ext4 storage.
Sent from my Nexus One using Tapatalk
Copy and paste? You really don't need anything more.
I backup old card to pc (copy/paste as mentioned)
then use sdformatter outside of phone to format with full erase and size adjustment on
http://dl.dropbox.com/u/28338566/SDFormatter 2.0.mht
this is a sure way to fully format card
then I put back in phone partition 1gb ext4 no swap
then copy back files from pc to card
don't know any easy way, but the best imo
If you're using SD-EXT partition and don't have access to Linux:
Complete nandroid backup in recovery (it will back up the EXT partition too).
Mount USB from recovery, copy everything from card to PC.
Power off the phone.
Remove the card.
Insert the new card.
Boot to recovery.
Partition the new card (1GB EXT4, no swap).
Mount SD in recovery, copy everything from PC to card.
Unmount card.
Full nandroid restore (it'll restore the EXT4 partition).
Reboot and you're good.
Just copying what's on your SD card to PC will leave you without booting OS and apps.
On Linux you can copy EXT partition contents to PC, and copy them to the new card after repartitioning. But if you were on Linux, you woudn't be asking...
Jack_R1 said:
If you're using SD-EXT partition and don't have access to Linux:
Complete nandroid backup in recovery (it will back up the EXT partition too).
Mount USB from recovery, copy everything from card to PC.
Power off the phone.
Remove the card.
Insert the new card.
Boot to recovery.
Partition the new card (1GB EXT4, no swap).
Mount SD in recovery, copy everything from PC to card.
Unmount card.
Full nandroid restore (it'll restore the EXT4 partition).
Reboot and you're good.
Just copying what's on your SD card to PC will leave you without booting OS and apps.
On Linux you can copy EXT partition contents to PC, and copy them to the new card after repartitioning. But if you were on Linux, you woudn't be asking...
Click to expand...
Click to collapse
Agree, a little faster way will be to backup only sd-ext from recovery and restore only it to new card.
BTW, new card is good time to get rid of old junks in sdcard. Copy only whatever is required.
anubhav77 said:
new card is good time to get rid of old junks in sdcard. Copy only whatever is required.
Click to expand...
Click to collapse
That is very true