Best Strategy to partition SD Card - Android General

Hi Friends,
I have a Redmi 4X which has 16GB internal memory but it`s always running out of space. So, I decided to expand it. I have rooted my device and inserted a 64GB Micro SD. I want to move apps to it, so I've installed Link2SD.
Now it's the part where I'd like some explanation about.
How does this apps (link2sd or similars) works? It seems that I need to have two partitions on it and this second partition has to be EXT4. Is this correct? Why two or why not only one? And, my idea is to maximize space (I hate the message that space is running out!), so, if I need 2 partitions, which partition sizes would you suggest for this 64GB? Both should be EXT4? What about a swap partition, should I create one as well?

Related

[Q] App2SD and partion help needed

Hey guys. I am totally new to the whole Android thing so if I come off sounding stupid with my questions please forgive me in advance. I just bought a Samsung Transform last week and the internal memory is already full. I deleted some apps to make room but that sucks. I wanted to move the apps from the internal memory to my SD card. The sd card that came with the phone is a 2GB Sandisk Micro. I'm assuming you guys are going to tell me to buy a bigger card. I've spent hours researching this and this is what I have done so far. I read that you are supposed to "root" the phone. I have done so with a program called "z4root". I have also downloaded "app2sd" but when I went to run it it wanted to partion the sd card. I'm assuming this also is going to format the card so I should back up the pics and music I have on the card to my PC. The partion part of this thing is where I'm getting confused. I've read to create a swap. The I've read to not create a swap. Whatever the hell a swap is anyway. Then there is the ext2, ext3, ext4, discussions. I'm lost!! All I want to do is put my apps on the SD card so I can free up my internal memory. When I create these partions what size should they be and on what partion do I put the apps? And if I put all my apps on one partion then what is the other partion used for? Please help as I'm not sure how to proceed. Thanks alot.

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] Link2SD problems on the Galaxy Note 10.1

I own a Galaxy Note 10.1 GT-N8013, it is rooted but I still use the stock ROM. I've been doing some tests to see if Link2SD would solve my storage problem. During these tests I noticed that all the big games I linked to the 2 partition of my SD card aren't really linked, as they still are inside the internal storage!!! After that I also noticed in the storage info that I have an external SD card, a SD card second partition and a SD card strangely similar in size to my internal storage!!!! (image attached to help undestand) Can someone explain this to me and possibly give me a solution!!!
No Problem with LINK2SD!!!
PedroJGT said:
I own a Galaxy Note 10.1 GT-N8013, it is rooted but I still use the stock ROM. I've been doing some tests to see if Link2SD would solve my storage problem. During these tests I noticed that all the big games I linked to the 2 partition of my SD card aren't really linked, as they still are inside the internal storage!!! After that I also noticed in the storage info that I have an external SD card, a SD card second partition and a SD card strangely similar in size to my internal storage!!!! (image attached to help undestand) Can someone explain this to me and possibly give me a solution!!!
Click to expand...
Click to collapse
I'm using LINK2SD and I don't have any problems.
In fact I have close to 370+ apps (user) and except ENCRYPTED apps (~8) all are in EXT SDCARD 2nd partition.
It is TRUE whenever I'm flashing a NEW ROM - I don't see all those 360+ apps because 2nd partition is not mounted yet (because of new flash).
When I click LINK2SD it again re-creates mount scripts and I have all the apps again.
So far so good.
What I'm saying is that whenever I move a big game like Real Racing 3, Link2SD only moves a couple of MB's that are in the internal memory to the SD card's 2 partition, the 1GB of game data stays in the internal SD card!!! My space problem is a result of many games in my note, so I need to move the game data to the SD card!!
I'm a new Galaxy Note 10.1 GT-N8013 owner and need a few pointers on using link2sd. I installed it and understand that since our tablets don't support Apps2Sd natively that we have to move the relevant files to their respective locations onto the 2nd(exFat) partition of the SD card. I understand this however I am not sure how to do it since the tablet can't see this second partition(at least mine can't). If I go to Settings->Storage I can only see my main 16GB internal storage and the 1st(Fat32) partition on the sdcard. No other file managers allow me to see this 2nd partition on the sdcard either. With that in mind, how do I access this 2nd partition to move the linked files to the sdcard?
Dudes, you need to understand, that Link2SD and app2sd DON'T move the big app (game) data from the /mnt/sdcard0/Android folder to your external SD. It only moves the app itself. It was always this case, so I'm wondering about the hype unless you don't have a small app partition.
You have to use Directory Bind or FolderMount for moving big files to external SD. Or simply swap external SD with internal storage.

[Q] SD CARD Partion

Good morning all !!!!
I have done an ample amount of reading and I am still confused by the topic a little bit. And the post I came across were rather old. I just bought a 32G micro SD card for my galaxy s 4g running (wicked rom 9.1). This rom finally has the ability to move apps to SD. My question is, is it really necessary to partition your SD card for any reason??? What are the benefits? I still do not get he concept. I can only find the ways to do it. but not the reason.
*BUMP*
so.... I still did a bunch of reading, and did a SD card wipe attempted the 2nd partition and using link2sd and seems that the 2nd partition is not being recognized? can someone point me in the right direction?
Partitioning the SD card!
Actually, partitioning gives you the benefit of using space in your SD Card to install apps or use app data, instead of cramming it all up in the phones' internal memory. In other words, the Second Partition acts as the internal memory of the phone. So creating a 1 GB partition for a device with low internal memory allows the user to install more apps and doesn't let the internal memory decrease.
Link2SD can only accept partition with the proper scripts, i.e if the SD card has been partitioned with Ext2 then Link2SD must also be given the command for creating scripts as Ext2.
It is usually recommended to partition SD as Ext2 or Ext3 and create scripts on Link2SD as the same.
Hope it helped :good:

Extra space /data

Hi all,
since i had very low experience with android devices (i use an lg g2 for a few months only), i ended up buying my wife one of this although i knew it had only 4GB of space, i had 16GB SD Card i thought would do the trick... In like 2 days its out of space, /data is only 1GB so the phone is practically unusable! Is there a way to rebuild android on top of the SD Card, or even mounting /data in sd card or maybe extending /data to use Sd card also?
TKS!
bcorrea said:
Hi all,
since i had very low experience with android devices (i use an lg g2 for a few months only), i ended up buying my wife one of this although i knew it had only 4GB of space, i had 16GB SD Card i thought would do the trick... In like 2 days its out of space, /data is only 1GB so the phone is practically unusable! Is there a way to rebuild android on top of the SD Card, or even mounting /data in sd card or maybe extending /data to use Sd card also?
TKS!
Click to expand...
Click to collapse
try to root, and use link2sd to move app to the SD or you can uninstall app that you cannot use.
my wife has too this phone.
you can root via framaroot, you can search at search panel.
it simple!
bcorrea said:
Hi all,
since i had very low experience with android devices (i use an lg g2 for a few months only), i ended up buying my wife one of this although i knew it had only 4GB of space, i had 16GB SD Card i thought would do the trick... In like 2 days its out of space, /data is only 1GB so the phone is practically unusable! Is there a way to rebuild android on top of the SD Card, or even mounting /data in sd card or maybe extending /data to use Sd card also?
TKS!
Click to expand...
Click to collapse
how about post this to questions chanel???
noenoen said:
try to root, and use link2sd to move app to the SD or you can uninstall app that you cannot use.
my wife has too this phone.
you can root via framaroot, you can search at search panel.
it simple!
Click to expand...
Click to collapse
Rooting guide is here
http://forum.xda-developers.com/sony-xperia-c/help/how-to-root-android-device-easiest-t2837947
A temporary fix would be to go to settings/ storage and set Preferred Install Location to SD Card. After that, go to settings/ apps - SD card tab. There you will find the list of movable apps. Just choose and tap Move to SD card in the App Info screen.
There are two ways to increase your internal memory
1) Use Link2SD Application and then move all apps from Internal storage to SD Card and uninstall unwanted System Apps
2) Partition your SD Card using CWM and make it as a Swap Partition, that would free some of your Internal Memory
bcorrea said:
Hi all,
since i had very low experience with android devices (i use an lg g2 for a few months only), i ended up buying my wife one of this although i knew it had only 4GB of space, i had 16GB SD Card i thought would do the trick... In like 2 days its out of space, /data is only 1GB so the phone is practically unusable! Is there a way to rebuild android on top of the SD Card, or even mounting /data in sd card or maybe extending /data to use Sd card also?
TKS!
Click to expand...
Click to collapse
you can now make it 2gb by editing the partation
i can't post outside links so inbox me for link

Categories

Resources