Upgraded SD card...How do I make a seamless transition without using Linux - G1 Android Development

I have ordered a 6gb class 6 sd card. Currently I have a 4gb class 2.. I am running the Dude's 1.1a with the ext partition. How can I migrate the data from the old sd card (namely the ext2 partition) without losing all of the apps and causing problems.... Also, I don't want to use Ubuntu or Linux... I tried this and its just too much trouble for a windows user!
Should I just wipe and start over?

iflyabeech said:
I have ordered a 6gb class 6 sd card. Currently I have a 4gb class 2.. I am running the Dude's 1.1a with the ext partition. How can I migrate the data from the old sd card (namely the ext2 partition) without losing all of the apps and causing problems....
Should I just wipe and start over?
Click to expand...
Click to collapse
You could use the Backup for Root Users app to back up all your apps/data onto the FAT32 partition of the sd card, then copy them onto your computer and then onto the FAT32 partition of the new SD card(after partitioning it of course). Then use appstosd2 to make the /system/sd/app directory(copy apps to sd) and restore the backup.
EDIT: I know that sounds like a lot of steps but I really couldn't see it taking more than... say... 5 minutes.

Hmm... If you are on about directly copying the apps folders to FAT32 and copying it back to ext2, I warn you it will likely cause problems with losing file permissions.
I'm not sure that's what you mean but I just want to point it out.

you can put everything in the ext2 partition into a tar file (tar -cvf /sdcard/filename.tar /system/sd) on the fat partition and copy it over to the new card and untar (tar -xvf /sdcard/filename.tar). make sure you issue both commands in the root directory, or you may extract the files to wired places...

Dark X Dragon said:
Hmm... If you are on about directly copying the apps folders to FAT32 and copying it back to ext2, I warn you it will likely cause problems with losing file permissions.
I'm not sure that's what you mean but I just want to point it out.
Click to expand...
Click to collapse
No, the backup for root users app stores it on the sd card by default so I'd presume that it maintains file permissions somehow.

Putting it into a tar file is a pretty good plan.
Well putting the files directly onto the FAT partition will make them lose their permissions. I guess that app might put them into a tar file like said above.

Related

[Q] New SD card transfer but I have voodoo installed

This is just more of a confirmation than a question.
I'm going to be getting a larger SD card for my SK4G and I have voodoo lagfix installed (ext4 partition).
I'm guessing when I get the card I need to reformat it using either my Ubuntu partition or a free tool to the ext4 file system.
Once I reformat, I can then just tar or zip up my existing card and untar or unzip the contents onto the new card.
Has anyone done this?
Thanks for any help.
It's the internal memory of the phone which gets converted to Ext4 by Voodoo lagfix. Your MicroSD card remains in Fat32. I just pulled the 32 gig card out of my voodoo'd SK4G and shoved it in my USB card reader and Windows XP still sees it as Fat32
TM_SK4G said:
This is just more of a confirmation than a question.
I'm going to be getting a larger SD card for my SK4G and I have voodoo lagfix installed (ext4 partition).
I'm guessing when I get the card I need to reformat it using either my Ubuntu partition or a free tool to the ext4 file system.
Once I reformat, I can then just tar or zip up my existing card and untar or unzip the contents onto the new card.
Has anyone done this?
Thanks for any help.
Click to expand...
Click to collapse
yeah, as said already voodoo doesnt convert your SDcard. Only your system cache and data partitions on the phone. so you can switch the Sdcard with no problem
when putting the stuff on your new Sdcard just move all the content from your current Sdcard to a folder on your computer then put the new SDcard in your phone then move all of your content from the computer to the new sdcard

moving from Nexus One

