Copy partition to new SD - General Questions and Answers

I'm upgrading to a larger capacity SD card and want to transfer the 2nd partition to the new SD card. How do I do this? Can I increase the size of the 2nd partition on the new SD and still transfer the data from the partition from the old SD?

You can use a Linux based partition editor called GParted, just download the iso for the live CD, burn the iso to CD and boot your computer from that.
There's a video tutorial for partitioning micro sd cards for android here, but instead of partitioning you will be copying the partition from your old sd to your new one.
It's a relatively simple program to use. If you have any questions about it feel free to ask

Related

[Q] How can I backup/restore my data in the ext2 partition?

Hi,
I am now using a 8GB SD card for my phone (around 6GB FAT32 and 1GB EXT2).
Now I am going to change into a new 16GB SD card (that I will create 1GB EXT2 partition soon)
Can anybody tell me how I can move the EXT2 partition from the old card to new new one using my pc?Thanks!
The only way I know of to do it with a pc would be to use a Linux distro, live or otherwise, then read the data from the ext partitions and copy it over manually if you can have both cards hooked in at the same time (one in a reader one in the phone).
Thanks but my Desktop is running Windows 7,
is there any alternative solutions?

[Q] How to restore back SD card size after installing image file

Hi,
I accidentally wrote the SDCard CM7 installer image file (version 1.3) for Nook on a 512M microSd card using WinImage. It only shows about 200M under windows now. How can I restore the microSD card back to the original size using Windows?
Thanks
Anyone knows the answer?
Reformatting SD card under Windows
The HPUSBFW.exe format utility will reformat your SD card to its original size. I found the utility via Google.
I am running into the same issue while trying to create a bootable CM7 card for my Nook Color. If I use WinImage (Restore virtual drive image) or Win32DiskImager to write the generic SD card image to my SD card, the resulting size is a bit less than 130MB. I can copy the CM7 and Google Apps ZIP files to the card with little space left over. My NC will boot from the card and attempt to install CM7 and the Google apps, but installation will eventually fail because no space is left on the device. Subsequently my NC will no longer boot from the SD card and boots into the Nook Reader instead.
If I use WinImage and manually choose the SD card image and destination drive, I can write the image to the SD card without changing the partition size. However, my NC cannot boot from the resulting image.
I'm at a loss.
SD CARD
Thank You, I was able to recover my SD Card.

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!

[Q] My Memory Cards Space Got Drastically Decreased.

I have been using a 4gb memory card out of which 3.6 was usable. One day, I connected it to my chromebook and transferred a few files and directly pulled the wire off forgetting about ejecting the device and turning the usb mass storage off. Then I opened the file manager it was showing total storage:447MB and availabel storage:447MB. pls help me with this problem.
Here you go
First point first - Backup your data
I assume that you have access to a Windows or a Linux desktop...
For Windows you will need Minitool Partition Wizard Free Version...
For Linux - GParted will do the job...
----------------------------------------------------------
For your specific problem, it appears to me that the primary partition of your SD card is accidentally shrunk...
So, Plug in your SD card
Open up Minitool Partition Wizard or GParted, find your SD card.....
... and if I am right, you can see 2 or more partition in your SD card
[Make sure you have backed up your data before proceeding]
1. Delete all of the partitions present in your SD card one by one (right click on the partition to find 'delete')
2. You will now end up with an unallocated space of size of your SD card.
3. Right click on that unallocated partition and Create
4. Make sure your new partition is Primary, NOT LOGICAL, and FileSystem = FAT32
5. Apply your changes, and your SD card will be showing it's full capacity.
Thank you I will try it out and let you know if it works
One reason may be that your sd card has some bad sectors due to which some part of the sd card may not be accessible or maybe there is some kind of virus in your sd card. Actually it happened with me also but in my case it was my pen drive and the reason was some of the sectors were not working properly and at last pen drive did'nt work at all....
If that is the reason wouldn't formatting the sd card work out.

Can't move apps to SD card (Links2SD not supported on this phone?)

I've been trying to move apps to my SD card using Links2SD, but apparently this phone doesn't support moving apps to the SD card. Is there a way to do this?
I also tried "linking" apps to the SD card (even though I'm not quite sure I understand what that means), but I'm getting an error saying I don't have a second SD partition. If this is my last hope, how do I create a new SD partition?
Running Resurrection Remix on 6.0.1.
Thanks!
Edit: found this thread on creating a second partition, but I'm wondering if it's possible to do it on the phone since I don't have a card reader.
I think you can use TWRP to partition the SD card... A ext2/3/4 partition is required to use Link2SD on any device
Note that you cannot use the card as adopted storage. Always set the first partition as FAT32 and the second as ext4, or the card cannot be read in some Windows PC's, I would recommend a minimum 32GB card and at least U1/UHS-1 speed rating for acceptable performance.

Categories

Resources