[Tut] Upgrade/Change SD Card with Ext2/3 [14/01 - Added Extra Freeware tuts] - Desire Android Development

This tutorial will show you how to Upgrade / Change to a new SD card having an EXT2/3 partition. This tutorial is for Windows platform only and assumes that you are comfortable with doing some basic functions with your phone.
Disclaimer:
I take no responsibility for any damage (if it occurs) to your phone by following the the steps mentioned below. Use it at your own risk!!! You have been warned.
Prerequisites:
1. HTC Desire - Rooted
2. Clockworkmod recovery installed on your phone (my version is 3.0.0.5?)
3. Nandroid
4. Download and Install - Freeware: Easeus Partition Manager
5. A windows PC and HTC desire data cable.
Steps:
1. Create a full nandroid back up for your current ROM from Clockworkmod Recovery screen. [No Mybackup or Titanium Backup - Nandroid is Required]
Boot phone into Clockworkmod recovery -> backup/restore -> backup (takes a few minutes) will make a complete backup of you rom, stored in clockwordmod folder of your SD-card (folder named with date and time) [Thanks Papedo]
2. Connect your HTC desire to your PC via your data cable and save the whole "Clockworkmod" folder from your SD card to a folder in your PC. Save any other files which you may want to in that folder.
3. Safely Eject the SD card.
4. Turn off your phone.
5. Remove the Old SD Card and Insert the new one.
6. Boot phone into Clockworkmod recovery.
7. Now select the option - "Partitions Menu"
8. Select option - "mount USB storage"
9. Open Easeus Partition Manager.
10. Create two partitions on the SD *exactly* in this sequence (assuming you have a 16gb card - windows will show 14.98gb free):
a. Fat32 partition - Primary - 14gb
Method: Right click unallocated space on your SD card and select "Create" -
A create partition dialog will pop up - use the following values:
Create As: Primary
File System: Fat32
Partition Size: 13980
Hit: OK
b. Ext2/3 partition - Primary - 1 gb
Method: Right click unallocated space on your SD card and select "Create" -
A "Create Partition" dialog will pop up - use the following values:
Create As: Primary
File System: Ext2 or 3
Partition Size: 1000
Hit: OK
11. Your SD card partitions should look like this (see DISK 3):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
11. Hit Apply button which will appear on the left hand side.
11. Go to Windows Explorer to ensure that you can see and access the newly created FAT32 partition.
12. Once you are satisfied with the FAT32 partition go and copy paste all the files and folders from the backup of your OLD SD Card made on your PC to the new SD Card.
13. Once this process if finished reboot the phone into recovery.
14. Go to Nandroid - Select Restore. Choose the Backup you want to restore.
15. Nandroid will take sometime to check MD5 sum of the recovery image, be patient. If everything is OK, Nandroid will start restoring the image and will start copying files.
16. Once finished it will display "Restore Complete". Press the back button now, select "Reboot System Now".
Go Crazy!
Now you have a full functional new SD card with EXT 2 / 3 partition.
[Credits if you post this elsewhere]
CS
Similar tutorials:
Using other freeware:
MiniTool Partition Wizard - Credits: Kneros
Parted Magic - Credits: Svennetjee

Good work, this will surely help some people.
Sent from my HTC Desire using XDA App

b3ndik said:
Good work, this will surely help some people.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thanks. Have a good day.

Hi celestialspring,
Nice explaining with details.. I have problem before kicking off.
i used unrevoked to root, have rom manager installed , clock work mod 2.5.0.7 i am using the latest leedroid rom.
How do i obtain a Nandroid back up to backup as u have required apart from titnanium and backup pro? I don't know how to get nandroid back up from. please advice. thanks a million.

Boot phone into Clockworkmod recovery -> backup/restore -> backup (takes a few minutes)
will make a complete backup of you rom, stored in clockwordmod folder of your SD-card (folder named with date and time)

I know that this is a Windows-only tutorial, and thanks for sharing.
However, when dealing with Android and its (advanced) aspects is always a good thing to have a Linux OS handy: in this case, having native access to the sdcard's ext partition, one can simply copy/paste its contents making the whole process a matter of seconds. Moreover, the gparted utility that ships with most Linux distributions can play the Easeus Partition Manager's role perfectly.

@ngel said:
I know that this is a Windows-only tutorial, and thanks for sharing.
However, when dealing with Android and its (advanced) aspects is always a good thing to have a Linux OS handy: in this case, having native access to the sdcard's ext partition, one can simply copy/paste its contents making the whole process a matter of seconds. Moreover, the gparted utility that ships with most Linux distributions can play the Easeus Partition Manager's role perfectly.
Click to expand...
Click to collapse
Personally, I wouldn't want to copy and paste the data within an ext partition. nandroid will do a better job of that i feel,
However, Gparted would definitely be my weapon of choice. In my professional experience, windows based partition managers have never been great at handling alien file systems

About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.

EASEUS Partition Manager didn't do the trick for me, but Parted Magic did.
Wrote another tutorial myself: http://www.everythinghtcdesire.com/tutorials/how-to-partition-your-microsd-card-for-app-storage

Svennetjee said:
EASEUS Partition Manager didn't do the trick for me, but Parted Magic did.
Wrote another tutorial myself: http://www.everythinghtcdesire.com/tutorials/how-to-partition-your-microsd-card-for-app-storage
Click to expand...
Click to collapse
Easeus will work but you need to create the partitions exactly as mentioned in the tutorial. If you create the EXT3 partition before the FAT32 partition it won't work. I learnt it by trial and error
Perhaps the biggest advantage of using Easues is that one does not need to burn a CD and then boot from it. I hate booting off my current work envoirnment just to partition an sd card.
This was the quickest and easiest way I found which worked for me. People who are more tech savvy can use Gparted or whatever.

aaa said:
About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.
Click to expand...
Click to collapse
See reply above.

No need to reserve the last portion for linux swap? Just only two partition (FAT32 & EXT3)?

Great .... ! But i have one question...2GB for android .. is it possible ? Or 1gb is really enough ?

yuna75 said:
No need to reserve the last portion for linux swap? Just only two partition (FAT32 & EXT3)?
Click to expand...
Click to collapse
I am not quallified to answer that question. But in my day-to-day workings, I have no troubles after formatting the card as above.
ta. cs

Oggy972 said:
Great .... ! But i have one question...2GB for android .. is it possible ? Or 1gb is really enough ?
Click to expand...
Click to collapse
2gb. I don't see any issues.
1 gb -- Yes, it is possible only if you want to run older versions of many ROMs. If you intend to run DHD ports then I don't recommened it.

aaa said:
About the pratition softwares please also add information about GParted, Partition Wizard, etc.
Those are similar freewares just like the one posted.
Click to expand...
Click to collapse
Information added about two new freeware software. See updated original post. ta.