hi, i've just bought G2X, formerly i had Nexus One.
my question is concerning of restoring apps. i would like them to be installed in internal memory. i backuped apps used at N1 with Titanium Backup. so should i repartition SD card to be whole at fat32 (no ext4 partition)? and restoring in Titanium Backup will restore them to internal memory?
so steps should be like this:
1. formatting card - whole at fat32
2. copying Titanium Backup folder to sd card
3. restoring apps
?
hmm, it seems, that apps are already installed to internal SD and i need to move folder with my backups of Titanium Backup to internal SD and change backup directory in program.
so will try this in the evening. anyway: there is no need for having ext3/4 partition in SD card (external) for apps, like for N1 and whole card may be formatted in fat32, right?
I wouldn't worry about EXT3/EXT4... I've found no need for it. Apps install perfectly fine on the SD card without it.
That if what I did. The entire micro sd formatted as fat. Works fine.
jsapp said:
That if what I did. The entire micro sd formatted as fat. Works fine.
Click to expand...
Click to collapse
Same here. The G2X has plenty of onboard memory for apps. No need to install them to sdcard.
G2X CM7
phburks said:
Same here. The G2X has plenty of onboard memory for apps. No need to install them to sdcard.
G2X CM7
Click to expand...
Click to collapse
so did I. my question is: which apps folders from external SD card i can move to internal SD card? do i need to open every app and look for "save" or "backup" folder in settings and then change it after moving or so? how about your apps?
miguelm75 said:
so did I. my question is: which apps folders from external SD card i can move to internal SD card? do i need to open every app and look for "save" or "backup" folder in settings and then change it after moving or so? how about your apps?
Click to expand...
Click to collapse
Is the A2SD on the Nexus just a partition that is symlinked to /data? If so, you should just be able to restore all in Titanium rather easily. If it's the official Android A2SD, that might be more complicated.
Just a guess, but maybe just manually copy all your apk's from your backup folder into the /data/app folder, reboot, then restore all the app data from Titanium?
r4d14n7 said:
Is the A2SD on the Nexus just a partition that is symlinked to /data? If so, you should just be able to restore all in Titanium rather easily. If it's the official Android A2SD, that might be more complicated.
Just a guess, but maybe just manually copy all your apk's from your backup folder into the /data/app folder, reboot, then restore all the app data from Titanium?
Click to expand...
Click to collapse
i used DT Apps2sd script, so restoring from TiBa wasn't a problem. i'm wondering about moving folders with some apps data, like preferences etc.
miguelm75 said:
so did I. my question is: which apps folders from external SD card i can move to internal SD card? do i need to open every app and look for "save" or "backup" folder in settings and then change it after moving or so? how about your apps?
Click to expand...
Click to collapse
To b honest I never bothered with copying my app data from my nexus 1. Other than my photos, music, movies, and documents, I just started over from scratch with my G2X. I figured I wanted as clean a slate as possible and didn't wanna carry over anything that might conflict with my new phone. Maybe that wasn't a necessary step, but then again, I haven't had many issues with my phone so maybe it helped.
G2X CM7

Formatting Question?

Hi all,
I have been reading about an issue that I have: 'android.process.media' keeps stopping.
One of the suggestions is that there maybe a corrupted file on your external sd card.
The fix is to either delete the file; good luck trying to find which file. or to reformat the sd card.
Since I have the keyboard dock and several 32gb microSD cards. I plan on copying all my files to the other card and then formatting the card in question.
However, it seems on the Asus tablet, I am not given the format option. I had it on my Samsung phone before the upgrade to ICS.
But one thing I wanted to do after some other reading is to format the card the same file system that is used on the internal memory.
If I have my facts correct, the internal memory is formatted as 'ext' and external SD cards get formatted as 'fat' (or is that fat32).
I think it's formatted as fat, is for compatibility with your PC.
However, the article, said that 'ext' is much more secure and less prone to corruption.
So is there anyway to format the external SD card in this 'ext' file system and how would one do that process?
Thanks!
Rob
You would need to do it in linux or find a windows program that could do it, as ext is not supported in windows. Im not sure the microsd will work right in the tablet formated as ext and your windows desktop wont be able to access .
Ok, I read in another thread, they suggested to put the microsd card in the phone and format from there.
I did do that.
And I have another question, my phone is rooted and it contains CWM.
I noticed in CWM, that you can fomat from there.
There are options to format areas, like /system /cache and the one I am interested in is /sdcard.
My question is this, is this /sdcard the external micro SD card or is it simply the partition /sdcard which is Samsung's internal memory. I don't want to take a change and format the internal SD card.
I think once formatted the external SD card, but I was on a different version of CWM, I have a different one after the ICS upgrade that was recommended by someone helping me do the ICS upgrade.
Anyway, thanks in advance!
Rob
Whoops almost forgot, there is thread on xda about formatting memory in ext4. I would like to try that and see if the Asus tablet can read that if I get to format the external card in ext4 Still looking for a Windows program that will format in that mode.
/sdcard is internal. /Removable is external.
I would be surprised if you can find a Windows program that reads, let alone writes, any type of ext filesystem (and forget about anything less mainstream like JFS or ReiserFS). Microsoft only made Windows compatible with their own filesystems, FAT32 and NTFS.

