Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,834 Members 50,622 Now Online
XDA Developers Android and Mobile Development Forum

[TUT]How to Create Partition in SDcard/MicroSD for Windows user

Tip us?
 
stpdkid
Old
(Last edited by stpdkid; 18th March 2013 at 07:23 AM.)
#1  
stpdkid's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 522
Join Date: Dec 2011
Default [TUT]How to Create Partition in SDcard/MicroSD for Windows user

hello guys,
i wanna share to you guys how to make a partition in external sdcard/MicroSD for Windows user. Dunno if this already post in XDA, didn't do a research
just to remind, do this with your own risk!

now, what we need :
1. PC/Laptop
2. microsd/sdcard with capacity 2gb/4gb/8gb/16gb/32gb
3. microsd adapter or card reader.
4. Minitool Partition Wizard
there's another tool called gparted but this tut only use Minitool Partition
5. a ciggy and a cup of coffee

before we go through, don't do this while you're drunk, so sleepy or in hurry..

now, i assume that the minitool partition already installed on your pc/laptop and the sdcard is empty.
let's begin....
1. put your sdcard into adapter or card reader
2. open the minitool partition wizard software.(pic 1)
3. right click in sdcard (pic 2--i use 8Gb) and click delete. after that your sdcard will look like pic 2-1 as "unallocated" (becareful to choose the drive!!)
4. right click and click create (pic 3)
5. in create new partition choose "primary" (dont use logical) and change the "file system" to "Fat32".(pic 4 & pic 4-1)
6. in partition size you change to what you need. if you want to swap 1gb then change the "partition size" make your "unallocated space after" to 1024mb(pic 4-2).
(i dunno exactly the space that fit with but i use 1gb, if you dont know either you can ask to our dev or mr. pep) after that click ok
7. now you can see the 1gb seen as unallocated(pic 4-3)
8. right click and click create again at the unallocated(1gb) will be a warning that "the new created partition cannot b used in windows" click "yes" (pic 5)
9. now change the "logical" to "primary" (if you choose logical then your phone will probably got a black screen or black screen with battery icon+lock icon after you flash a new cusrom) (pic 6)
10. Change the NTFS to ext2/ext3/ext4 (if you want to install link2sd/s2e from market you can choose ext2 and/or ext4, for me i choose ext4 because i use s2e) and click ok. (pic 6-1)
now there are 3 operations pending in the left side (pic 6-2)
11. click "apply" and "yes". (pic 6-3)
12. now take your ciggy and drink your coffee and wait 1-2 minute untill the successfull pop up then click ok(pic 6-4). close minitool program.

- this ext* will not shown on windows, only on linux base OS.(you can see it on Windows by using some software, i.e : linux reader or raise data recovery, etc)
- use sdcard adapter/card reader
- if you wanna move your app just use link2sd or s2e free on market.
- in this tut i use ext4 just for example to you guys if you choose s2e, but it is not a must for you to choose ext4,.for faster read/write sd choose ext2(see post 2 by pep)


this is just a tutorial for those who dont know and dont understand how to make partition/swap and for those who dont want to swap the phone's internal<-->external. do this before go to Pristine Method
swap thing is too risky for class4 microsd,


credits to :
- minitool partition wizard (useful tools)
- mr. pep (this guide related to Pristine Method ) http://forum.xda-developers.com/show....php?t=2044861
- all Wonders
- XDA


if this help just click the Thanks button if there's something i forgot to write or i'm wrong please correct me..
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	4116
Size:	262.1 KB
ID:	1675311   Click image for larger version

Name:	2.jpg
Views:	3097
Size:	265.4 KB
ID:	1675312   Click image for larger version

Name:	2-1.jpg
Views:	2633
Size:	258.7 KB
ID:	1675313   Click image for larger version

Name:	3.jpg
Views:	2428
Size:	258.5 KB
ID:	1675314   Click image for larger version

Name:	4.jpg
Views:	2427
Size:	255.7 KB
ID:	1675317  

Click image for larger version

Name:	4-1.jpg
Views:	2310
Size:	253.5 KB
ID:	1675318   Click image for larger version

Name:	4-2.jpg
Views:	2414
Size:	249.6 KB
ID:	1675319   Click image for larger version

Name:	4-3.jpg
Views:	2203
Size:	270.3 KB
ID:	1675320   Click image for larger version

