[Q] SD Card partitioning serious questions - General Questions and Answers

First of all I want to inform you , that probably I have almost screwed my SD card (formats, data wipes, restores blah blah). The SD is 64 GB.
Now I want to start everything from the beginning and prepare my SD for the Link2SD with a fat32 and an ext4 partition (if I ever will be able). But I have some general questions
1)In most "How to partition SD for Link2SD" guides, it is written that the 2nd partition should be smaller than the 1st one. Why? Is there any serious reason? We all know that Link2SD links only to 2nd partition, so the 1st partition is useless...its like we bought only equal or less than half of the SD card.Thats why I am asking it.
2) If I create an EXT4 as 2nd partition, is there any max size in gigabytes for it? (for example... max size for EXT4 is 4 GB). What about the other file systems?
3) The Ultimate, rocket-science ,ultra-difficult, psycho-mad scientist, genious-1337 H4ck3R Question:
>>Warning!: Please dont continue if you dont feel ready.You can now turn back and answer only the first 2 questions. <<
As I said in the beggining my SD suffers serious issues. When I use a partitioning tool (example Mini tool) to create a FAT32 and 2nd partition as EXT4 or other EXT, at the end only the FAT32 appears and the 2nd partition is tagged as "Other" file system. Because I have Linux too, I used Gparted to partition it...but the same result! With one difference though... it gave me details when I clicked to repair the 2nd partition (the repair failed though). The details are attached in this thread. As I understood it has something to do with "bad superblock"." e2fsck: Bad magic number in super-block while trying to open /dev/sdb2".
I dont even know what it's talking about... Are there magic numbers too?? Though I dont believe the SD has a hardware problem, I believe its because of the too many formats etc... I need some explanation for these problems o0 and what can I do?
Thanks for reading. You may answer what you can!

Related

Easiest Way to EX3T with Acronis*Disk Director Suite

I figured instead partition to ext2 first then revert to ext3 with some of the Roms, why don't we just partition the sd card to ex3t with Acronis Disk Director Suite.
It's simple and easy:
1. plug in sd card to the computer and open Acronis Disk Director Suite
2. click on the sd card drive and under wizard menu click on create partition
3. choose free space of the existing partitions to create first fat 32 partition
4. click next, choose the sd card drive
5. NEXT, and choose the size of your regular fat 32,( i have a 8bg so i put 6.5gb here) and choose fat 32
NOW creating ext3 partition:
6. under wizard menu again, choose create partition (sd card drive)
7. choose free space of the existing partitions
8. click next, choose the drive
9. click next, choose the size, again i put 1.5gb to put all my apps
10. NOW here, i choose ex3t under the type menu.
11. after all, just simply click to create the partitions and you're done.
Now you should have one fat 32 and one ext3
After all, just run the app2sd script under sdk, again it's a very easy step too, if you need me to post it, i will.
i just tested it myself, it worked, again it's your own risk , i found it so much easier to do it this way.
my knowledge of linux is very limited... so I'm gonna have to ask... how is ex3t different from ext3?
I get the impression xnycen means ext2 and ext3 but is writing it wrongly for some reason.
ebadevil said:
my knowledge of linux is very limited... so I'm gonna have to ask... how is ex3t different from ext3?
Click to expand...
Click to collapse
I don't think there is anything called EXT3T, it's EXT3.
Anyways there are too many threads about this and you can do it with GParted or Partition Manager anyways. I know why people are so complainy around here, it's because no one reads and everyone thinks they're the first to ask a question or post a new idea.
dont use acronis... ive lost 4 PC's to that beast, it never works properly. never writes anything correctly. and if you are using it to create formats and partitions... im going to have to say you have had amazing luck.
and above all, never use the OS selector.

Partitioning - I'm baffled