Help needed to Understand Partitioning Sd card in detail!!

Hey Guys, I don't what basically Partitioning Sd card means!!?? ( I know it sounds noobish but can't help) Plz can someone explain me in detail about it! Plz ..
..... :what:
Any kind of response will be greatly welcomed!
Sent from Galaxy Ace running ICS!
Ansh1107 said:
Hey Guys, I don't what basically Partitioning Sd card means!!?? ( I know it sounds noobish but can't help) Plz can someone explain me in detail about it! Plz ..
..... :what:
Any kind of response will be greatly welcomed!
Sent from Galaxy Ace running ICS!
Click to expand...
Click to collapse
To understand what partitioning an SD card means, you have to know what partitioning is in the first place. Partitioning is the act of dividing some kind of physical device, either a hard drive or in this case an sd memory card, into multiple logical devices.
If you had a brand 10GB hard drive, it would come with only one partition, C:\ which totaled 10GB of space. But if you split that hard drive into 2 partitions of equal size, you would have a C:\ and a D:\ drive, each totaling 5GB of space. Partitions don't have to be of equal size, and they don't have to be in the same format.
Now for android, most times partitioning an SD card is used to gain more space to store apps. If you create a partition on the SD card which is formatted in ext2 ext3 or ext4, you can link apps to that folder to free space from your internal SD card.
An example of this would be if you have no more space left in your internal memory for say, Angry Birds. You could partition your 8GB SD card into a 1GB ext3 partition and leave the rest in a 7GB FAT32 partition. In this way, you could use an app like link2sd or app2sd to move apps to the SD card to free internal memory up.
universeman said:
To understand what partitioning an SD card means, you have to know what partitioning is in the first place. Partitioning is the act of dividing some kind of physical device, either a hard drive or in this case an sd memory card, into multiple logical devices.
If you had a brand 10GB hard drive, it would come with only one partition, C:\ which totaled 10GB of space. But if you split that hard drive into 2 partitions of equal size, you would have a C:\ and a D:\ drive, each totaling 5GB of space. Partitions don't have to be of equal size, and they don't have to be in the same format.
Now for android, most times partitioning an SD card is used to gain more space to store apps. If you create a partition on the SD card which is formatted in ext2 ext3 or ext4, you can link apps to that folder to free space from your internal SD card.
An example of this would be if you have no more space left in your internal memory for say, Angry Birds. You could partition your 8GB SD card into a 1GB ext3 partition and leave the rest in a 7GB FAT32 partition. In this way, you could use an app like link2sd or app2sd to move apps to the SD card to free internal memory up.
Click to expand...
Click to collapse
Thanks a lit for reply!! Just a Q.So when say i flash a new Rom will all of my partition will be wiped off ...? Will the Remaining(say 7 Gb) will it remain the same ...??
Sent from Galaxy Ace running ICS!
Ansh1107 said:
Thanks a lit for reply!! Just a Q.So when say i flash a new Rom will all of my partition will be wiped off ...? Will the Remaining(say 7 Gb) will it remain the same ...??
Sent from Galaxy Ace running ICS!
Click to expand...
Click to collapse
If you flash a new Rom, you will be formatting the internal flash memory as well as the apps partition on your sd card. In my example, the 7GB partition will be completely unaffected.I would be careful though, there are ptions in CWM recovery that do allow you to flash the 7GB partition. However, if you just do a simple wipe data/factory reset from CWM, your data will be safe.
universeman said:
If you flash a new Rom, you will be formatting the internal flash memory as well as the apps partition on your sd card. In my example, the 7GB partition will be completely unaffected.I would be careful though, there are ptions in CWM recovery that do allow you to flash the 7GB partition. However, if you just do a simple wipe data/factory reset from CWM, your data will be safe.
Click to expand...
Click to collapse
OK so partitioning the Sd card do not wipe off music files(for eg) and some other stuff which I access through file explorer! Right ....?
Sent from Galaxy Ace running ICS!
To understand what partitioning an SD card means, you have to know what partitioning is in the first place. Partitioning is the act of dividing some kind of physical device, either a hard drive or in this case an sd memory card, into multiple logical devices.
If you had a brand 10GB hard drive, it would come with only one partition, C:\ which totaled 10GB of space. But if you split that hard drive into 2 partitions of equal size, you would have a C:\ and a D:\ drive, each totaling 5GB of space. Partitions don't have to be of equal size, and they don't have to be in the same format.
Now for android, most times partitioning an SD card is used to gain more space to store apps. If you create a partition on the SD card which is formatted in ext2 ext3 or ext4, you can link apps to that folder to free space from your internal SD card.
An example of this would be if you have no more space left in your internal memory for say, Angry Birds. You could partition your 8GB SD card into a 1GB ext3 partition and leave the rest in a 7GB FAT32 partition. In this way, you could use an app like link2sd or app2sd to move apps to the SD card to free internal memory up.
Click to expand...
Click to collapse
There are a couple steps missing. Continuing from the hard drive example, the 8GB SD card would have 1 large partition, formatted as FAT (or a variant, such as FAT32). The internal memory space of the Android device is formatted as EXT (or variant), as Android is Linux-based. Android is designed to recognise FAT as "foreign," and EXT is seen as "native." Therefore, we can trick the OS (Android) into thinking there's more drive space than exists physically in the device, in the following way: Repartition the 8GB SD card to 2 partitions, format the 1st one as FAT, & the 2nd one EXT, then tell the OS to use the 1GB EXT drive to store stuff that's normally only put in internal "native" memory. In Windows, this is called a shortcut, & in Linux it's called a link. So you link a folder from the internal memory space to the 2nd partition of the SD card. This is managed quite easily through apps like link2sd, as mentioned previously. The OS (Android) doesn't know that the linked data actually resides on external memory.
Theoretically, you could link the entire everything to a gigantic SD card, and, in a way, that what people did when they rooted the Nook Color. This would give you tremendous space to play with, but does have potentially significant limitations.
-- Sent from my TouchPad using Communities
post-mortem said:
There are a couple steps missing. Continuing from the hard drive example, the 8GB SD card would have 1 large partition, formatted as FAT (or a variant, such as FAT32). The internal memory space of the Android device is formatted as EXT (or variant), as Android is Linux-based. Android is designed to recognise FAT as "foreign," and EXT is seen as "native." Therefore, we can trick the OS (Android) into thinking there's more drive space than exists physically in the device, in the following way: Repartition the 8GB SD card to 2 partitions, format the 1st one as FAT, & the 2nd one EXT, then tell the OS to use the 1GB EXT drive to store stuff that's normally only put in internal "native" memory. In Windows, this is called a shortcut, & in Linux it's called a link. So you link a folder from the internal memory space to the 2nd partition of the SD card. This is managed quite easily through apps like link2sd, as mentioned previously. The OS (Android) doesn't know that the linked data actually resides on external memory.
Theoretically, you could link the entire everything to a gigantic SD card, and, in a way, that what people did when they rooted the Nook Color. This would give you tremendous space to play with, but does have potentially significant limitations.
-- Sent from my TouchPad using Communities
Click to expand...
Click to collapse
Using one large SD card was also what I did with my first android phone, the LG Optimus V. It didn't have a real large internal memory space, so I used a class 10 SD microSD card to supplant it. Also, if you want to get truly technical, what link2sd and other similar apps are doing is creating what is called a hard link.
A shortcut, or rather a soft link, differs from a hard link in that a soft link appears to the OS as a shortcut. Meaning the OS knows that the file resides on another storage location. By using a hard link, the OS is not aware that the file resides in another location.
For example: Say you have the following setup
SD Card Partition 1: [/mnt/sdcard-ext/data] (For apps)
Partition 2: [/mnt/sdcard] (For everything else)
Internal Apps: [/data] (Normal app location)
If you wanted to move "/data/angrybirds.apk" to the SD card using a soft link, you (or an app) would have to move "angrybirds.apk" from [/data] to [/mnt/sdcard-ext/data] then create a soft link to "/data/angrybirds.apk".
However, the problem with this approach is that android doesn't accept soft links in place of application files. So to trick it, you create a hard link by the same method above. But this time, because it is a hard link, to the Android OS, the file doesn't appear to have moved at all.
---------- Post added at 01:06 AM ---------- Previous post was at 12:57 AM ----------
Also, I forgot to mention that the class of SD card you use is very important. Cards are ranked from 2-10 with Class 10 being the fastest(1). If possible, I recommend buying at least a Class 8 card if not a Class 10 card. They are not available in most local shops, but they are available online for cheaper than the store would have cost anyway.
1 http://en.wikipedia.org/wiki/Secure_Digital#Speed_Class_Rating
Ansh1107 said:
OK so partitioning the Sd card do not wipe off music files(for eg) and some other stuff which I access through file explorer! Right ....?
Click to expand...
Click to collapse
Partitioning will format the card and erase everything, so backup your sdcard! Like anything on here, make a backup before continuing, but for this, make sure you're backup is on your computer, not your phone.
Also, I forgot to mention that the class of SD card you use is very important. Cards are ranked from 2-10 with Class 10 being the fastest(1). If possible, I recommend buying at least a Class 8 card if not a Class 10 card. They are not available in most local shops, but they are available online for cheaper than the store would have cost anyway.
1 http://en.wikipedia.org/wiki/Secure_Digital#Speed_Class_Rating
Click to expand...
Click to collapse
Actually, those speed ratings are measured using burst read/write, so are most reflective of performance during operations with very large files. Typically, a higher class rating is associated with higher speeds with large files, but a slower speed with small files (~4kB). Hence, the recommended class rating of SD card depends on the intended usage: highest class affordable for high resolution video, while class 4 or 6 for reading/writing many small files (e.g., mobile phones).
-- Sent from my TouchPad using Communities
Thanks a lot guys For replying and letting me explore more about partitioning! So which is a better app to control partitions? A2SD or Link 2Sd?
Does partitioning causes any harm to OS....?
Sent from Galaxy Ace running ICS!
Thanks a lot guys For replying and letting me explore more about partitioning! So which is a better app to control partitions? A2SD or Link 2Sd?
Does partitioning causes any harm to OS....?
Sent from Galaxy Ace running ICS!
Click to expand...
Click to collapse
You cannot repartition the internal memory, so your question only applies to the external memory (SD card). Partitioning by itself only makes 1 "disk" appear as multiple "drives". So the real question depends on what you do with the partitions. Most people are satisfies with creating 1 additional partition, and using any of the many available "2sd" apps, which will do the hard work of creating the links (=shortcut, remember?) into the 2nd partition.
Basically, pick one and go with it. Remember that repartitioning your SD card will usually obliterate all data on it. Backup, backup!
-- Sent from my TouchPad using Communities
post-mortem said:
You cannot repartition the internal memory, so your question only applies to the external memory (SD card). Partitioning by itself only makes 1 "disk" appear as multiple "drives". So the real question depends on what you do with the partitions. Most people are satisfies with creating 1 additional partition, and using any of the many available "2sd" apps, which will do the hard work of creating the links (=shortcut, remember?) into the 2nd partition.
Basically, pick one and go with it. Remember that repartitioning your SD card will usually obliterate all data on it. Backup, backup!
-- Sent from my TouchPad using Communities
Click to expand...
Click to collapse
I would say it depends on your situation. Link2SD will let you choose what apps you want to be on the SD card. Apps2SD will put everything there. Also, Link2SD has a GUI you can use to move apps, where Apps2SD is done in a command line. So honestly, I would recommend Link2SD. It's free in the market.
As far pas whether partitioning harms the OS? No, it should not. that said, I would always make backups of everything anytime you have a fear of losing data.
If I switch to some other phone what will happen to my Partitions....?
Sent from Galaxy Ace running ICS!
Partitions where? The partitions on the phone's internal memory will stay on the phone, and the new phone will have its own internal memory (I hope this is obvious). The partitions on the SD card will stay on the SD card. If you put the old SD card into the new phone... well, then nothing happens to the partitions. It's like taking a hard drive out of 1 computer and putting it into another.
post-mortem said:
Partitions where? The partitions on the phone's internal memory will stay on the phone, and the new phone will have its own internal memory (I hope this is obvious). The partitions on the SD card will stay on the SD card. If you put the old SD card into the new phone... well, then nothing happens to the partitions. It's like taking a hard drive out of 1 computer and putting it into another.
Click to expand...
Click to collapse
OK so no problems with partitions when switching phone! Right ..?
Sent from Galaxy Ace running ICS!
Some stock ROMs do not have support for ext, so they will not be able to access any partition which has been formatted ext2/3/4. Therefore, if you have one or more partitions on your SD card which are formatted as ext, you are not guaranteed that the new phone will be able to read it. Of course, you can flash a new ROM (CM, MIUI, etc.), and the new phone will be able to read ext format.
Also, if you make a 2nd partition on your SD card for the purpose of using Link2SD, a2sd, or whatever *2sd scripts, your new phone will not know that you have apps installed on that partition, until you recreate the script to mount that partition during boot.
What is swap partition and what are scripts ...?
Sent from Galaxy Ace running ICS!
Swap partition
Script
post-mortem said:
Some stock ROMs do not have support for ext, so they will not be able to access any partition which has been formatted ext2/3/4. Therefore, if you have one or more partitions on your SD card which are formatted as ext, you are not guaranteed that the new phone will be able to read it. Of course, you can flash a new ROM (CM, MIUI, etc.), and the new phone will be able to read ext format.
Click to expand...
Click to collapse
I have never used a ROM, stock or otherwise, that hasn't supported at least ext2/3; though your mileage may vary. Most if not all ROMs should be able to use these partition types. However, ext4 is a fairly new partition type, and does require special care to make sure the ROM/Kernel supports it.
Again, before you do any rooting, ROM'ing, or partitioning, you need to do your research and if there is any hint or fear of losing your data, back it up. Make sure the ROM supports the filesystem you intend to use. There should be a changelog / list of features on the thread for your ROM telling you exactly what is in it.
How many types of partitions can be made?
Sent from Galaxy Ace running ICS!

sd card partition problem

Hello everyone.I made the sd card partition but now I do not have any songs or anything inside SD .They have all deleted or what?Please,tell me what to do so i can restore them.Thank you
When sd partition is made, the sd card is formatted during patitioning. & there is no way to recover files afterwards.
Yes, you can restore them provided that you haven't used the sdcard much.
Use Recuva for windows or TestDisk for linux.
koubos said:
Hello everyone.I made the sd card partition but now I do not have any songs or anything inside SD .They have all deleted or what?Please,tell me what to do so i can restore them.Thank you
Click to expand...
Click to collapse
if windows ain't detecting anything, that means you've created the first partition as ext 2/3/4 (which is wrong partitioning), the first partition should be FAT32 and primary, and the second small partition should be ext 2/3/4 and primary (and i guess you're using it for swap or link2sd etc), and after partitioning, if your windows is detecting properly your first FAT32 partition then you can restore deleted file using Recuva or tune up utilities (and loads of other softwares), recovery is possible after formatting, with a bit of luck...:good: (ie those deleted files shoundt be over-written with some other files you copied to your card)
First don't reuse SD card to save files and try with Remo Recover.

Categories

Resources