celestialspring said:
Easeus will work but you need to create the partitions exactly as mentioned in the tutorial. If you create the EXT3 partition before the FAT32 partition it won't work. I learnt it by trial and error
Perhaps the biggest advantage of using Easues is that one does not need to burn a CD and then boot from it. I hate booting off my current work envoirnment just to partition an sd card.
This was the quickest and easiest way I found which worked for me. People who are more tech savvy can use Gparted or whatever.
Click to expand...
Click to collapse
Afternoon all.
My 4GB card is full. I'm running a rooted Desire, S-off with Amon-Ra recovery. My PC is running Linux. I want to swap to a bigger card. I'm fine with partioning the new card with G-Parted, and also cool with copying the data between FAT32 partitions.
I'm not so sure I know what I'm doing with the ext4 partition. Will Amon-Ra Nandroid backup and restore do the whole contents of the ext4 partition? So does the process go a bit like this:
nandroid backup
copy FAT32 partition to PC
partition new card
copy FAT 32 data from PC to new card
take the old card out and put the new one in
boot into recovery
nandroid restore
reboot
Have i got that right, or have I misunderstood something?

That's correct.
Sent from my A7710 using Tapatalk 2

Trogladyte said:
Afternoon all.
My 4GB card is full. I'm running a rooted Desire, S-off with Amon-Ra recovery. My PC is running Linux. I want to swap to a bigger card. I'm fine with partioning the new card with G-Parted, and also cool with copying the data between FAT32 partitions.
I'm not so sure I know what I'm doing with the ext4 partition. Will Amon-Ra Nandroid backup and restore do the whole contents of the ext4 partition? So does the process go a bit like this:
nandroid backup
copy FAT32 partition to PC
partition new card
copy FAT 32 data from PC to new card
take the old card out and put the new one in
boot into recovery
nandroid restore
reboot
Have i got that right, or have I misunderstood something?
Click to expand...
Click to collapse
Just use 4ext recovery, waay better in every way and much more features. U can partition ur new sdard with it to (guide in my sig)
Using 4ext recovery to backup, simply go to
Backup/restore
Backup
Then copy "clockworkmod" folder to pc
Then once uv partitioned ur new sdcard, copy the clockworkmod folder back to new sdcard and in recovery go to
Backup/restore
Restore
Job done

CWM doesn't play with this phone, so I'm using Amon Ra
I just tried the process with Gparted as set out above, and it doesn't seem to have worked. Lots of apps are missing, I don't have the ext4 partition available, and no account details are loaded.
---------- Post added at 03:49 PM ---------- Previous post was at 03:45 PM ----------
And I also can't boot into recovery - it just boots normally
---------- Post added at 04:04 PM ---------- Previous post was at 03:49 PM ----------
Took the battery out, and put the old SD card back in and miracualously I can now get into recovery. Did a Nand resore but the screen is now flashing white every few seconds. What the hell?

Related

How do you create the FAT32 / EXT2 combo partitions??