Name:	5.jpg
Views:	1878
Size:	261.6 KB
ID:	1675322   Click image for larger version

Name:	6.jpg
Views:	1848
Size:	254.8 KB
ID:	1675323  

Click image for larger version

Name:	6-1.jpg
Views:	1834
Size:	265.2 KB
ID:	1675324   Click image for larger version

Name:	6-2.jpg
Views:	1891
Size:	268.8 KB
ID:	1675325   Click image for larger version

Name:	6-3.jpg
Views:	1815
Size:	268.4 KB
ID:	1675335   Click image for larger version

Name:	6-4.jpg
Views:	1753
Size:	269.9 KB
ID:	1675337  
The Following 8 Users Say Thank You to stpdkid For This Useful Post: [ Click to Expand ]
 
pepoluan
Old
(Last edited by pepoluan; 26th January 2013 at 08:42 AM.) Reason: More explanation on block sizes
#2  
pepoluan's Avatar
Senior Member
Thanks Meter 987
Posts: 1,516
Join Date: Jul 2012
Location: Jakarta
Great tutorial!

If I may, I'd like to add some tips:
  • When making the very first partition (from an empty-card condition), make sure:
    • It's Aligned to MB instead of Cylinder
    • There's a 1 MB 'gap' in front of the partition
  • Also, make sure that all partitions' sizes (in sectors) are divisible by 256 (or, in other words, the partition size is a multiple of 128 KiB).
    .
    The reason for this is that some SD cards allocate their storage capacity in 'blocks', and the largest known block size is 128 KiB (128 * 1024 bytes). 256 sectors = 128 KiB. By ensuring that all partitions' sizes are divisible by 256, you are ensuring that no block is split between two partitions, thus keeping performance high (as the SD card no longer need to read a block and perform a seek just to find the beginning of a partition), and help lengthening the life of your SD card.
    .
    (Other SD cards might have smaller block sizes, but all a binary fraction of 128 KiB, i.e., 64 KiB or 32 KiB or 16 KiB or 8 KiB or 4 KiB. Thus, if partitions are multiples of 128 KiB, they are certainly multiples of the smaller block sizes.)

To ensure that partitions are divisible by 256, just before you click on the "Apply" button, do the following for each partition created:
  1. Right-click on the partition
  2. Choose Properties (the bottom option)
  3. Click on "Partition Info" tab
  4. The size of partition (in sectors) is "Last Physical Sector" - "First Physical Sector" + 1

For example, in my case (see the attached image), the "Last Physical Sector" is 29003775, while the "First Physical Sector" is 2048. Thus, the size of the partition is 29003775 - 2048 + 1 = 29001728. Divide 29001728 by 256 and you have the nice integer value of 113288, meaning that the partition is an exact multiple of 128 KiB.

As for the filesystem type for the second partition, I myself prefer ext2 because I reasoned:
  • This is an SD Card; employing journaling (implemented by ext3 / ext4) will result in too much writing -- shortening SD Card life
  • Writes are (nearly) instantaneous anyways; journaling are helpful if writes take some time to finish (e.g., writing to a spinning disk, which needs the track-seek and sector-seek plus track-shift plus ECC generation)
  • The only way a write to SD Card can get interrupted is if power was removed immediately. Aside from dropping your phone and inadvertently ejecting the battery (in which case, SD Card corruption should be the least of your concern), smartphones can't suddenly lose power. When power gets too low, Android performs an orderly shutdown ensuring that all buffers are flushed
  • ext2 code in the kernel is simple, making reads & writes faster, and less intrusive to foreground apps (no need to generate/manipulate a checksummed journal)



--- Posted from Opera on Lenovo T420 ---
Attached Thumbnails
Click image for larger version

Name:	Example_Partition_Size.png
Views:	893
Size:	12.7 KB
ID:	1677473  
Nobody is Perfect __ I am Nobody

Phone: Sony Xperia SP (C5302) running eXistenZ Ultra 3.3.0 (rooted, locked BL)

I'm a Linuxhead and I'm proud of it!
The Following 5 Users Say Thank You to pepoluan For This Useful Post: [ Click to Expand ]
 
stpdkid
Old
#3  
stpdkid's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 522
Join Date: Dec 2011
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

thank you bro for rhe additional tips..i forget bout that.. that'very useful for us.