I've looked through all the tutorials and read an obscene amount of how-to's, yet I can't figure out partitioning. Tried it from the SDK on a mac and pc and got some sort of path error right from the start. I've tried disk utility on a mac but I am confused on what entries I need to make. Same goes with disk manager on a PC. I've also tried Ubuntu with no luck (got an error). You name it, I've tried it and now I'm exhausted. All I am trying to do it partition a 4GB card to get a linux-swap of 128MB for one of the hero ROMs I want to try...If someone could show me the entries I'd need to make for size for the 3 partitions, that would be great. Any guidance would be greatly appreciated.
Boot into recovery, create a partition.
Boot ubuntu, get the gnome partition editor
Resize the partitions as you need them.
Done.
If you were to flash Amon Ra's recovery it has an option to partition your sd card for you. I'm not exactly sure how much it would set the swap at, but I'm sure you could find it with a little searching. Here's the link to the recovery http://forum.xda-developers.com/showthread.php?t=530492
This is for a 8gb
adb shell
# parted /dev/block/mmcblk0
print
rm 1 (make sure you back up sdcard)
rm 2
rm 3
mkpartfs primary fat32 0 7599
mkpartfs primary ext2 7599 7604
mkpartfs primary linux-swap 7668 7732
quit
# reboot recovery
this is making the linux swap 128mb.
I use the method mentioned above:
adb shell
# parted /dev/block/mmcblk0
print
rm 1 (make sure you back up sdcard)
rm 2
rm 3
mkpartfs primary fat32 0 7599
mkpartfs primary ext2 7599 7604
mkpartfs primary linux-swap 7668 7732
quit
Click to expand...
Click to collapse
Here are some tips though on how to get these numbers...
1. You MUST have the SDK installed correctly with the drivers so you can initiate the adb command and communicate with the device.
2. Partition in Recovery mode. Either Cyanogen or Amon_Ra... I use Cyanogen, so I can't speculate as to how to do this with Amon_Ra
3. BACK-UP YOUR SD CARD, this WILL WIPE YOUR CARD!!
Ok, once you are in recovery, go into the shell:
adb shell
Once there, mount the card with parted:
parted /dev/block/mmcblk0
Once there, get your SD Card Information:
print
This will give you the size of your SD Card and list the partitions that currently exist on it. The number is gives you for SIZE is what you need to go off of, NOT ALL SD CARDS ARE THE SAME!!!
Be sure to remove any parititions that are there already (use the rm # command (# being the partition number you want to remove)).
The 8MB card above stops at 7732 where my 8GB card stops at 8053, so keep an eye on the numbers!!
Ok, now you have to work backwards... If you wanted to make 3 partitions, you work from back to front with the numbers:
For my card, since it ENDS at 8053, and I want a 128MB linux-swap partition, I simply take 8053 - 128 = 7925, so the THRID partion will be:
mkpartfs primary linux-swap 7925 8053
Now I have a 500MB ext3 parition so I take 7925 - 500 = 7425 which makes the SECOND partition:
mkpartfs primary ext2 7425 7925
And then the remaining space is for FAT32:
mkpartfs primary fat32 0 7425
So you will actually run them in the reverse order:
FAT32 > ext2 > linux-swap:
mkpartfs primary fat32 0 7425
mkpartfs primary ext2 7425 7925
mkpartfs primary linux-swap 7925 8053
Click to expand...
Click to collapse
You can adjust the numbers however you want for space assignment.
Once you are done, you should (unless the ROM dev states otherwise) upgrade the ext2 partition to ext 3.
In parted type:
quit
This will drop you to the shell and then type:
upgrade_fs
Wait for this to complete and you now have FAT32 + ext3 + linux-swap
Hope this helps explain it some!
this android and me how to is the best ive seen has pictures and step by step, made partitioning a breeze http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Thanks for the help guys. I'll keep trying but I haven't been able to get the ADB working via the SDK. I know I am doing something wrong with the path because its not even letting me get past the initial command. By the way, I have the Amon Ra recovery and I believe it auto-partitioned 32MB. I need 98, possibly 128.
On the bright side, I just received a replacement phone because my first mytouch was defective and giving me horrible reception (BEFORE I ever tried messing around with it). So, now I have two phones, one of which I can mess around with.
staunty said:
I've looked through all the tutorials and read an obscene amount of how-to's, yet I can't figure out partitioning. Tried it from the SDK on a mac and pc and got some sort of path error right from the start. I've tried disk utility on a mac but I am confused on what entries I need to make. Same goes with disk manager on a PC. I've also tried Ubuntu with no luck (got an error). You name it, I've tried it and now I'm exhausted. All I am trying to do it partition a 4GB card to get a linux-swap of 128MB for one of the hero ROMs I want to try...If someone could show me the entries I'd need to make for size for the 3 partitions, that would be great. Any guidance would be greatly appreciated.
Click to expand...
Click to collapse
staunty said:
Thanks for the help guys. I'll keep trying but I haven't been able to get the ADB working via the SDK. I know I am doing something wrong with the path because its not even letting me get past the initial command. By the way, I have the Amon Ra recovery and I believe it auto-partitioned 32MB. I need 98, possibly 128.
On the bright side, I just received a replacement phone because my first mytouch was defective and giving me horrible reception (BEFORE I ever tried messing around with it). So, now I have two phones, one of which I can mess around with.
Click to expand...
Click to collapse
Staunty: I was in your position yesterday. I'm thinking about making a write up for noobs solely about partitioning, simply because until you do it, the language and way to do it was extremely hard to find. Here is how I did it:
I could not get ADB to work at all, not sure why but I get an error every time I try to mount or find my device in console, I've heard of ADB problems on windows 7 and even tried a fix to no avail. Realizing ADB was out of the question, I needed to format the SD card outside the phone. I did not have a card reader, so I drove to best buy and for 19.99 purchased a card reader for my pc. It is by rocketfish and comes in a red box in case you go my route. Thankfully it reads micro SD cards WITHOUT a converter to normal SD. If you have all the materials, time to format the card.
Because Android needs a linux-swap and EXT2 or EXT3 partition for what we're doing, windows can't format the card correctly without using ADB. The workaround is to use linux. You don't have to install linux, you can just burn it onto a CD and boot up with it for a 1 time use to format your SD card. If you don't have a CD burner like myself, you can use a USB drive. I went to www.linuxmint.com and downloaded linux mint for free. Mint is like ubuntu but extremely user friendly. It comes with Gparted, the partition editor. In mint, there is a search bar right in the program menu. Search for partition or Gparted and it will show up. Put your card into the card reader. Select your SD card from the drop down window in Gparted. Look for the "device" with 3.69gb of available space, thats your 4GB SD card. Right click each partition and select "unmount". Once your entire SD card is "unallocated" you're ready to divide up your memory card into partitions.
You stated that you have a 4 gig card. I'm assuming it's the stock class2 mytouch card. Thats the card I'm using as well, so I'll give you my numbers. Just an FYI, I decided to use a very large EXT3 and very large swap as I've heard not having enough swap can lead to lag so I decided to be overly generous, you can change these numbers to whatever you want. I also left some space unpartitioned just to be on the safe side since this was my first time partitioning the card.
Right click on Unallocated and select new at the top. We're going to do your FAT32 first. In the middle box on the left that says "Size" type 2900, I believe it asks you for the # in mb. If it asks for GB just type 2.9. On the lower right hand side, select FAT32 and then less ok. The second partition we'll make is an EXT3 partition. Most other methods can't directly create an EXT3 partition, however Gparted does let us do this. Lets take advantage while we can. Right click again on unallocated and fill in 575 for size. This time select EXT3 from the drop down menu. Hit create. Last and certainly not least, our Linux-Swap partition. Create a new partition again, fill in 225 for the size and select Linux-Swap for the partition. After you've created all 3, click the green check mark above the white partitioning area. You will get a message that all data on the card will be lost. Click yes. Wait for the computer to create the new partitions on the card and then viola, you've partitioned your SD card without ADB. I apologize if any of this seemed long winded or condescending, however I simply wanted to write out every possible step because I know at one point I really wanted to see something as step by step as this.
Mr. Nefarious said:
Staunty: I was in your position yesterday. I'm thinking about making a write up for noobs solely about partitioning, simply because until you do it, the language and way to do it was extremely hard to find. Here is how I did it:
I could not get ADB to work at all, not sure why but I get an error every time I try to mount or find my device in console, I've heard of ADB problems on windows 7 and even tried a fix to no avail. Realizing ADB was out of the question, I needed to format the SD card outside the phone. I did not have a card reader, so I drove to best buy and for 19.99 purchased a card reader for my pc. It is by rocketfish and comes in a red box in case you go my route. Thankfully it reads micro SD cards WITHOUT a converter to normal SD. If you have all the materials, time to format the card.
Because Android needs a linux-swap and EXT2 or EXT3 partition for what we're doing, windows can't format the card correctly without using ADB. The workaround is to use linux. You don't have to install linux, you can just burn it onto a CD and boot up with it for a 1 time use to format your SD card. If you don't have a CD burner like myself, you can use a USB drive. I went to www.linuxmint.com and downloaded linux mint for free. Mint is like ubuntu but extremely user friendly. It comes with Gparted, the partition editor. In mint, there is a search bar right in the program menu. Search for partition or Gparted and it will show up. Put your card into the card reader. Select your SD card from the drop down window in Gparted. Look for the "device" with 3.69gb of available space, thats your 4GB SD card. Right click each partition and select "unmount". Once your entire SD card is "unallocated" you're ready to divide up your memory card into partitions.
You stated that you have a 4 gig card. I'm assuming it's the stock class2 mytouch card. Thats the card I'm using as well, so I'll give you my numbers. Just an FYI, I decided to use a very large EXT3 and very large swap as I've heard not having enough swap can lead to lag so I decided to be overly generous, you can change these numbers to whatever you want. I also left some space unpartitioned just to be on the safe side since this was my first time partitioning the card.
Right click on Unallocated and select new at the top. We're going to do your FAT32 first. In the middle box on the left that says "Size" type 2900, I believe it asks you for the # in mb. If it asks for GB just type 2.9. On the lower right hand side, select FAT32 and then less ok. The second partition we'll make is an EXT3 partition. Most other methods can't directly create an EXT3 partition, however Gparted does let us do this. Lets take advantage while we can. Right click again on unallocated and fill in 575 for size. This time select EXT3 from the drop down menu. Hit create. Last and certainly not least, our Linux-Swap partition. Create a new partition again, fill in 225 for the size and select Linux-Swap for the partition. After you've created all 3, click the green check mark above the white partitioning area. You will get a message that all data on the card will be lost. Click yes. Wait for the computer to create the new partitions on the card and then viola, you've partitioned your SD card without ADB. I apologize if any of this seemed long winded or condescending, however I simply wanted to write out every possible step because I know at one point I really wanted to see something as step by step as this.
Click to expand...
Click to collapse
Dude, thanks for the detailed info. However, I finally figured out what was happening with the SDK...Maybe you're having a similar issue. First of all, I went with the 2.0 initially but was having some sort of error that I found others to be having. I scrapped the 2.0 and went with the 1.6 SDK. Dropped it on C:\ and renamed it (rename it whatever you want). That solved issue 1 and my command prompt found the right path. Issue 2 was needing to delete any and all HTC drivers in my system. After I did that, I plugged the phone back in an reinstalled the drivers that popped up with plug and play. Problems solved. Only problem I now have is remembering which ROM for which I was doing all this. Seriously, I've looked at and read about so many that they all sound the same. We should collaborate on this noob tutorial, I knew nothing whatsoever about 2 days ago and have spent countless hours figuring out stuff that is relatively simple in hindsight.
or try amon ra's preview of his new recovery, it has dynamic partitioning http://bit.ly/aXCh8
I am in the same boat. I have used Gpartition Live CD, Amon RA's Recovery 1.2.3. After partitioning the SD (4GB Class 4), when I put it in Windows XP via a SD adapter, it says the SD is not formated. The same happens when I use my phone. They phone sees the SD memory as "Blank Media".
Anyone have any ideas what I am getting wrong?
themetatron said:
or try amon ra's preview of his new recovery, it has dynamic partitioning http://bit.ly/aXCh8
Click to expand...
Click to collapse
That's what I use and it works best for me.

[Q] How to correctly partition 64GB SD card for use in Link2SD?

Alright, I'm having issues with Link2SD. Many others are as well, from the results that came up in a google search. Seems each "solution" is different for multiple people, and I'm getting a lot of contradictions.
I own a Huawei Ascend Mate 2 (Mt3L03 variant) on 4.3, rooted and running stock, kernel version 3.4.0-g1fcc1aa, bootloader unlocked via a code from Huawei themselves. I've tried AParted and Minitool Partition Wizard. Some people say "Use the Windows partitioning software!" and some people say "The chances of errors with Windows is higher, partition it on your Android!"
I've been at this for several hours, over and over, reading countless threads, trying various methods and settings. I tried creating the ext2 partition first a few times, just for funsies, but no luck there. So I've been mainly doing what I assume is correct, partitioning FAT32 first, then ext2. Or ext3. Or ext4. I've been through it all. I've partitioned ext2 (and others) as quite large, up to 48000mbs. I've partitioned it quite small, down to 800mbs. I've added swap. I've done it without swap. I've left empty space. I've filled the whole card. I've partitioned only FAT32 (or ext2, or others) and left the rest blank. I've created 2 FAT32/FAT16 partitions. I've used Link2SD as a user app. I've used Link2SD as a system app. I've rebooted again and again and again and again and AGAIN. I've selected the file system of my sd card's second partition as ext2, ext3, ext4, FAT32/FAT16, and f2fs (tested ALL on EVERY attempt, just to be certain). But after everything is said and done, no matter how certain I am that I finally got it right..... every stinking time it comes back with "Mount script error // Mount script cannot be created. mount: Invalid argument". Good lord I am ready to tear my hair out with this thing! What on earth am I doing wrong? Does it have anything to do with /dev/block/mmcblk1p2 ? I've also tried GL to SD, DS App2SD, and App2SD, but ultimately I'm not satisfied with any of those. I just tried this: http://techtriosonline.com/2014/11/p...-minitool.html Followed it EXACTLY. Still the same issue.
Also tried with AParted. Annnnd still the same issue. I should also note that in the configuration, I've attempted to changed /dev/block/mmcblk1 to dev/block/mmcblk1p2, and I get the warning "Detected internal device memory! To complish the new DDR of google, AParted can't work with internal partitions or gpt table types. One version with no limits will be maintained in the Aparted web site".
SonyXperiaz1s said:
Alright, I'm having issues with Link2SD. Many others are as well, from the results that came up in a google search. Seems each "solution" is different for multiple people, and I'm getting a lot of contradictions.
I own a Huawei Ascend Mate 2 (Mt3L03 variant) on 4.3, rooted and running stock, kernel version 3.4.0-g1fcc1aa, bootloader unlocked via a code from Huawei themselves. I've tried AParted and Minitool Partition Wizard. Some people say "Use the Windows partitioning software!" and some people say "The chances of errors with Windows is higher, partition it on your Android!"
I've been at this for several hours, over and over, reading countless threads, trying various methods and settings. I tried creating the ext2 partition first a few times, just for funsies, but no luck there. So I've been mainly doing what I assume is correct, partitioning FAT32 first, then ext2. Or ext3. Or ext4. I've been through it all. I've partitioned ext2 (and others) as quite large, up to 48000mbs. I've partitioned it quite small, down to 800mbs. I've added swap. I've done it without swap. I've left empty space. I've filled the whole card. I've partitioned only FAT32 (or ext2, or others) and left the rest blank. I've created 2 FAT32/FAT16 partitions. I've used Link2SD as a user app. I've used Link2SD as a system app. I've rebooted again and again and again and again and AGAIN. I've selected the file system of my sd card's second partition as ext2, ext3, ext4, FAT32/FAT16, and f2fs (tested ALL on EVERY attempt, just to be certain). But after everything is said and done, no matter how certain I am that I finally got it right..... every stinking time it comes back with "Mount script error // Mount script cannot be created. mount: Invalid argument". Good lord I am ready to tear my hair out with this thing! What on earth am I doing wrong? Does it have anything to do with /dev/block/mmcblk1p2 ? I've also tried GL to SD, DS App2SD, and App2SD, but ultimately I'm not satisfied with any of those. I just tried this: http://techtriosonline.com/2014/11/p...-minitool.html Followed it EXACTLY. Still the same issue.
Also tried with AParted. Annnnd still the same issue. I should also note that in the configuration, I've attempted to changed /dev/block/mmcblk1 to dev/block/mmcblk1p2, and I get the warning "Detected internal device memory! To complish the new DDR of google, AParted can't work with internal partitions or gpt table types. One version with no limits will be maintained in the Aparted web site".
Click to expand...
Click to collapse
Its pretty simple (at least I hope so):
Partition wizard is fine for preparing your sdcard. Put the sdcard into your cardreader (not the phone!) and delete all existing partitions from the card. Then create one "primary partition" formatted as "fat32". Once done resize the partition meant that you decrease it by the amount of space you need for your EXT4 partition. in the way that the unallocated space (e.g. 1024MB) is behind the Fat32 partition. Then create a "EXT4" partition in the empty space. This partition must also be a PRIMARY partition. or Link2SD will NOT work.
Put the sdcard into your phone and install Link2SD
LS.xD said:
Its pretty simple (at least I hope so):
Partition wizard is fine for preparing your sdcard. Put the sdcard into your cardreader (not the phone!) and delete all existing partitions from the card. Then create one "primary partition" formatted as "fat32". Once done resize the partition meant that you decrease it by the amount of space you need for your EXT4 partition. in the way that the unallocated space (e.g. 1024MB) is behind the Fat32 partition. Then create a "EXT4" partition in the empty space. This partition must also be a PRIMARY partition. or Link2SD will NOT work.
Put the sdcard into your phone and install Link2SD
Click to expand...
Click to collapse
Ah man, I can't tell you how happy I am that someone (you!) actually answered me about this, I've been going everywhere on XDA today. And no worries, I've been using a cardreader, leaving it in the phone just sounds like asking for trouble. And yup, tried that already. Just to repeat back: I made the card partitioned to FAT32 first. Then, after that, I resized it to free up 1024MB. For the first attempt with this method, I tried EXT2 because I wasn't certain if my kernel supported EXT4. And I made sure that the EXT2 partition was behind the FAT32 one. They were both made primary. I made sure my phone was off, and after Minitool did its magic and finished up I put the card into the phone, and rebooted. I launched Link2SD (after clearing its data first, so it would act as a fresh install), and got the onscreen prompt, and selected EXT2. And boom, once again was the annoying mount script error. I tried again, wiping the card and doing everything over identically, except trying it with EXT4 (because why not, eh?) and selecting EXT4 when Link2SD prompted. Same error. I would give it a go (with a smaller card) in my Sony Xperia Z1s, but I thought I read somewhere that Link2SD and Sony doesn't play nicely with each other..? Mainly, I would only want to try that to rule out that it's not user error, but rather an issue with the device. For that matter, I've also got an old Samsung Galaxy Proclaim on 2.3.6 that is also rooted. Perhaps if I'm feeling adventurous, I'll see if I can get it working there. Unrelated side note: How strange that my old Proclaim can read 64gig cards, but my Xperia freaks out with anything above 32! :laugh:
Alright, heres an update for this thread.
The mount script is successful for my Samsung Galaxy Proclaim, but is not on my Huawei Ascend Mate 2, even when the process is done identically.
Wondering why Link2SD seems to hate my HAM2 so much.
Bump
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
I dont understand what you did here. May you explain please.
regli said:
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
Click to expand...
Click to collapse
I didnt really get what the steps where to partition my sd card. Like you i have a cheap/no brand 64 Gb Micro Sd card and im unsuccessfull with partitioning it. May you please help me. And in advance Thank You :good:
First let me state that my initial SD card was a Chinese 64GB "fake". Check if yours is also one with RMPrepUSB. Fakes report themselves as having 32GB or 64GB capacity whereas, in reality, they only have a fraction of the reported capacity.
I then purchased Silicon Power SD cards with 32GB and 64GB capacity. I then followed the procedure mentioned above and everything works just fine.
You are brilliant!
I have been having the exact same problem and have spent hours pulling my hair out trying to overcome this issue. Your fix was brilliant as so far it seems to have solved the problem!
One note, I was trying many different methods of partitioning and formatting. This method WILL NOT work with the Aparted app. Mini Tool was the way to go.
Thank You!!!
OK - Here's the thing...
OK, I did this and even posted how it finally worked and got rid of the "mount script error." However, it now seems that because the fat32 partition is now third in line, it looks like Link2SD is now trying to save all the data on the ext4 partition and not the fat32 partition.
When I do the "Link to SD" operation, it seems like it's putting everything on the second partition which is the ext4, but I don't see a change in the space used on the fat32. Am I missing something...?
Maybe the device can't support ext2...
Hi, I got similar problem with you. I've also tried to do partition in reverse order, swap first, then ext2, then fat32. It didn't work. However, when I select repair for the ext2 in Aparted, it said
The super block cannot be read or does not describe the correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the super block is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b8193 <device>
Click to expand...
Click to collapse
So now I'm looking for ext2.ko for Xiaomi Redmi Note but haven't found it anywhere.
regli said:
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
Click to expand...
Click to collapse
Will your method works on a 128gb sd card?
I was doing this in fact today, after reading this blog. I was having a helluva time because my Sophone i6 Plus has no regular Settings app, it's laid out like an iPhone Prefs app. The settings I needed are usually under "Storage" in a regular settings app. I was able to repartition my 32gb card on-device with aParted, but I could NOT get Links2SD to detect it, even after setting up the 2nd ext4 partition.
Mainly, after setting up the partitions in aParted, you have to switch your main write disk to internal before rebooting, else Link2SD will spit out whatever you have done. After the device reboots, the main write disk will be set to your first SD partition. After that you should be able to start Links2SD and it will prompt to set up your ext4. Then, Apps2SD will stop give you the message that it can't find the 2nd partition. Scroll down to the bottom of the blog and then the bottom where the comments start or use this link, my response should be visible. It's just a question of doing things in a specific order.
One thing that is mentioned in the tutorial is that for large cards, you should not use Fat32 for the main partition, but ext2 instead.
I've been trading a few emails with Vicki the creator of apps2SD. The best way to set this up is to link the user apps to the SD card but keep the data, the internal data on the internal partition. She said you can put the external data on the SD card but I kept both on internal and everything runs great now.
regli said:
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
Click to expand...
Click to collapse
Hi this is really the solution for creating the 2nd partition for app2sd or link2sd and also the solution for partitioning sdcards larger than 16gb i tried my 16gb with normal partition method and i was mounted at first time but my 32gb and 64gb they just wouldnt mount so this is the solution for it i tested it and it works tested on ICS 4.0.4 and marshmallow 6.0.1
thank you very much for this solution i had been hammering my head for the last 2 months
regli said:
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
Click to expand...
Click to collapse
You so totally saved my day!!! There is nothing in the FAQ of Link2SD about this ... OMG
I already tried for weeks ...
THX a lot
regli said:
I've struggled with my cheap/no brand 64GB SD card now for days but I finally succeeded. Hopefully this works over the long haul. We will see.
I have an L34C with very limited internal memory which is why link2sd became essential. So I purchased a 64GB micro SD card through eBay for less than $8..00.
At first I tried to follow the various guides to partition the card using either Minitools/Easeus and even AParted on the phone. Every time the second partition (ext2/4) was added at the end, the partition table got corrupted and then showed file system "other" instead of ext2.
Finally I decided to try the GParted Live CD under Windows 8.1 using VirtualBox (32bit Linux) using the ISO as the boot device. Obviously booting the live CD directly via CDRom/USB works as well but I didn't want to always reboot.
Note that I used SDFormatter to initially low level format and verify that the card was good.
After many trials and errors I got it to work. The key seems to be that all partitions need to start in the first 32GB. This leads to the conclusion that the large fat32 partition needs to be last, before any desired SD card overprovisioning.
As link2sd insists that the ext2/ext4 partition is the second partition, I created a small 32MB Linux swap partition first. I then added a 6GB ext2 Apps partition directly followed by a 48GB fat32 Data partition.. The remainder is unallocated for overprovisioning.
I finally marked the fat32 partition "active" by setting the boot flag.
Before inserting the card, I cleared the link2sd cache and data and then turned the phone off.
Note that in my case link2sd, after the initial reboot, preferred the ext4 check mark for the ext2 partition.
I hope this helps somebody.
Click to expand...
Click to collapse
it works for me as ive been getting the the partition ext2 showed file system "other" instead of ext2 as well, try many ways didnt work and finally got my sd card working now!!! thank you so much!!! :good: but instead of link2sd i used apps2sd as link2sd i still get the mount eror
Great!! This worked perfectly for Link2SD. But now the FAT32 3rd partition isn't showing up in any of the file explorer, backup, etc. apps. What did I miss or still need to do? Thx.
Still lost
Okay I might be a complete dummy but I'm still not understanding or maybe I know it's just not working for me if you could tell me I'll maybe put a picture of the partitioning using minitool from left to right size of the first primary partition size of the second primary partition size of swap file size of any damn thing for that matter it seems you guys tried to explain or try to help but you explain it in a matter that only makes sense to somebody who does nothing but this I'm a old slow and it's stupid truck driver but I would really like to get my SD card working so I can have more storage I do like to play on these things please help
zombunny said:
Alright, I'm having issues with Link2SD. Many others are as well, from the results that came up in a google search. Seems each "solution" is different for multiple people, and I'm getting a lot of contradictions.
I own a Huawei Ascend Mate 2 (Mt3L03 variant) on 4.3, rooted and running stock, kernel version 3.4.0-g1fcc1aa, bootloader unlocked via a code from Huawei themselves. I've tried AParted and Minitool Partition Wizard. Some people say "Use the Windows partitioning software!" and some people say "The chances of errors with Windows is higher, partition it on your Android!"
I've been at this for several hours, over and over, reading countless threads, trying various methods and settings. I tried creating the ext2 partition first a few times, just for funsies, but no luck there. So I've been mainly doing what I assume is correct, partitioning FAT32 first, then ext2. Or ext3. Or ext4. I've been through it all. I've partitioned ext2 (and others) as quite large, up to 48000mbs. I've partitioned it quite small, down to 800mbs. I've added swap. I've done it without swap. I've left empty space. I've filled the whole card. I've partitioned only FAT32 (or ext2, or others) and left the rest blank. I've created 2 FAT32/FAT16 partitions. I've used Link2SD as a user app. I've used Link2SD as a system app. I've rebooted again and again and again and again and AGAIN. I've selected the file system of my sd card's second partition as ext2, ext3, ext4, FAT32/FAT16, and f2fs (tested ALL on EVERY attempt, just to be certain). But after everything is said and done, no matter how certain I am that I finally got it right..... every stinking time it comes back with "Mount script error // Mount script cannot be created. mount: Invalid argument". Good lord I am ready to tear my hair out with this thing! What on earth am I doing wrong? Does it have anything to do with /dev/block/mmcblk1p2 ? I've also tried GL to SD, DS App2SD, and App2SD, but ultimately I'm not satisfied with any of those. I just tried this: http://techtriosonline.com/2014/11/p...-minitool.html Followed it EXACTLY. Still the same issue.
Also tried with AParted. Annnnd still the same issue. I should also note that in the configuration, I've attempted to changed /dev/block/mmcblk1 to dev/block/mmcblk1p2, and I get the warning "Detected internal device memory! To complish the new DDR of google, AParted can't work with internal partitions or gpt table types. One version with no limits will be maintained in the Aparted web site".
Click to expand...
Click to collapse
Hi sorry sorry would you mind doing a tutorial on YouTube please this would be most helpful. Thank you in advance.

Can't crate more than one partition in SD

Hello guys. I've been struggling with this for 3 days now.
The thing is that I need to have an SD with 2 partitions for internal storage on android. The wierd thing is, no matter what procedure I take, the second partition cannot be formated. I can create the partition, but I when I format it it ends up with the file system "Other".
I've tried with A LOT of procedures, a lot of programs, I read a lot of guides, and nothing works.
This is all the info I can provide:
First partition works well in every case, I can read and write in it.
If second partition is Primary, file system is ALWAYS "Other" and NO free space left (all space marked as used), but if partition is logical, it does not even create it (updates as unallocated after commitment, as if nothing ever happened).
That "Other" partition is not recognized by nothing, and there is no way I can explore it.
I've tried in Windows 7 64 bits, Linux GParted Environment, Android 6.0 Marshmallow and Android 4.4 Kitkat.
I've tried in 3 devices: A PC, a Notebook and Moto E android with stock rom and CM 13.
I have 2 MicroSD, Kingston 16 GB Class 4 and Kingston 16 GB Class 10. All the procedures where repeated in both SD cards, so I discard the SD being broken.
I've used MiniTool Partition Wizzard, Acronis Disk Director Suite, EaseUS Partition Master and Paragon Hard Disk Manager on windows and AParted, Apps2SD: All in one tool and Parted4Android in Android (As well as GParted).
Tried both MBR and GTP. Same issue.
Tried FAT16, FAT32, NTFS, ext2, ext3 and ext4 in both first and second partition in MBR and GTP, primary and logical (ALL combinations, yes, a LOOOOT of formatting :3)
If third, fourth (and so on) partitions are created, the same as second partition happens.
I can succesfully create a second partition in a USB PenDrive.
Tried for example this: Created 2 partitions as FAT32, as always second partition marked as "Other", entered the first partition from windows, created a file. After that I switched the partitions with wasp. Once the other partition was active, when I tried to enter windows said "Drive X has no format, want to format?" Yes "Could not format X".
So, WHAT in the world am I supposed to do? D:
Thanks in advance guys :3 And sorry for my bad english.
UNATCOPres said:
Hello guys. I've been struggling with this for 3 days now.
The thing is that I need to have an SD with 2 partitions for internal storage on android. The wierd thing is, no matter what procedure I take, the second partition cannot be formated. I can create the partition, but I when I format it it ends up with the file system "Other".
I've tried with A LOT of procedures, a lot of programs, I read a lot of guides, and nothing works.
This is all the info I can provide:
First partition works well in every case, I can read and write in it.
If second partition is Primary, file system is ALWAYS "Other" and NO free space left (all space marked as used), but if partition is logical, it does not even create it (updates as unallocated after commitment, as if nothing ever happened).
That "Other" partition is not recognized by nothing, and there is no way I can explore it.
I've tried in Windows 7 64 bits, Linux GParted Environment, Android 6.0 Marshmallow and Android 4.4 Kitkat.
I've tried in 3 devices: A PC, a Notebook and Moto E android with stock rom and CM 13.
I have 2 MicroSD, Kingston 16 GB Class 4 and Kingston 16 GB Class 10. All the procedures where repeated in both SD cards, so I discard the SD being broken.
I've used MiniTool Partition Wizzard, Acronis Disk Director Suite, EaseUS Partition Master and Paragon Hard Disk Manager on windows and AParted, Apps2SD: All in one tool and Parted4Android in Android (As well as GParted).
Tried both MBR and GTP. Same issue.
Tried FAT16, FAT32, NTFS, ext2, ext3 and ext4 in both first and second partition in MBR and GTP, primary and logical (ALL combinations, yes, a LOOOOT of formatting :3)
If third, fourth (and so on) partitions are created, the same as second partition happens.
I can succesfully create a second partition in a USB PenDrive.
Tried for example this: Created 2 partitions as FAT32, as always second partition marked as "Other", entered the first partition from windows, created a file. After that I switched the partitions with wasp. Once the other partition was active, when I tried to enter windows said "Drive X has no format, want to format?" Yes "Could not format X".
So, WHAT in the world am I supposed to do? D:
Thanks in advance guys :3 And sorry for my bad english.
Click to expand...
Click to collapse
HI.BRO
GO.TO. CM13 THEN Reboot TO ClockworkMOD Recovery THEN CHOOSE Advanced THEN.Choose PARTITION SD CARD
Choose Partition SIZE
THEN Choose SWAP SIZE(SELECT 0 IF.U WANT TO.LEAVE SWAP)
GIVE A THANKS.IF I.HELPED U

Partition 64GB microsd card to 2 x 32GB FAT32

Hi guys,
I want to partition my 64GB (I know, 59GB actually) microsd card into 2 x 32GB FAT32 partitions. I've tried to do it in windows, using MiniTool Partiton Wizard like I did with other microsd cards until now, but without success: the tool creates two partitions but the 2nd one is not usable (it does not have assigned a letter); any attempts to correct this were futile.
Can this issue be fixed somehow? If yes, how?
Old Jimbo said:
Hi guys,
I want to partition my 64GB (I know, 59GB actually) microsd card into 2 x 32GB FAT32 partitions. I've tried to do it in windows, using MiniTool Partiton Wizard like I did with other microsd cards until now, but without success: the tool creates two partitions but the 2nd one is not usable (it does not have assigned a letter); any attemptions to correct this were futile.
Can this issue be fixed somehow? If yes, how?
Click to expand...
Click to collapse
Start over, get it back to one unallocated partition, then use the Aparted app from play store.
Or you can try this
smallbusiness.chron.com/partition-sd-card-android-57286.html
Thanks for your reply @Droidriven!
I've managed to create those partitions: sdcard1 and sdext2, both FAT32 and having 29.5GB each. First partition (sdcard1) is working flawless: access speed, read, write. The 2nd one...
The 2nd one (sdext2) has an issue - I cannot create files (.txt), in root or in other subfolders. However, I can access it, move data to it from the other partition or from the internal sdcard and I can create folders and subfolders. In android's settings->storage menu, my external sdcard is shown as it has only 29.5GB (out of 59GB) but nothing about partitions.
Is this a permission issue (platform.xml)? Can it be fixed?
Old Jimbo said:
Thanks for your reply @Droidriven!
I've managed to create those partitions: sdcard1 and sdext2, both FAT32 and having 29.5GB each. First partition (sdcard1) is working flawless: access speed, read, write. The 2nd one...
The 2nd one (sdext2) has an issue - I cannot create files (.txt), in root or in other subfolders. However, I can access it, move data to it from the other partition or from the internal sdcard and I can create folders and subfolders. In android's settings->storage menu, my external sdcard is shown as it has only 29.5GB (out of 59GB) but nothing about partitions.
Is this a permission issue (platform.xml)? Can it be fixed?
Click to expand...
Click to collapse
I don't know what your issue is, maybe because one partition is the primary partition. Did you choose all the same options when you set the second partition?
What android version are you using? Lollipop and Marshmallow do have permission configurations that are a pain, especially concerning extsd permissions.
I'll see what I can find, can't promise I'll find you an answer though.
The partitions' settings are identical, with the sole exception that one has to be the primary one. The microsd is new and tested with a few software programs to be sure it's not a fake (it's not).
I'm using AOSP 5.1.1 and yes, I believe there is a L permission issue.
Don't worry a bit regarding this issue. If you or someone else will find the solution, it'll be great, if not, life goes on.
Thanks anyway for taking your time!
Droidriven said:
Start over, get it back to one unallocated partition, then use the Aparted app from play store.
Or you can try this
Click to expand...
Click to collapse
How exactly do I get is back to one unallocated partition? That will solve all my problems right now

Categories

Resources