i need help on this to install apps on my sd card
I've been meaning to ask this for a while as well, but was shy to ask and make a thread about it.
How would you create one on a mac?
im wondering how to create them on WINDOWS XP
I have read all around on this subject and from what I've read its not possible for windows xp users.
you can create it on windows using Paragon Partition Manager 9. Make sure you partition the sd card using a microSD reader, because issues will arise if you try to partition with your memory card still connected to your G1.
85Mario85 said:
im wondering how to create them on WINDOWS XP
Click to expand...
Click to collapse
Use Paragon Patition Manager 9 for XP then you can make all the partitions you want
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
I had problems with this to both the ubuntu live cd and partition maneger works for me. But i had to make sure my init.rc had
mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime
not
mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime
Finaly to mwke the partitions in windows i used HP USB format tool to format the card as fat16 and then detleted the partition in partiton maneger and created my FAT32 and EXT2 partitions (*make shure you hit apply*) in partition maneger
manup456 said:
Is this the program i need? I want to be sure you say use a disk reader i have the one built into my P.C is that o.k?
http://www.partition-manager.com/
Click to expand...
Click to collapse
Yes that is the program you use. It is very easy to use. Good Luck!
cchap07 said:
Yes that is the program you use. It is very easy to use. Good Luck!
Click to expand...
Click to collapse
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
.haNk said:
do you got root? if so, then check the partition table using fdisk:
# fdisk /dev/block/mmcblk0
Command (m for help): p
the "p" option prints the partition table for the device you specified when invoking fdisk (your SD card). you should have two partitions listed - one using a Win95 FAT32 filesystem (hex ID "b"), and a second partition labeled as a Linux partition (hex ID "83). Here's my partition table if you want to try to match it up to your own:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 218751 7000024 b Win95 FAT32
/dev/block/mmcblk0p2 218752 249296 977440 83 Linux
So long as that all looks good, it *should* work. I think i used gparted when i partitioned my SD card. I have a theory that you can do it through fdisk too, directly on the G1, but i didn't really spend too much time trying this.
Click to expand...
Click to collapse
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
AsaSpades said:
I used this program to try to partition my sd card, I made the partitions, applied them, it finished. I put all my stuff back on my sd card, put it back in my G1 I tried to flash the update.zip and it said no update.zip. I was like wtf, so I put the sd card back in my comp and it said this card is not formatted. I had to use a program to recover everything on it, and havent tried again since. What went wrong?
Click to expand...
Click to collapse
I have no idea, but the same thing happened to me and I just repartitioned it and retried it with only the update.zip and it worked. If you dont have your sd card partitioned just copy everything you have on it to your computer, erase the current formatting and try it again. It should work. Good luck!
AsaSpades said:
Thanks, but wtf, it says I have 4 partitions, and it doesnt know the system, on Partition Manager it says 1 last time I checked
Click to expand...
Click to collapse
You can try to follow these instructions that I wrote on another thread.
Back up any data that you can because this will erase it all.
Ok so Open Paragon, click ADVANCED PARTITIONING on bottom right, on your sd card right click on the partition and click Delete partition. Then Delete all other partitions on the SD card.
After you have deleted them all, click on the apply button on the top of Paragon. Then after that is finished, right click on the sd card and click create partition. The first drop down box will say: Create Partition as: and select Primary Partition. Then select the size you want the FAT32 Partition to be and on the Second drop down box select FAT 32. Then click yes.
Then Right click on the sd card again on the part that says (unallocated) and click Create partition. Select the partition as primary, and this time select the Linux Ext2 option of the second drop down box. Then click yes. Finally, Click on the top button to apply changes (Green Check mark) and you are done partitioning. Then just follow these instructions.
BTW the Ext2 partition has to be less than 2GB.
Good Luck!
yeah dude, i would say just give it another try in partition manager. if that don't work, then i guess you can try using a Linux live CD (or USB...) to partition it. just don't accidentally reformat your hard drive. make sure you select the option to manually setup your partition table, and then make sure you're working with the SD card and not your HDD. i've seen too many people wipe their hard drives on accident.
alright ill jus try it again, after its partitoned correctly will the sd card directory be different? Like would there be a folder for Ext2 or no?
nah, you won't see an additional folder. the second partition (EXT2) will be mounted under /system/sd, so you won't see it unless you specifically browse to it. if you want to make sure that it partitioned and mounted correctly, run the 'mount' command as root on your phone. you should see /dev/block/mmcblk0p2 mounted to /system/sd.
hmmm its not letting me create a partition after I deleted what was on it. When I click the sd card in "Create Partition" it says "A new partition cannot be created on this hard disk. Most probably/all primary slots are occupied and there is no extended partiton."
Hi Asa,
Check out this diagram I made when I was transferring my apps and caches to the sdcard.
You should run the busybox command and see if your ext2 partition shows.
In the diagram, it is the one that has a size of 1.6 gb.
So you should see something similar in your phone.
After I transfered all my caches and apps the ext2 partition no longer shows up in partition manager but I know it is working and present by the busybox output shown in the diagram.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let me know if it helps.
Do i need the full version? Because the demo does not give the create partition option its there but disabled.

Want to Run Hero? READ THIS FIRST

Ok, so me and i assume many people are getting annoyed being asked the same questions over and over again. So here is a list of some of the questions and their answers. If i forgot any please tell me so i can add them.
Like My Guide(s)? Donate
Question Index:
What is Hero/Rosie/Sense UI?
Do I need to have Root?
Do i NEED the new Radio and SPL?
Do i need Cyanogen's Recovery Image?
Do i need a formatted SD Card with EXT2/3 Partition?
How do i install a Hero Rom?Im getting a Boot Loop, what do i do now?
Should i use swapper? What is a good setting to use?
Is Apps2SD done automatically?
What is ADB and Fastboot and how do i use and install it?
How do i reformat my EXT2/3 Patition before flashing a New ROM?
What are the best settings to make Hero lag free?
What does not work in Hero?
I am stuck in recovery and need to add files to my sd card what can i do?
What is a nandroid backup and how do i use it?
Is a class 6 sdcard required?
How do i know what class my SDHC Card is?
All answers for the above questions and more are listed below.
--------------------------------------------------------------------------
[Q] What is Hero/Rosie/Sense UI?
[A] The Rosie/Sense UI is a User Inerface created by HTC using the Android OS and made Android seem beautiful and amazing. From all the widgets to the eye candy and to the social network intergration, Rosie/Sense UI shows what Android should have been when it started. For a promo go here:
http://www.youtube.com/watch?v=FKTDSfbcbBU
--------------------------------------------------------------------------
[Q] Do I need to have Root?
[A] Yes.
--------------------------------------------------------------------------
[Q] Do i NEED the new Radio and SPL?
[A] Yes, you MUST have the new Radio AND SPL
To install:
Things you need:
New SPL - Download
New Radio - Download
Your Current ROM - CyanogenMod 3.6
SD Card Reader
Rooted G1 Phone
Computer
USB Cable
Patience
---------------------------------------------------------------------------------------
Install Radio FIRST
Download the Radio Update
Rename it to update.zip
Remove your SD Card from your phone and place it in your SD Card Reader
Put the update.zip at the root of your SDcard (root = not in any folder)
Insert your sdcard back into the phone
Turn off your phone (Hold power and press Power Off)
Hold the Home button and then press the power button (Keep holding power)
You will now enter recovery
Open up your keyboard and press Alt-S
Let it finish the update
When done reboot by pressing Home and Back
You should be able to access your Home screen (If its stuck on the Google G1 screen dont panic, just remove your battery for now)
---------------------------------------------------------------------------------------
Installing the new SPL
Note: To update you must have a PVT board. To Check go into fastboot (Power and Camera and check) Thanks persiansown
Take your SD Card out again and plug it into the pc
Remove the update.zip that you put in there
Download your current Rom or any other ROM that you want. I suggest CyanogenMod 3.6
Download the SPL Update
Rename the SPL Update to update.zip
Remove your SD Card from your phone and place it in your SD Card Reader
Put the update.zip at the root of your SDcard (root = not in any folder)
Insert your sdcard back into the phone
Turn off your phone (Hold power and press Power Off) or put your battery back in and turn it on
Hold the Home button and then press the power button (Keep holding power)
You will now enter recovery
Open up your keyboard and press Alt-S
Let it finish the update
Now it will reboot on its own back to recovery
Reboot again by pressing Home + Back
Your phone will be stuck on the T-Mobile G1 Screen (Again DONT FREAK)
Remove the battery from your phone
Remove your SD Card and plug it back into your computer
Take the ROM that you downloaded and rename it update.zip
Remove the update.zip that was on your SD Card and put this new one it
Put the battery back into your phone
Enter recovery (Home + Power)
Press Alt+s to update
Let it finish
Press Home + Back to reboot
Thats it! You now have your new SPL and Radio
--------------------------------------------------------------------------
[Q] Do i need Cyanogen's Recovery Image?
[A] No, but its recommended.
To install:
Download the recovery image HERE
Place the cm-recovery-1.3.1.img file in the root of your SD Card (Root = not in any folder)
Go back to your phone (Dont forget to unmount)
Open terminal and type in the following
Code:
su (wait for a screen to popup and press "allow")
flash_image recovery /sdcard/cm-recovery-1.3.1.img
--------------------------------------------------------------------------
[Q] Do i need a formatted SD Card with EXT2/3 Partition
[A] No, but you should. It will make Hero and Rosie run much smoother and MUCH faster with NO lag.
Use SDSPLIT to create your partition - Follow this Guide
OR
Format your SD Card with EXT3 and Swap Parition
--------------------------------------------------------------------------
[Q] How do i install a Hero Rom?
[A] Download a Hero Rom, i suggest JacHero's or Dizzy's
Rename your download from XXXXXXX.zip to update.zip
Place update.zip in the root of your sdcard (root = not in any folder)
Boot into recovery (Home + Power)
Wipe (Alt+w) and Flash (Alt+s)
--------------------------------------------------------------------------
[Q] Im getting a Boot Loop, what do i do now?
[A] Wipe and Flash again. If that does not work, reformat and repartition your SD Card, then wipe and reflash.
--------------------------------------------------------------------------
[Q] Should i use swapper? What is a good setting to use
[A] Yes
Perfect Setting:
Swap Location: /system/sd/swap.swp
Swap Space: 32mb
Swapinness: 10 or 60 which ever works better for you
Note: Swapper will kill your SDCard faster then normal
--------------------------------------------------------------------------
[Q] Is Apps2SD done automatically?
[A] Yes.
--------------------------------------------------------------------------
[Q] What is ADB and Fastboot and how do i use and install it?
[A] Follow this guide
--------------------------------------------------------------------------
[Q] How do i reformat my EXT2/3 Patition before flashing a New ROM?
[A] These commands are for ADB (Each line is a new command)
Code:
adb remount
adb shell
rm -r /system/sd/*
reboot recovery
then flash the update.
--------------------------------------------------------------------------
[Q] What are the best settings to make Hero lag free?
[A] This is what i found to work best:
1) Swapper Settings:
Location: /system/sd/swap.swp
Swap Space: 32mb
Swappiness: 10 or 60 w/e works for you
2) Remove any widgets or apps that you done need through adb or terminal
Code:
adb rm /data/app_s/Stocks.apk
or in terminal :
Code:
su
rm /data/app_s/Stocks.apk
3) Use only 3 home screens, leave the other 2 blank
4) Use as less widgets as possible (Clock, Weather, and Twitter)
Thats what i do and it works perfectly! Enjoy!
--------------------------------------------------------------------------
[Q] What does not work in Hero
[A] Bluetooth and LED lights are not working ATM but are being worked on. Some people are having issues with SMS and MMS as well.
--------------------------------------------------------------------------
[Q] I am stuck in recovery and need to add files to my sd card
[A] [How to] mount SD card in recovery by Gary13579
--------------------------------------------------------------------------
[Q] What is a nandroid backup and how do i use it?
[A] Go here and see the 3rd Post
--------------------------------------------------------------------------
[Q] Is a class 6 sdcard required?
[A] No, but it will improve speed and performance especially when using swaper
--------------------------------------------------------------------------
[Q] How do i know what class my SDHC Card is?
[A] Only SDHC cards have classes! To know what class your SDHC Card is just look at it
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This one is a C4 (Class 4) SDHC Card
--------------------------------------------------------------------------
For more help please go HERE where you will fine more guides and How-To's.
--------------------------------------------------------------------------
Again, if you want me to add any more Q & A's please let me know!
Another great post nephron! Should be in Dream Q & A though hehe
Thanks, i know it should be but it will get more attention here....
Shouldn't you mention the fact that you need a PVT board for the new SPL?
whoa great job on this!
hope this helps out all the noobs hehe.
+1!!!
ya you gave me the idea hahaha. I saw your post where you got pissed and i was like why not make a thread about all this?
nephron said:
ya you gave me the idea hahaha. I saw your post where you got pissed and i was like why not make a thread about all this?
Click to expand...
Click to collapse
ahah wow really nicee glad you too the initiative i was too lazy ahah
persiansown said:
Shouldn't you mention the fact that you need a PVT board for the new SPL?
Click to expand...
Click to collapse
Was this proven to be true? I did brick a PVT device, but it was because I updated in the wrong order when it wasn't known that it would kill phones.
whoa nice thread.
i wish there would have been something like this back in february on how to root my phone.
lol
i took forever.
Great read. One question I do not have a sd card reader, couldn't I just put my sd card into my phone then add the files to it?
Abbens said:
Great read. One question I do not have a sd card reader, couldn't I just put my sd card into my phone then add the files to it?
Click to expand...
Click to collapse
this was my question as well, as I do not have an sd card reader. Is there a way to do this without?
TooSlo said:
Was this proven to be true? I did brick a PVT device, but it was because I updated in the wrong order when it wasn't known that it would kill phones.
Click to expand...
Click to collapse
From what I have read, yes but I could be mistaken.
Regardless, OP, you should let the reader know of the inherent risk.
very perfect guide man
thank you very much
my Q : after normal flashing and allowing the swaper iam missing the market App. and termenal App., but when removing the SD Card after flashing done and restart everything gooing well and the market and the terminal Apps. are in place. what i should do to get swaper allowed and the SD Card in place and boot normaly and finding the Apps.
Your A :
thanks in advance
persiansown said:
Shouldn't you mention the fact that you need a PVT board for the new SPL?
Click to expand...
Click to collapse
thanks i tottaly forgot about that! I just added it!
Abbens said:
Great read. One question I do not have a sd card reader, couldn't I just put my sd card into my phone then add the files to it?
Click to expand...
Click to collapse
If you can get into your home screen, just use USB, thats fine but a card reader would be handy if you are stuck in recovery, especially when flashing the SPL
Here you go though
[Q] I am stuck in recovery and need to add files to my sd card
[A] [How to] mount SD card in recovery by Gary13579
i added it to the main page
jamaljmys said:
very perfect guide man
thank you very much
my Q : after normal flashing and allowing the swaper iam missing the market App. and termenal App., but when removing the SD Card after flashing done and restart everything gooing well and the market and the terminal Apps. are in place. what i should do to get swaper allowed and the SD Card in place and boot normaly and finding the Apps.
Your A :
thanks in advance
Click to expand...
Click to collapse
I suggest reformating your EXT2 partition becuase something could have happened with the auto apps2sd. Reformat/repartition then wipe and flash. That should fix it
Thanks for the great instructions!
I have nandroided and restored backups a few times when I've tested various images, but always without an a2sd setup.
Now that I am on a Cyanogen image and using a2sd is there a specific nandroid/backup I should do?
1) I guess I don't know if nandroid will backup the a2sd portion of my apps?
2) I'm not sure if/how I should delete the ext2 apps when I install a new image?
3) Does a nandroid restore put the a2sd back?
Any chance you can include this info in your guide?
I would love to get a complete backup of my current install with a2sd as easily as a nandroid backup. Be able to install a hero image. Be able to quickly switch back to my old Cyanogen image if things don't work well enough for me. BTW, does the latest recovery allow easier reinstalls of a nandroid now? Using the flashboot util worked ok, but I just wondered if the current recovery image made restores as easy as it makes backups. And if it handles the ext2/3 portions as well now.
Thanks again for the great guide!
ok...one more question. If I don't have the sd card reader, can I just use another object..like another phone and put my sd card in that to access the files? Or do I have to use the sd card reader? My thinking was that I could just grab my old Dash or my mom's phone and put my sd card in there to access the files on it.
knoxbrder said:
Thanks for the great instructions!
I have nandroided and restored backups a few times when I've tested various images, but always without an a2sd setup.
Now that I am on a Cyanogen image and using a2sd is there a specific nandroid/backup I should do?
1) I guess I don't know if nandroid will backup the a2sd portion of my apps?
2) I'm not sure if/how I should delete the ext2 apps when I install a new image?
3) Does a nandroid restore put the a2sd back?
Any chance you can include this info in your guide?
I would love to get a complete backup of my current install with a2sd as easily as a nandroid backup. Be able to install a hero image. Be able to quickly switch back to my old Cyanogen image if things don't work well enough for me. BTW, does the latest recovery allow easier reinstalls of a nandroid now? Using the flashboot util worked ok, but I just wondered if the current recovery image made restores as easy as it makes backups. And if it handles the ext2/3 portions as well now.
Thanks again for the great guide!
Click to expand...
Click to collapse
First of all, if you want to learn more about nandroid go to the third post on this thread
http://forum.xda-developers.com/showthread.php?t=532719
Second, nandroid does not backup apps2sd, if you want to backup your /data/app folder or w/e just use ADB. Personaly i would use the ADB file explorer becuase it is so much easier to use!
kidnoble said:
ok...one more question. If I don't have the sd card reader, can I just use another object..like another phone and put my sd card in that to access the files? Or do I have to use the sd card reader? My thinking was that I could just grab my old Dash or my mom's phone and put my sd card in there to access the files on it.
Click to expand...
Click to collapse
use w/e you have . As long as you can transfer files to your sd card, especialy when you cant mount it, is a good thing. If you are stuck i added a Q & A about mounting your sd card in recovery mode

[HOWTO] Repartitioning Your SD Card with GParted Using Ubuntu

XDA user supremeteam256 has written an excellent tutorial on How to Partition SD Card with Ubuntu for Dummies. After reading the tutorial, I asked whether it was possible to repartition an SD card using GParted in Ubuntu without losing any existing data on my ext2 or fat32 partitions (I was not, however, as concerned with my fat32 because it is easily backed up). My goal was to add a linux-swap partition after my existing ext2 partition. Specifically, I wanted to steal 64MB from my ext2 partition and reallocate it to a newly created linux-swap. So, I decided to be the guinea pig and risk losing my data for a greater cause. Well, I didn't end up losing data on either of my partition on either of my phones. I have successfully done this three times--on two G1s and a myTouch.
WARNING: While this worked for me it may not work for you. I am NOT responsible for any and all loss of data that might occur from this process. Proceed at your own risk and ALWAYS back up your SD card before trying this.
Prerequisites
I HIGHLY recommend you first read the tutorial mentioned at the beginning of this post so that you are familiar with installing Ubuntu and using GParted. This tutorial assumes that you have a working version of Ubuntu (I am using version 9.04) on your machine.
Ubuntu
SD Card
Card Reader
Step 1
Open up GParted by clicking System > Administration > Partition Editor. From the drop down menu on the top right-hand side of the GParted screen, selected your SD card. Make sure you select your SD card and NOT your hard drive. You are on your own if you make a mistake here. For this example, I am using a 2GB SD card. Yours may differ so proceed accordingly.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Figure 1: Selecting Your SD Card
Step 2
Once your SD card is selected, right click on each partition and select "Unmount" from the list.
Figure 2: Unmounting Each Partition
Step 3
Once you have unmounted each partition, right click on the ext2/3/4 partition on select "Resize/Move" from the list.
Figure 3: Resizing the ext2 Partition
Step 4
In the dialog box that opens, subtract the number of MB from using the down arrow button on the "New Size (MiB)" box. I would like a 64MB linux-swap partition. My SD card is 500MB (Figure 4) so I will click the down button until the "Free Space Following (MiB)" box reads 64 (Figure 5). An important step is to make sure that the box that reads "Round to cylinders" is UNchecked. This is so there is not partition in between the ext2/3//4 partition and the linux-swap since they must be in order (fat32, ext2/3/4, linux-swap). Once you have resized your partition tot he desired amount, click "Resize/Move."
Figure 4: Resize Dialog Box at 500MB
Figure 5: Resize Dialog Box Resized
Step 5
Next, create the linux-swap partition by right-clicking on the unallocated space that you have just taken from your ext2/3/4 partition and select "New" from the list.
Figure 6: Creating a New Partition
Step 6
The dialog box that opens will be similar to the resize dialog box you used in Step 4. In the "New Size (MiB)" box, enter the number of MB you would like your linux-swap partition to be. Then, select "linux-swap" from the "File System" drop-down menu. Make sure that "Primary Partition" is selected from the "Create as" menu. Again, make sure the "Round to cylinders" box is UNchecked. Once done, click "Add."
Figure 7: Selecting the Size of your New Partition
Step 7
Back in the main GParted screen, click "Apply" from the toolbar to apply the changes.
Figure 8: Applying the Changes
Step 8
When asked if you wish to continue, confirm your changes by clicking "Apply."
Figure 9: Confirm Your Changes
Figure 10: Watch Your Progress
Step 9
You should end up with something similar to what you see in Figure 10.
Figure 11: The Result
If you have any questions regarding this process, feel free to post them here. I don't know how much help I'll be as this is not my expertise but I'll do my best to answer what I can. I have learned, however, that there is always someone on the board who seems to have an answer for most questions. So ask away.
Reserved
Reserved for possible future use.
aaronratner said:
Reserved for possible future use.
Click to expand...
Click to collapse
yo, thanks alot bro. i was trying to figure out how to resize my linux swap. i already have a 32 mb linux swap. so, would it be better to delete the linux-swap and do the steps you did or do you just recommend me resizing my linux-swap. currently i have an 8gb class 6 transcend sd card. i currently have about 6.62gb fat32, about 1000mb (if i remember correctly) for my ext3, and 32mb for my linux-swap. thanks
I would--and this is more opinion that previous knowledge or expertise, delete the linux-swap--resize the ext3 and re-create the linux-swap. However, I don't think it would really make a difference which way you go. They are both essentially the same thing. Remember, there is a chance of data loss, particularly if your ext3 partition is full (the free space would have to come from somewhere). I have, however, successfully done this twice, both on a G1 and a myTouch. Hope it works and report back results if you try it.
EDIT: Did it a third time to another G1.
ubuntu and gparted
Ok, dl'ed the iso, burnt it, loaded into live cd, got my 4gb sdcard in the reader, started gparted and tried to follow along with superteam256's partition instructions for dummies (found here : http://forum.xda-developers.com/showthread.php?t=535914. The fat 32 partition gets "created" fine, but when I try to add a second, it gives me an error saying only one can be "primary" and that I have to create an extended partition even if that means removing the primary. So I tried to create just an extended, using the whole card, and then logicals afterwards, which didn't work. I tried to create the ext2/3 (not primary) and add the fat32 after, still gives me the same error.
*EDIT: When the first primary partition is created, it does not give me anything but "New" when I right click so I can't even tell it this one will be "extended".
On a side note, I have tried adb, but for some reason after the frist 2 commands it stops working and I have to reboot, unplug my phone, and then it works...for another 2 commands. I really want to run hero on my rooted mt3g US 32B. So far the only ROM I have been able to load is some weird hacked version of the original OS (it's cool, but I wanna try HERO!!)
Anyone got some commandline (linux preferrably) directions on creating the sdcard partitions and filesystems?
Thanks!
I partioned my 8GB SD with gparted, and apps2SD is working now. But everything is moving to main FAT32 partion. How can I access or use other 3 partitions (ext3, linux-swap, fat32 at end). Any help
ykhehra1 said:
I partioned my 8GB SD with gparted, and apps2SD is working now. But everything is moving to main FAT32 partion. How can I access or use other 3 partitions (ext3, linux-swap, fat32 at end). Any help
Click to expand...
Click to collapse
Access it how? Through the phone? PC? Only the fat32 shows up in Windows and in non-root file explorers on the device. The files on the ext partition are usually located in /system/sd depending on the ROM. This can only be accessed via linux using a root explorer on the device, terminal emulator or ADB.
rmarquez1974 said:
Ok, dl'ed the iso, burnt it, loaded into live cd, got my 4gb sdcard in the reader, started gparted and tried to follow along with superteam256's partition instructions for dummies (found here : http://forum.xda-developers.com/showthread.php?t=535914. The fat 32 partition gets "created" fine, but when I try to add a second, it gives me an error saying only one can be "primary" and that I have to create an extended partition even if that means removing the primary. So I tried to create just an extended, using the whole card, and then logicals afterwards, which didn't work. I tried to create the ext2/3 (not primary) and add the fat32 after, still gives me the same error.
*EDIT: When the first primary partition is created, it does not give me anything but "New" when I right click so I can't even tell it this one will be "extended".
On a side note, I have tried adb, but for some reason after the frist 2 commands it stops working and I have to reboot, unplug my phone, and then it works...for another 2 commands. I really want to run hero on my rooted mt3g US 32B. So far the only ROM I have been able to load is some weird hacked version of the original OS (it's cool, but I wanna try HERO!!)
Anyone got some commandline (linux preferrably) directions on creating the sdcard partitions and filesystems?
Thanks!
Click to expand...
Click to collapse
use the command: fdisk
for instructions how to use fdisk
type fdisk --help(or fdisk -help or something)
or man fdisk
Excellent tutorial. Unfortunately, it doesn't work for me. My SD card is already partioned using ROM Manager / Clockwork Recovery. I currently have 15 GB FAT32 and 1 GB ext2 (I guess).
Running Ubuntu 10.10, I've connected the phone via USB and I can access the FAT 32 partition via Nautilus/Explorer.
Using GParted, I can only see 15 GB of unallocated space (as /dev/sdb). The FAT 32 is not recognized as such and the 2nd partition doesn't even show.
Using the Ubuntu Disk Utility, /dev/sdb is reported as 15 GB on HTC Android Phone but unpartioned.
Any idea of how to proceed without wiping everything and with working on the whole 16 GB?

[Q] sd not recognized after creating ext3 partition

I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
​ E: Can't mount /dev/block/mmcblk0p2
​ (Invalid Argument)
​
​ Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Click to expand...
Click to collapse
From what I've read, I'm pretty sure you have to use primary partitions and logical's don't work on the phone. You also have to set the boot flag (a.k.a. active partition) on the fat partition. Based on what you've written (which was very good by the way, the detail was helpful), I don't think you have to reinstall the ROMs. I think you just need to repartition/format your card properly.
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
berlin85 said:
This is probably an even dumber question, but I'm not sure how to repartition/format the card at this point. Nothing is showing up in Windows, just Removable Disk with size shown of 0 bytes, and when I open MiniTool Partition Wizard, all I see is my PC drives, nothing for the SD.
I'm connecting with the SD in my phone if that makes a difference, I don't have a reader on my pc.
Click to expand...
Click to collapse
Maybe try a linux boot CD. Ultimately, you may have use an adapter and go directly to the PC, though. It could be that the phone doesn't understand the partition table with the logical partitions so it can't export it anymore.
The phone's software (even recovery) doesn't expect that partitions can change while it is booted. For example, (you don't have one working but if you did) when you export the partitions for USB access, the sd-ext partition is both *not* unmounted and also simultaneously exported as a raw device. This can cause all sorts of filesystem corruption on the ext partition because of kernel caching on the desktop and in the phone.
Yay, used a comp at school with a microSD reader, repartitioned the ext3 making it primary rather than logical... seems to be working fine
easy solution after all! thanks for the help, really appreciate it
berlin85 said:
I've done some searching and could not find an answer to this issue that I could understand.
My phone is running Dexter's Froyo v1.3. I was having the issue where Milestone Overlock would not autoload at boot (ie settings were reset every reboot), and wanted to create an ext3 partition to use Link2SD.
I downloaded MiniTool Partition Wizard and used it to create a ~512MB ext3 partition on the phone, as a logical partition. Didn't do anything else as far as setting boot partitions (thought it would keep the old settings, not sure if that's causing the issue).
Also, I installed the update from Mioze7Ae, by copying the .zip to the OpenRecovery/updates folder on my SD, doing a recovery boot, and applying the update. When the update was applied it said successful, but there was a message before this line saying:
​ E: Can't mount /dev/block/mmcblk0p2
​ (Invalid Argument)
​
​ Install from sdcard complete.
I think this is part of the issue, but I don't really know what I'm doing. After this I rebooted the phone, and got a notification Removed SD card, and when I connect to PC no drive is shown (just Removable Disk G:, and nothing in shown in MiniTool Partition Wizard.
I'm guessing the issue was caused my me not formating the SD properly. Can anyone help out? I would like to avoid loading Dexter's rom from scratch if possible, to keep my data/apps, but am willing if that's the only way.
Sorry for the long post and if this question's been answered before, as I said I did do quite a bit of searching and couldn't find any comprehensive solution. Thanks
Click to expand...
Click to collapse
Did you try to format sd card with your phone in sd card and memory setting and then to create again ext3 partition with MiniTool Partition Wizard ?
Be sure to save data in your card first.
Mine is a galaxy SII, but I'm facing the same problem. I've formatted my microSD to EXT3 via MiniTool Partition but phone does not recognize it.
It says it's damaged and asks if I want to format it, after formatting thru the phone it returns to FAT32 and works perfectly again.
I've read more than 20 threads among several forums but I'm still not able to fix it.
Can you guys help me?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Mioze7Ae said:
Did you create a second partition as ext3? AFAIK the first partition must be FAT (and marked bootable). Maybe you got that backwards?
Click to expand...
Click to collapse
Had no success doing this, it shows the same information saying that "SD card is damaged". I really don't know what to do to make this work.
---------- Post added at 09:26 PM ---------- Previous post was at 09:24 PM ----------
Woodrube said:
Are you trying to partition the internal SD or the external. Samsung already has the internal partitioned into one Fat and another for your apps and cache. That is why your phone specs show 16gb internal but you only really have 14gb to put music, pix,...on. 2gb are already allotted for apps and cache. You can and should only partition the external one. My question is why are you trying to do this on an SGSII when it is not needed. No SGSII rom needs to have a partition and any Voodoo kernel will convert your system, data, cache and DB.data files to Ext4 anyways. Seems needless.
Click to expand...
Click to collapse
I'm trying the external SD. It's a ADATA 32GB microSD.
The reason I want to do this is to be able to copy files over 4GB.

[REPARTITION][CWM-ZIP] Get 1.9 GB extra for user data on N7100!

Hello everyone
This is CWM-Zip script to repartition our N7100 to gain 1.9 GB more for user data partition.
This script is originally from http://forum.xda-developers.com/galaxy-s3/development/guide-extra-1-3-gb-user-data-t2762594 It’s for GT-i9300. Made by @forumber2 :good:. Thanks to him, without his easy simple script, I wouldn’t be able to port this script.
This is how Samsung partitioned N7100
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After running the script
Please note that this script is not suitable to ROMs that require storing big files in CACHE and PRELOAD or HIDDEN, notably Official ROMs, as you can see that CACHE and PRELOAD got shrank.
I’m not sure if there are some custom ROMs that store files in CACHE and PRELOAD, so check the ROMs installation zip first before using this repartition script. Check by reading update-binary in META-INF and observing folder structure inside the zip file.
I’m using DN3 v5+ and it doesn’t store any files.
I checked Omega v29, it doesn't use PRELOAD to store files, even wiping it before install.
X-Treme v2.1 is safe to install, even wiping PRELOAD before install.
BIG UPDATE 1
For some ROMs like Phoenix ROM requires storing data to PRELOAD, but not CACHE.
Use partition script "Repartition_N7100_16GB_PreloadStockSize587MB.zip" instead of "Repartition_N7100_16GB.zip"
It will partition PRELOAD to size of Stock 587 MBs.
CACHE remains 100 MBs, and SYSTEM remains around 2 GBs. GAINED USERDATA FREE SPACE IS AROUND 1328 MBs.
If your ROM .zip installer doesn't store files in PRELOAD, use "Repartition_N7100_16GB.zip" instead.
FYI, Big CACHE partition is used to store official Samsung OTA updates file, if you are on custom ROMs, then you can’t use Samsung OTA updates anyway. Big cache partition is practically waste of free space, but it is still required for Google Play APK downloads. (Max Google Play APK size is 50 MBs) In fact, Google Play apk downloads are stored in /data/com.android.providers.downloads/files/, cache partition is used to store apk downloads in old Android version. This script will partition CACHE with size of 100 MBs. For any Google Play apps that are bigger than 50 MB, they will use expansion files called .obb to help, those obb are stored in "Internal SD Card/Android/obb".
Samsung Apps APK downloads sometimes can be seen large to something like 300 MBs, but these APK downloads are stored in "/data/data/com.sec.android.app.samsungapps/files" So it won't break Samsung Apps downloads.
PRELOAD or HIDDEN is used to store Samsung crap stuffs like ringtones, Wonders of Nature video, starter beautiful images, VODB folder that is used for S-Pen stroke recognition. When user make a factory reset, all data in internal sd card gets deleted, then stuffs in PRELOAD gets copy to internal sd card. That’s why after factory reset Wonder of Nature video comes back.
ALL USERDATA AND INSTALLED OS ARE GOING TO BE REMOVED, SO BACKUP FIRST!
So let’s get started. You will use "Repartition_N7100_16GB.zip OR Repartition_N7100_16GB_PreloadStockSize587MB.zip OR in the attachment
1.Backup of course, if you don’t do System Nandroid backup, be sure to have ROM installer zip ready in external sd card, if you do Nandroid backup or Titanium Backup, make sure to back up to external sd card because this process will erase internal sd card too.You may backup your internal sd card to external sd card, USB-OTG, or Windows PC.
2.You need to use PhilZ Recovery, it doesn’t work with TWRP, TWRP lacks of “parted” binary required for repartitioning.
I personally used PhilZ Touch 6.25.0 on my N7100. 6.41.6 reported to work as well.
3.Install the ZIP and the script will run, after it finished, it will reboot recovery again.
4.We are not done yet, this script still has some bug that formatted partition can’t be mounted. You can see that you can’t mount some partitions or maybe all, weird.
5.We need to fix mount problem manually by go to Mounts and Storage, then format System, Data, Cache, Preload or Hidden one by one, then go to Power Option and reboot recovery once. DO NOT FORMAT BOOT, MODEM, STORAGE/SDCARD1 (external sd card).
6.We have repartition successfully. Now restore data, install ROMs.
How to restore original stock partition table.
You will need to do this if you want to install stock official firmware.
1 - Download "Odin3_v3.07_with_PIT_16GB_GT-N7100.zip" and extract it somewhere
2 - Download any stock ROM from sammobile.com or samsung-updates.com and unzip it.
2 - Open Odin, click "PIT" button and select " PIT_N7100_16GB_20121102.pit"
3 - Click "PDA" and select official ROM that you've downloaded
4 - Click "Start"
5 - After installation, phone will be stuck at bootanimation, don't panic.
6 - Pull out battery, boot to recovery (you can see some mount errors, don't worry)
7 - Select "wipe data/factory reset" in recovery menu
8 - Select "reboot system now"
I recently update 4.3 MJ5 to 4.4.2 ND3 bootloader via odin successfully, just to inform that after repartition, bootloader update still works. If it fails, make sure to try new usb cable. Mine failed first time because of bad usb cable.
See ND 4.4.2 bootloader here http://forum.xda-developers.com/showthread.php?t=2472270 CTRL+F in the thread and find bootloader.
For some people who curious how to output partition table in Terminal.
First you need to install "parted" binary to /system/bin/
parted binary is in attachment,
then use these command in terminal
su
parted /dev/block/mmcblk0
print
Also programs to show partition tables in Google Play can't show partitions offsets, but this command could.
UPDATE 15/10/2014
I found out that in fact, Google Play apk downloads are stored in /data/com.android.providers.downloads/files/, cache partition is used to store apk downloads in old Android version.
UPDATE 24/10/2015
I also uploaded a new partition script cwm-zip file for AOSP users that will repartition system to size of 1 GB, preload 15 mb, cache 100 mb.
This will gain 3 GB of more userdata space.
Please note that once you have repartition with Repartition AOSP N7100 System 1 GB.zip
You will not be able to install Touchwiz based ROM, Touchwiz based ROMs are bigger than 1 GB.
You will have to repartition again with Repartition_N7100_16GB.zip OR Repartition_N7100_16GB_PreloadStockSize587MB.zip, note that all userdata will be deleted.
Note that I personally don't use Note 2 anymore, but this script should work. It's just simple script editing from previous files.
1 GB system partitioning for AOSP/CM is not working as
psndna88, AGNI kernel maker, tests
"it seems we cannot change SYSTEM size, else the bootloader boots only into download mode"
Thanks a lot. I will try it later.
I did repartition my device about a year ago, but I did it manually and used parted program that comes with cwm recovery. The process is fairly simple if you are familiar with unixlike OS'es. The advantage of parted us that you can resize /system partition too (CM11 requires just 400 mb on /system, and default is 1800mb).
I just tried it. It all went fine. Thanks!
My question is, can we have more space, or this is the max we can have?
I guess some space must be reserved though, so the phone can work properly.
steff195 said:
I just tried it. It all went fine. Thanks!
My question is, can we have more space, or this is the max we can have?
I guess some space must be reserved though, so the phone can work properly.
Click to expand...
Click to collapse
Yes we can have just a little bit more space. You may try to shrink cache partition to 60 mbs, shrink preload to 4 mb. That would gain 54 mbs only. I configured cache and preload to be bigger than this for safety purpose. Maybe it will be use to store small files in the future. We also need to keep the number of partitions to be the same as stock one, else everything will malfunction. I still have no ideas what does OTA and TOMBSTONES do.
Sent from my GT-N7100 using XDA Free mobile app
great guide, will try
reminds me of the htc days when we could s off and flash various hboots to increase/decrease various partitions
so, this will accomodate all current custom roms ? edit - just read your warning to check : thanks:
ninekaw9 said:
Yes we can have just a little bit more space. You may try to shrink cache partition to 60 mbs, shrink preload to 4 mb. That would gain 54 mbs only. I configured cache and preload to be bigger than this for safety purpose. Maybe it will be use to store small files in the future. We also need to keep the number of partitions to be the same as stock one, else everything will malfunction. I still have no ideas what does OTA and TOMBSTONES do.
Sent from my GT-N7100 using XDA Free mobile app
Click to expand...
Click to collapse
Then I'll just leave it this way. Don't want my phone to malfunction if I push this to the extreme.
Thanks again!
steff195 said:
Then I'll just leave it this way. Don't want my phone to malfunction if I push this to the extreme.
Thanks again!
Click to expand...
Click to collapse
only a small problem, it does not format anything and says that there is no sim inside, I sincerely hope that you manage to solve the problem ....
also the modem is not installed ...
I saw your post on the DN3 V5+ thread which led me... Seems to be a great concept, especially considering that one of the first things I do upon flashing a stock-based rom is to delete most Sammy things on it.
I understand that you need Philz to flash this; will the latest V6.41.4 do?
Also, do you know of anyway to save all system settings so as to restore them later? I can backup apps and their data but not the stock system settings themselves.
Can we increase system partition???
I need more space in system......
ulkika said:
only a small problem, it does not format anything and says that there is no sim inside, I sincerely hope that you manage to solve the problem ....
also the modem is not installed ...
Click to expand...
Click to collapse
Man, I tried via Philz 6.41.6, since it was recommended in OP. I usually use TWRP, had a nandroid backup of everything including Modem made with TWRP which I placed on external card.
Had the mounting problem after flashing script and rebooting recovery, but I manually solved them, as described in 1st post. Then reflashed TWRP and restored my nandroid from external card. Then also restored my internal sd files (music, games obb, etc) which I saved on pc.
I have no error, I have ND3 modem present, all fine, phone works as before. And 12.1gb total space instead of 10.4 which I had before.
Thanks again!:good:
ulkika said:
only a small problem, it does not format anything and says that there is no sim inside, I sincerely hope that you manage to solve the problem ....
also the modem is not installed ...
Click to expand...
Click to collapse
How come your modem firmware is gone?
Have you try installing ROMs again, most rom installer will flash modem firmware.
My script doesn't touch modem partition at all.
Just partition cache and after that, see the partition table.
Rickav said:
I saw your post on the DN3 V5+ thread which led me... Seems to be a great concept, especially considering that one of the first things I do upon flashing a stock-based rom is to delete most Sammy things on it.
I understand that you need Philz to flash this; will the latest V6.41.4 do?
Also, do you know of anyway to save all system settings so as to restore them later? I can backup apps and their data but not the stock system settings themselves.
Click to expand...
Click to collapse
steff195 used Philz 6.41.6, and it worked.
Well, DN3 v5+ update-script has the commands to delete Android Setting Database on install.
Because you restore data first, then flash DN3v5+ which triggering deletion of Android Setting Database.
So you have to backup android setting database using titanium backup before repartition, then restore after repartition.
Or after repartitioning, install DN3 v5+ first, then restore data using nandroid.
I also have weird problem after deleting Android Setting Database on DN3 v5+. New setting generated is really courrupted. It breaks home button, notification toggles expanding, lock screen, and much more. Everybody else seem to be fine of android setting database regeneration. Weird.
MBariya said:
Can we increase system partition???
I need more space in system......
Click to expand...
Click to collapse
Yes you can.
Extract my .zip script, then open the updater-binary with your favorite text editor, I prefer Notepad++.
Find these line
parted /dev/block/mmcblk0 mkpart primary 168MB 270MB -> CACHE
parted /dev/block/mmcblk0 mkpart primary 270MB 2417MB -> SYSTEM
parted /dev/block/mmcblk0 mkpart primary 2417MB 2432MB -> HIDDEN
parted /dev/block/mmcblk0 mkpart primary 2432MB 2440MB -> OTA
parted /dev/block/mmcblk0 mkpart primary 2440MB 15.8GB -> USERDATA
It is pretty easy to understand indeed, first number after word "primary" is the start offset of the partition, second one is the end.
You may change those number. But remember that CACHE partition must always be bigger than 50 MBs to store google play apk download. Google stated that google play apk max size is 50 mb, bigger than that will use .obb to help.
I recommend you to keep OTA size 8 MB, cause I don't know what it does.
HIDDEN can be shrink up to 5 MB I doubt. I suspect that shrink up to 4 MB can cause issue, I don't know if you set size for 4 MB, will it exceed minimum partition size required.
However, numbers in red can't be changed, they must be 168MB and 15.8 GB the same.
And do not change order of partitions, and there must be 5 partitions. You can't remove HIDDEN and OTA, else partition order and number will wrong, and I think a lot of things will break, including recovery.
After you modified the script. Zip them and put in your phone and flash! :laugh:
philz_touch_6.41.6-n7100.zip.md5 but the problem is that not format data,i solve whith reinstall nd3 and after root and restore system but the patch is not functionally at my device.
---------- Post added at 11:50 AM ---------- Previous post was at 11:45 AM ----------
ninekaw9 said:
How come your modem firmware is gone?
Have you try installing ROMs again, most rom installer will flash modem firmware.
My script doesn't touch modem partition at all.
Just partition cache and after that, see the partition table.
Click to expand...
Click to collapse
I do not know what happens because of it, I can not see the pictures because you do not know how to send to you but that happens on the screen while doing the second restart to do manually format the system tells me that the memory is not formatted.
then I tried to reinstall the old rom and told me that he could not find the modem, it does not restart no line present it tell insert telephone card ... in the end I had to reinstall ND3, before I tried it with the pit from you and given after but not without changing anything in the system memory space....
ulkika said:
philz_touch_6.41.6-n7100.zip.md5 but the problem is that not format data,i solve whith reinstall nd3 and after root and restore system but the patch is not functionally at my device.
---------- Post added at 11:50 AM ---------- Previous post was at 11:45 AM ----------
I do not know what happens because of it, I can not see the pictures because you do not know how to send to you but that happens on the screen while doing the second restart to do manually format the system tells me that the memory is not formatted.
then I tried to reinstall the old rom and told me that he could not find the modem, it does not restart no line present it tell insert telephone card ... in the end I had to reinstall ND3, before I tried it with the pit from you and given after but not without changing anything in the system memory space....
Click to expand...
Click to collapse
I am very confused with your language. After you used my script, did you go to "Mounts and Storage", then format SYSTEM DATA CACHE PRELOAD?
only an other question,i use x-treme rom 2.1 is possible that is the problem...
ulkika said:
only an other question,i use x-treme rom 2.1 is possible that is the problem...
Click to expand...
Click to collapse
I'm downloading it and will diagnose the installation file.
ninekaw9 said:
I am very confused with your language. After you used my script, did you go to "Mounts and Storage", then format SYSTEM DATA CACHE PRELOAD?
Click to expand...
Click to collapse
after reboot of first install, is impossible for me format prelod .system and cache....
ulkika said:
after reboot of first install, is impossible for me format prelod .system and cache....
Click to expand...
Click to collapse
Try this Philz Touch version. It is the version that I used to repartition on my device.
I'm still downloading your ROM, mediafire is quite slow today.

Categories

Resources