yes, ext2 is better to choose..
i use ext4 because i install s2e not link2sd..and sometimes ext2 cannot be read by s2e but it's not a must for everbody to use ext4..


Sent from my GT-I8150 using Tapatalk 2
"we'll never know if we never try it"
::almost-done::
The Following User Says Thank You to stpdkid For This Useful Post: [ Click to Expand ]
 
killeeeeer
Old
#4  
killeeeeer's Avatar
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Oct 2012
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

What are the advantages to making portion

Sent from my GT-I8150 using xda app-developers app
 
stpdkid
Old
#5  
stpdkid's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 522
Join Date: Dec 2011
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

Quote:
Originally Posted by killeeeeer View Post
What are the advantages to making portion

Sent from my GT-I8150 using xda app-developers app
- no need to swap..do this and install app link2sd or s2e free on market..
- make your microsd card read/write better..
- can hide anything in the partition

Sent from my GT-I8150 using xda premium
"we'll never know if we never try it"
::almost-done::
 
killeeeeer
Old
#6  
killeeeeer's Avatar
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Oct 2012
Quote:
Originally Posted by stpdkid View Post
- no need to swap..do this and install app link2sd or s2e free on market..
- make your microsd card read/write better..
- can hide anything in the partition

Sent from my GT-I8150 using xda premium
Nice well try it next time i update my android build, thanks for the info
 
eza azami
Old
#7  
eza azami's Avatar
Senior Member
Thanks Meter 89
Posts: 296
Join Date: Jan 2012
Location: North Lombok
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

I have partition my external_sd with format "ext4".,
it's work but when I reboot my SGW i got hardbrick

sent from nokia 3310
 
stpdkid
Old
#8  
stpdkid's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 522
Join Date: Dec 2011
Quote:
Originally Posted by eza azami View Post
I have partition my external_sd with format "ext4".,
it's work but when I reboot my SGW i got hardbrick

sent from nokia 3310
did you swap your internal sd-external sd after partition to ext4 and using the app(i.e link2sd or s2e)?
what apps that you use to swap?link2sd or s2e?what app tools (beside those two app) that you use?

it wont get hardbrick if you follow the tut carefully,,
i do this with my 4 microsdcards, 2microsd with size 8gb, 1microsd with size 4gb and 1microsd with size 16gb and all of it just class4.
i use this method since 2011.
this tut will not hardbrick your phone.
 
eza azami
Old
#9  
eza azami's Avatar
Senior Member
Thanks Meter 89
Posts: 296
Join Date: Jan 2012
Location: North Lombok
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

Quote:
Originally Posted by stpdkid View Post
did you swap your internal sd-external sd after partition to ext4 and using the app(i.e link2sd or s2e)?
what apps that you use to swap?link2sd or s2e?what app tools (beside those two app) that you use?

it wont get hardbrick if you follow the tut carefully,,
i do this with my 4 microsdcards, 2microsd with size 8gb, 1microsd with size 4gb and 1microsd with size 16gb and all of it just class4.
i use this method since 2011.
this tut will not hardbrick your phone.
I using s2e, but maybe I forget some step.

last month I try it again and succesful..

sent from nokia 3310
 
sandroidnz01
Old
#10  
sandroidnz01's Avatar
Senior Member
Thanks Meter 41
Posts: 236
Join Date: Oct 2012
Location: Penang
Default Re: [TUT]How to Create Partition in SDcard/MicroSD for Windows user

Hi stpdkid.

Okay,I've got a 32gb class 10 SD card.
I tried doing the partition last night.
It the SD card which I had been using on my Xperia Arc for nearly a year so you can imagine the amount of garbage on it.
Copied everything to my PC and went ahead with the partition.
First partition Primary/ Fat32/9gb
Second partition also named as Primary/Ext2/21gb.
Done.
Copied my files back onto the sdcard and inserted it back into my device which only recognized the 9gb.
Used link2sd and it reads only the first partition of the sdcard.
I think I did everything correctly.But why is it that I'm missing the 21gb?
Should I have named it as NTFS/Ext2/21gb?



Sent from my Xperia Arc using xda app-developers app

Xperia Arc LT15i/18i

ROM:ANZuMi
Kernel:Arc Lupus ICSver.16
BL Unlocked/Rooted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes