[TRICK] Increase your SYSTEM partition to 2.5GB after flashing ROM - YU Yureka General

Use this for increasing your system partition
https://forum.xda-developers.com/yu...-increase-partition-to-2-5gb-boot-to-t3395240
After successfully increasing your system partition many of them experienced that the system partition is reverted back to old system partition after flashing ROMs
Here are some methods that I have tried to remain 2.5gb system partition after flashing ROMs
Carefully read this methods
Method 1 :
Reboot twrp
Select install
Flash ROM
Go back
Select wipe
Select system
Select Repair or Change File System
Select Repair File System
Swipe
Go back
Select Resize File System
Swipe
Go back
Done ?
Reboot system
If Method 1 doesn't work try Method 2 some ROM doesn't support Method 1
Method 2 :
Reboot twrp
Select install
Flash ROM
Go back
Select Backup
Select System
Swipe to backup system
Go back
Select Wipe
Select system
Swipe to erase system
Go back
Select Restore
Select your system backup
Swipe to Restore system
Go back
Done ?
Reboot system
How to check your system partition size?
Reboot twrp
Select Wipe
Select System
Select Repair or Change File System
Now you can see system size = 2479MB
Done ?
Hit thanks button ? it may encourage me

Reserved

*Reserved*

Related

[GUIDE] Flashing Your First HD2 Clockwork Mod Android Rom [For Newbs]

This guide will explain how to install Clockwork Mod on your phone so you can flash CWM Roms, as well as performing other actions.
Clockwork Mod is the traditional way of flashing, updating, backing up and restoring Roms on Android Phones. Many chefs are now only providing Roms in this form so it is best to have it on your phone and know how to use it.
REQUIREMENTS BEFORE STARTING!! IMPORTANT, PLEASE READ THIS!!
1. YOU NEED HARDSPL 2.08 INSTALLED ON YOUR DEVICE TO FLASH MAGLDR
2. YOU NEED A RADIO WHICH SUPPORTS 576 RAM (2.08.50 or later should be fine but the Radio NEEDS to be 2.**.50.**). I recommend the 2.15.50.14 Radio
3. YOU NEED MAGLDR V1.13 ON YOUR DEVICE TO INSTALL CLOCKWORK MOD
THIS GUIDE ASSUMES YOU HAVE ALREADY FLASHED MAGLDR V1.13 ON YOUR PHONE. IF YOU HAVENT THEN PLEASE FOLLOW AND COMPLETE STEP 1 OF *THIS* GUIDE BEFORE CONTINUING WITH CWM.
-------------------------------------------------------
-------------------------------------------------------
1. FLASH CLOCKWORK MOD TO YOUR DEVICE
NOTE: There are 3 CWM images attached at the bottom of this thread. You only need to install 1 of the images depending on what type of Android Rom you want to flash. The larger the size of the CWM Partition the less space there will be left for programs installed to your phone.
150MB Partition - For lite Roms without Sense such as CM7. Gives most internal space on your phone for apps
250MB Partition - Standard size Roms or squashed Sense Roms
400MB Partition - Full Sense Roms. Hardly any internal space for apps. 512ROM Leo's will need A2SD external partition set up
If you arent sure which size you need then check the first few posts of the Rom you want to flash as it will usually tell you which size partition it needs.
1. Download the CWM Partition you require and extract it to a new folder on your pc
2. Connect your phone to your pc via the USB Cable
3. Restart your phone and HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears
4. Keep pressing the 'Volume Down' button to goto Option 5. USB Flasher and press the 'Call Button' (far left) to select it
*The screen should now say Wait USB...USB*
5. Run DAF.exe (Right Click and Run As Administrator if you have Vista or Windows 7) in the folder you extracted the image to and follow the intructions on your pc to start flashing
6. After flashing the phone will reboot. HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears
To start Clockwork Mod keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call Button' (far left) to select it
NOTE: If the Rom demands a different size CWM then you can download any of the attached sizes, then extract the contents and edit the flash.cfg file with Notepad. Change the sizes on the following lines depending on what you need:
system ya ***M (partition size)
cache ya **M (cache size)
-------------------------------------------------------
-------------------------------------------------------
2. PARTITION YOUR STORAGE CARD FOR A2SD ROMS (IF REQUIRED)
NOTE1: Setting up a partition on your Storage Card will allow A2SD compatable Roms to automatically install apps to this partition rather than using your phones internal memory. This is useful for people that have alot of apps to install and for people who want to flash a Sense Rom and wont have much internal memory left.
NOTE2: Once you create an A2SD partition on your Storage Card all information will be lost so make sure to backup everything to your pc so it can be copied back after. The accessible space on your Storage Card will be made smaller by the amount of the partition you set up so only make it as big as you need make it huge if you dont have many apps to install)
1. Boot into the Clockwork Mod menu
2. Go down to 'Advanced' and select (by pressing 'Call Button')
3. Select 'Partition SD Card'
4. Select Size of required partition not sure then 1024M is a good size)
5. Make ABSOLUTELY sure you want to continue and then select 0M Swap Size
Your Storage Card will now be partitioned with the size you selected.
ALL DATA ON YOUR STORAGE CARD WILL BE LOST!!
-------------------------------------------------------
-------------------------------------------------------
3. FLASHING A CWM (CLOCKWORK MOD) ROM
1. Connect your phone to your pc via the USB Cable
2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen
3. When the data wipe is complete, select 'install zip from sd card' in the main menu
4. Go down to 'choose zip from sdcard' and select
5. Scroll down to your CWM Rom (which you should have copied to the Root of your Storage Card) and select it
6. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'
Note: You can repeat steps 3-5 if you have more zips to install such as gps data or screen mods
7. Once finished press the 'Back' button to get to the previous menu screen
8. Select 'reboot system now' to restart your phone and your Android Rom should boot
9. Once Android has booted and you have gone through the setup screens, LONG PRESS the 'End' button and select reboot to reboot your phone to avoid possible FC (Force Close) problems
NOTE: The first boot of your Rom will take alot longer than subsequent boots so leave it and give it time (15 minutes max)
-------------------------------------------------------
-------------------------------------------------------
4. UPDATING AN EXISTING CWM (CLOCKWORK MOD) ROM
1. Connect your phone to your pc via the USB Cable
2. In the Clockwork Mod main menu select 'install zip from sd card'
3. Go down to 'choose zip from sdcard' and select
4. Scroll down to your CWM Rom update (which you should have copied to the Root of your Storage Card) and select it
5. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'
6. Once finished press the 'Back' button to get to the previous menu screen
7. Select 'wipe cache partition' and then 'Yes' on the next screen
8. Select 'Advanced', Select 'Wipe Dalvik Cache' and then 'Yes' on the next screen
9. Select 'Fix Permissions' and wait for it to complete
10. Once completed press the 'Back' button and then select 'reboot system now'
11. After the phone boots into Android you will probably get alot of 'Force Close' messages. Pull the battery, plug it back in and press the 'Power' button to boot up and everything should work fine
-------------------------------------------------------
-------------------------------------------------------
USEFUL INFORMATION
HOW TO ENTER THE CLOCKWORK MOD MENU SCREEN
1. Restart your phone and HOLD DOWN the 'End' button (far right) until the Magldr Menu appears
2. keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call' button (far left) to select it
-------------------------------------------------------
HOW TO COPY FILES TO YOUR PHONE
NOTE: This can be used to copy music or data across to your Storage Card and for copying your CWM Rom (with .zip extension) to the Root of your Card for flashing
1. Connect your phone to your pc via the USB Cable
2. In the Clockwork Mod main menu select 'mounts and storage'
3. Go down to 'mount USB storage' and select
Note: The Storage Card will now appear as a drive on your pc
4. When finished copying files select 'Unmount'
-------------------------------------------------------
HOW TO BACKUP THE CURRENT ROM ON YOUR PHONE
NOTE1: This can be used to make a complete backup of your Rom, installed apps and all settings. You can then try a different Rom and restore your backup at a later date if required.
NOTE2: Multiple backups can be made as they are stored in seperate folders (named by date and time)
1. Connect your phone to your pc via the USB Cable
2. In the Clockwork Mod main menu select 'backup and restore'
3. Select 'backup'
Note: Your entire Rom and all associated data will now be saved to your Storage Card. You can rename this folder at a later date if you wish
-------------------------------------------------------
HOW TO RESTORE A BACKUP TO YOUR PHONE
1. Connect your phone to your pc via the USB Cable
2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen
3. When the data wipe is complete, select 'backup and restore' in the main menu
4. Select 'restore'
5. Select the backup folder you wish to restore and then 'Yes' on the next screen
Your entire Rom and all associated data will now be restored from your Storage Card
NOTE: You can also restore parts of the backup by selecting 'Advanced Restore', selecting the backup and then choosing which part of the backup you want to restore (boot, system, data, cache or sd-ext)
-------------------------------------------------------
To SCROLL through the Menu Options use the 'Volume Up' and 'Volume Down' buttons on the left side of the phone
-------------------------------------------------------
To SELECT an Option in Clockwork Mod, press the 'Call' button which is the far left button at the bottom
-------------------------------------------------------
To GO BACK in the Clockwork Mod Menu, press the 'Back' button which is next to the 'End' button at the bottom
-------------------------------------------------------
*DISCLAIMER*
I take no responsibility for any fault or damage caused by any procedures within this guide. No warranties of any kind are given.
**Reserved**
i see that u had a hard time putting this together..!!really appreciate u'r work. thanks a lot..!!
Thanks a lot. That's a superb user guide.
I have a question: I have a TMOUS HD2 so I have a 1024MB ROM. Assuming I'm not going to install far too many apps, is there any reason I should consider using a smaller CWM than the 400MB version? Is there any downside/compatibility issue? e.g. what would happen if I install a ROM where the cook says it has been made for a smaller CWM?
alefsin said:
Thanks a lot. That's a superb user guide.
I have a question: I have a TMOUS HD2 so I have a 1024MB ROM. Assuming I'm not going to install far too many apps, is there any reason I should consider using a smaller CWM than the 400MB version? Is there any downside/compatibility issue? e.g. what would happen if I install a ROM where the cook says it has been made for a smaller CWM?
Click to expand...
Click to collapse
Setting a 400MB partition for a Rom that only requires a 150MB partition would have no negative impact on your device or speed. The only negative is that if you flashed a Rom that only needs a smaller partition then you would waste around 250MB of ROM but since you have a 1024LEO and you said you arent going to install much then you would 400MB-500MB of internal space available to install apps so you dont have too much to worry about.
The only reason why you should never install a 400MB partition is if you never plan on trying a Sense Rom. They are the only Roms that require soo much space so it would be pointless to waste the space for no reason.
Hope that answers your question.
Mark.
Wow this guide is godly, thank you so much for this, this guide answered all of my questions..
I have a TMOUS HD2, am currently on 150mb CWM on MIUI and CM7 alternately, if I change the CWM to 400mb version, is that mean that I can flash any ROM including the MIUI, CM7, Sense etc without having to change the CWM?
many TIA
DON2003 said:
I have a TMOUS HD2, am currently on 150mb CWM on MIUI and CM7 alternately, if I change the CWM to 400mb version, is that mean that I can flash any ROM including the MIUI, CM7, Sense etc without having to change the CWM?
many TIA
Click to expand...
Click to collapse
Yes it does (in general) but you are always better off flashing the size recomended by the chef to get the best results.
Mark.
Is there a way to use SD builds with CMW?
What would be the right instructions?
Thank you..
juggaknot77 said:
Is there a way to use SD builds with CMW?
What would be the right instructions?
Thank you..
Click to expand...
Click to collapse
No there isnt.
Mark.
Thanks for making this guide MSkip you make the best guides man.
I am seriosly amazed though by how many people have trouble using CWM to flash ROMs and to backup and restore their ROM. I mean CWM makes it so simply, I even made a guide that includes the break down of MAGLDR and CWM to try to help people out here. I am truly starting to see why members here get so aggrevaited by people though.
Thanks again for the guide and keep up the good work.
what if the chef wants me to install a 170MB CWR system partition???
download the 150mb partition and edit the flash.cfg file with notepad and change system ya 150M to system ya 170M
Here's a question:
Let's say I installed 150MB partition and tried any ROM, but now I want to install a ROM that needs 170 partition. Is it enough just to flash the new partition (from step 4 on...) or I need to start from scratch and install MAGLDR again and then the new partition?
Is it possible to use root this unlock Tmo HTC HD2 ?
thanks alot
theuser-1 said:
Here's a question:
Let's say I installed 150MB partition and tried any ROM, but now I want to install a ROM that needs 170 partition. Is it enough just to flash the new partition (from step 4 on...) or I need to start from scratch and install MAGLDR again and then the new partition?
Click to expand...
Click to collapse
You dont need to reinstall Magldr you can just flash a new Partition (via Magldr) and then install your new Rom.
Mark.
XdaFan02 said:
Is it possible to use root this unlock Tmo HTC HD2 ?
thanks alot
Click to expand...
Click to collapse
Sorry I dont understand your question do you want to root your phone or unlock it?
If you want to unlock it then what kind of unlock are you refering to.
Mark.
mskip said:
You dont need to reinstall Magldr you can just flash a new Partition (via Magldr) and then install your new Rom.
Mark.
Click to expand...
Click to collapse
Hi Mark
about that i have a question. I see that some roms need partition sizes different from the ones available in the CWM thread.
Is it easy to edit that partitions to make them match the rom needs???
EDIT: got it. Forget this question.
hi
whn i am trying to install a rom via cwm. it goes ok then fails to boot each time.
any idea? it gives an erro and sits on magldr screen
doran1801 said:
hi
whn i am trying to install a rom via cwm. it goes ok then fails to boot each time.
any idea? it gives an erro and sits on magldr screen
Click to expand...
Click to collapse
try to format ur sd card n make sure u do all rom requirement

Best way to wipe? Lol

What do you do to make your roms run great everytime. Wipe data 1x, 2x, 3x. Etc. I get force closes and wondering if I didn't wipe right. I also got boot manager with miui stable as rom 1. It's been acting wierd lately. Hoping Simone can give me tips on flashing through clockwork and installing through boot manager for best results.
Sent from my ADR6300 using xda app-developers app
I don't use boot manager, but for a clean install of a ROM, format boot and system, and wipe data/Factory Reset, all just once.
cvpcs.org/blog/2011-06-05/time_to_wipe_data/cache
Boot to cwm recovery.
Go to mounts and storrage menu.
Format every option available except emmc and sdcard.
Flash rom of your choosing.
PonsAsinorem said:
I don't use boot manager, but for a clean install of a ROM, format boot and system, and wipe data/Factory Reset, all just once.
cvpcs.org/blog/2011-06-05/time_to_wipe_data/cache
Click to expand...
Click to collapse
Exactly what this guy said. Wipe data/factory reset takes care of /data, /datadata, and /cache all in one stroke. All that's left is /boot and /system
Also, with MIUI you may need to clear out your app cache regularly. Use this App Cache Cleaner, it's super simple. That should help your fc problems.
These are the steps I follow when flashing ROMs. Seems to work well for me:
Reboot your phone into Bootloader Mode. (You can do that by pressing and holding the Volume Down and Power buttons until HBOOT boots.)
Using the Volume keys, highlight Recovery and select it by tapping the Power button. Your phone will now boot to Recovery Mode.
Create a NANDroid backup of your current ROM. Go to Backup and Restoreand select Backupon the next screen. Wait until recovery finishes backing up your ROM.
Once done, go back to the main menu and perform a full wipe:
[*] ----> Select Wipe data/factory resetand confirm the action on the next screen.
[*] ----> Select Wipe cache partition and confirm the action on the next screen.
[*] ----> Go back to the main menu and select Advanced.From there, select Wipe Dalvik Cache and confirm the action on the next screen.
Select Install ZIP from SD card.
Select Choose ZIP from SD cardand locate the ROM.zip file. Confirm the action on the next screen to flash the ROM to your mobile phone.
Go back to the main menu and flash GoogleApps.zip in the same manner as in steps 6 and 7.
Go back to the main menu and select Reboot system now. This will reboot your phone with the new ROM.
What I normally do is boot into cwm and just do the factory reset/data wipe and that makes everything run nice and smooth whenever i flash a new rom.
ardax said:
Exactly what this guy said. Wipe data/factory reset takes care of /data, /datadata, and /cache all in one stroke. All that's left is /boot and /system
Click to expand...
Click to collapse
Yes. I find that if you don't also do /boot and /system some things linger that can cause problems. I did not do this recently and it still remembered Wifi locations, brought up an old wallpaper and sounds choices via music and ringtones were severely limited. Don't be afraid, do what the man says!!
CyanoLou said:
Yes. I find that if you don't also do /boot and /system some things linger that can cause problems. I did not do this recently and it still remembered Wifi locations, brought up an old wallpaper and sounds choices via music and ringtones were severely limited. Don't be afraid, do what the man says!!
Click to expand...
Click to collapse
No need to format boot. Some devices don't even support that option. Plus flashing a new ROM always flashes a new boot.img in its place which overwrites the old one. System is OK but then you have to flash gapps with updates where before its optional. Wiping system isn't a bad idea on sense ROMs as it doesn't always get wiped by the script. On aosp it does and on cm it wipes system after backing up gapps.
Also WiFi and wallpaper choices are stored in datadata not system. If wallpapers come back after a factory reset that is due to Google restore. Sound choices are stored in a database that needs to rebuild after a wipe.
Sent from my Galaxy Nexus using Tapatalk 2
And in swoops tiny wielding the clue-by-four.
Normally I'll only wipe /system if I'm switching ROMs. Updating dailies doesn't require it.

Complete Guide for Rooting and Flashing Custom ROM Galaxy Y GT-5360 for beginners

Tired of searching for a complete Guide to Flash JellyBlastv3 on your GT-S5360?
Well, I have something for you::::
Read On....
Warning: The Below Steps are only for Samsung Galaxy Y, GT-S5360
Performing any of the steps shall Void the Warranty of Your Device.
I am not responsible for any damage you cause to your Device or emotional loss or anything.
You are solely responsible for you actions.
The Following procedure has been tested by me and it is working correctly.
​
Warnings and Important Tips:
1. The process may and will erase all your data present on the device. Better backup your contacts, Messages, Calendar entries, Notes Etc. You may use Super Backup, Go Backup or SMS Backup & Restore. There are several other apps in the Market. I would recommend to backup using multiple apps.
2. A Computer should be within reach with internet. Also have a USB Cable. Wi-Fi is recommended.
3. Make sure the system is running Stock ROM and Stock Kernel.
4. Also make sure you are running latest version of android available. On Galaxy Y, it is 2.3.6
5. If not, you can update, by going into settings>about phone>software update. Sign in with Samsung Account. 6. Before proceeding further, make sure that the phone is fully charged (Recommended 70% at least). High Chances of damage are there if the device runs out of juice during flashing.
7. Proceed with caution. Avoid confusion. Follow the steps! Never Jump to next step before completing first!
8. Within Procedures if you think the battery is not enough (>70%), you can charge it before proceeding to next procedure. The Phone can’t be charged within an ongoing procedure.
9. Enable the USB Debugging option. Go to Settings>Development>USB Debugging. Check it every time.
10. It took me considerable time to type the detailed steps to make it easy for even a beginner. Be Generous.
DO NOT FORGET TO PRESS THE THANKS BUTTON! :laugh:
I. Root​
Rooting is a process by which you can get root access or administrator privileges to your Android phone and can flash tweaks, custom ROMs, custom kernels, install additional applications which requires root, use firewall etc.
Root will void your phone’s warranty but it doesn’t matter you can get it back! (Google unroot)
1. Download the the update.zip file to your SD Card (not in any folder). I have attached it with the post.
2. Switch off your phone & boot into recovery mode.
3. Press Vol Up + Power Key + Home button together at the same time to boot in recovery mode.
4. Touch screen is disabled here.
5. Use volume keys for scrolling & home button for selection.
6. Select Apply update from SD card.
7. Select update.zip (which you have downloaded).
8. When it shows Installed from SD Card complete written.
9. Select reboot system now.
10. Your phone will restart & first boot may take 5 minutes. (Mine took a few seconds!)
11. Check for an application Superuser and open it.
12. Go to Menu > Preferences > SU Binaries> Update binaries.
13. SU Binaries will update. (You need active data connection or Wi-Fi)
14. When it get updated, restart your phone.
You’re done! Your phone is now rooted.
Warning: Do not delete Superuser or you will lose your root!
II. Flash ClockWorkMod​
ClockWorkMod is a Custom Recovery which lets you Flash Custom ROM, Kernels etc.
Note: This is temporary. Every time you need CWM, you have to flash it again. (For your convinience, keep it in the SD)
Instructions:
1. Enable USB Debugging by going to Menu -> Settings -> Applications -> Development - Enable USB Debugging.
2. Download the CWM Recovery.zip file and Place that file on the root directory of your SD card. (Attached)
3. Switch off your phone .Then boot into recovery mode, (hold Volume up button + Home button + Power button).
6. Select "apply update from SD card ", find the zip file you copied to your SD card earlier.
Once done, it will give you the option to reboot your phone, reboot and you're done!
You got CWM installed, you can now flash custom ROMs.
III. Backup Stock ROM​
In case, if anything happens to your device while flashing Custom ROM, backup of Stock ROM serves as a contingency plan. The Backup can be used to recover damaged device via Odin. (Now don’t ask me what’s Odin)
It can also be used to return to the Original State if ever you wish to revert back.
1. Boot into CWM by Flashing CWM again.
2. Go to Backup/Restore
3. Select Backup Current ROM. It will take a while and then it’s Done! The size of the Backup File depends upon the no. of apps installed. Generally should be around 200-400 MB.
IV. Flash Custom ROM (JellyBlastv3 by Avijit Ghosh)
DOWNLOADS: http://forum.xda-developers.com/showthread.php?t=1679563​
INSTALLATION GUIDE:
1. Make sure that you're on Stock kernel. Stock = Factory version.
2. Remove a2sd or data2sd and format your 2nd partition if you have it.
3. Place the above file to your SD Card (NOT IN ANY FOLDER!!!)
4. Switch off your phone.
5. Flash Clockwork mode.
6. Wipe data/factory reset.
7. Wipe cache partition.
8. Go to Advanced options and Wipe Dalvik cache.
9. Now choose: Install zip from sd card.
10. Choose JELLYBLAST V3.signed.zip and choose yes.
11. Keep your fingers crossed and pray.
It will be installed. Now reboot your phone. First boot will take time. Be patient.
V. Install OTA​
Over The Air Updates are the updates that are released after the ROM to fix bugs and problems or to make minor changes.
Important: Apply the OTA Updates in serial-wise manner to avoid bricking.
1. Download OTA 1, OTA 2, OTA 3, OTA 4.1 and OTA 5 and place them in your SD Card.
2. Boot into CWM, Select “Install .zip from SD ” and select OTA 1. After Completion, Device will Reboot.
3. Repeat Similar Steps OTA 2, 3,4, and 5.
4. You are Done! Now you are Running the latest version of the Custom ROM available.
5. You can check for updates in OTA updater.
VI. Partitioning SD Card​
On SGY GT-S5360, the Internal Memory is too low (190 MB). Every time you try to update the apps or try to Install new apps, you get the annoying message saying “ Internal Memory Full, delete some apps”. This is where Link2sd comes to the rescue!
There are also Similar apps available on the Market, but here we will be using Link2SD.
There are several ways to partition SD card, but here we will be using CWM.
Note: You need a rooted device, well doesn’t matter we have already rooted.
Note: This method will erase all your data on SD, so better backup it
1. Boot into CWM recovery.
2. Select Advanced options.
3. Select Partition SD Card.
4. Choose the partition size. (1024 recommended)
5. Choose the Swap size. (0 M)
6. Select “Yes”. It will take a while and then you are done! Reboot your phone.
7. Open Link2SD (or Download it from the Market). A pop-up will appear, choose ext3 (ext4 is fastest but ext3 is most compatible). Then Reboot.
8. Open Link2SD, Go to settings , then tick Auto Link.
9. Below in Auto Link settings click on all the three- Link App file, Link Dalvik Cache, Link library files.
10. Also set the Default location to external.
11. You are done. You can also link some of the existing user apps to the partition.
Now all your user applications will be linked to the SD Card, saving your precious internal memory space
Also Don’t forget to Grant Link2SD superuser permissions.
YOU ARE DONE! RESTORE YOUR BACKUP & ENJOY!!
NOW DON’T BE SELFISH! PRESS THE THANKS BUTTON!!!
The ROM has been made available by Dev Avijit Ghosh. Do not forget to thank the developer for his effort.​

Sd-ext/Sdext2 partition Backup and Restore from CWM Recovery

Hey guys, I have got a technique to Backup, format and restore your whole sdext2 / Sd-ext partition through Recovery in case you were unable to find a recovery to backup and restore this partition; and as far as I know there is no single recovery out there till date that can directly Backup and restore this partition on Grand. So if you need this please ask here and I will help you out.
Need help.
Gautam Gundap said:
Hey guys, I have got a technique to Backup, format and restore your whole sdext2 / Sd-ext partition through Recovery in case you were unable to find a recovery to backup and restore this partition; and as far as I know there is no single recovery out there till date that can directly Backup and restore this partition on Grand. So if you need this please ask here and I will help you out.
Click to expand...
Click to collapse
Can your method be used to backup sdext2 on other mobiles? I have got Micromax Canvas Power A 96 and Lenovo A 7000. Please provide me the necessary steps and information, so that I will give it a try and see if it is successful.
Thank you
Yes you can. This method is only for the android smartphones where the recovery does not support sd-ext/sdext2 backup, format and restore. If your device has an official or unofficial recovery on xda forum that supports sdext2/sd-ext then it can be done directly from the recovery menu options and this method is not required. If not follow the below steps
1. Find a recovery on the web/xda for your specific device that supports any file manager directly through recovery which has an option for terminal/bash command inputs and execution. Even if the recovery does not have a file manager support but has the terminal/bash command facility then that will do. Philz touch/non touch recovery for your specific device should support this. It has aroma file manager with terminal/bash commands support. I hope you know how to install a recovery img/partition on your device
2. Depending upon which app you are using for sdext2/sd-ext partition to handle, you will find a file under init.d directory for mounting this partition. This file contains script commands for mounting this partition. You need to edit this file and find the script command. For example if you are using link2sd on galaxy grand then the script command is mount -t ext4(your partition type) -o rw(permissions set) /dev/block/vold/179.10(this is the allocated partition address for your sdext2/sd-ext partition specific to your device and will be different for different devices) /data/sdext2.
3. If you want to do a full backup then reboot into recovery go to file manager and command prompt and type the mount script for sdext2/sd-ext and press enter.
4. Exit file manager/terminal and from recovery select full backup( boot, recovery, system, data ). This will backup your full device. You can backup .android_secure, data/media and extsdcard depending on your choice but mind it the backup file size will be large and you should have enough space on your extsdcard for it. If .android_secure is empty/not used you need not backup this ( if you don't have apps on extsdcard this will be empty) .
While performing the backup your recovery will display sd-ext partition not found. Could not backup sd-ext. Don't panic when you see this and just ignore it. Your sdext2/sd-ext partition will be backed up.
5. To format and then restore, boot into recovery and go to file manager/terminal and execute the above mount script and go back to recovery. Then format all above mentioned partitions that you have backed up and reboot from recovery back into recovery. You will be prompted for keep/apply root 1. Yes 2. No. Select yes.
6. Once you have rebooted back into recovery, again go to file manager/terminal and execute the above mount script and go back to recovery.
7. Now select full restore and select your backed up file and your device will be restored to exact state at the time you created your backup.
Note: You can also do customized/selected partitions backup and this also applies for format and restore too through philz cwm touch recovery.
I hope I have made this as simple as possible to understand and implement the procedure. If you have any doubts/queries you can get back.
Happy to know that it is possible.
Gautam Gundap said:
Yes you can. This method is only for the android smartphones where the recovery does not support sd-ext/sdext2 backup, format and restore. If your device has an official or unofficial recovery on xda forum that supports sdext2/sd-ext then it can be done directly from the recovery menu options and this method is not required. If not follow the below steps
1. Find a recovery on the web/xda for your specific device that supports any file manager directly through recovery which has an option for terminal/bash command inputs and execution. Even if the recovery does not have a file manager support but has the terminal/bash command facility then that will do. Philz touch/non touch recovery for your specific device should support this. It has aroma file manager with terminal/bash commands support. I hope you know how to install a recovery img/partition on your device
2. Depending upon which app you are using for sdext2/sd-ext partition to handle, you will find a file under init.d directory for mounting this partition. This file contains script commands for mounting this partition. You need to edit this file and find the script command. For example if you are using link2sd on galaxy grand then the script command is mount -t ext4(your partition type) -o rw(permissions set) /dev/block/vold/179.10(this is the allocated partition address for your sdext2/sd-ext partition specific to your device and will be different for different devices) /data/sdext2.
3. If you want to do a full backup then reboot into recovery go to file manager and command prompt and type the mount script for sdext2/sd-ext and press enter.
4. Exit file manager/terminal and from recovery select full backup( boot, recovery, system, data ). This will backup your full device. You can backup .android_secure, data/media and extsdcard depending on your choice but mind it the backup file size will be large and you should have enough space on your extsdcard for it. If .android_secure is empty/not used you need not backup this ( if you don't have apps on extsdcard this will be empty) .
While performing the backup your recovery will display sd-ext partition not found. Could not backup sd-ext. Don't panic when you see this and just ignore it. Your sdext2/sd-ext partition will be backed up.
5. To format and then restore, boot into recovery and go to file manager/terminal and execute the above mount script and go back to recovery. Then format all above mentioned partitions that you have backed up and reboot from recovery back into recovery. You will be prompted for keep/apply root 1. Yes 2. No. Select yes.
6. Once you have rebooted back into recovery, again go to file manager/terminal and execute the above mount script and go back to recovery.
7. Now select full restore and select your backed up file and your device will be restored to exact state at the time you created your backup.
Note: You can also do customized/selected partitions backup and this also applies for format and restore too through philz cwm touch recovery.
I hope I have made this as simple as possible to understand and implement the procedure. If you have any doubts/queries you can get back.
Click to expand...
Click to collapse
I am happy to know that it is possible. I will give it atry this evening, when I return home from work. I will let u know. Thank for your reply.
Gautam Gundap said:
Yes you can. This method is only for the android smartphones where the recovery does not support sd-ext/sdext2 backup, format and restore. If your device has an official or unofficial recovery on xda forum that supports sdext2/sd-ext then it can be done directly from the recovery menu options and this method is not required. If not follow the below steps
1. Find a recovery on the web/xda for your specific device that supports any file manager directly through recovery which has an option for terminal/bash command inputs and execution. Even if the recovery does not have a file manager support but has the terminal/bash command facility then that will do. Philz touch/non touch recovery for your specific device should support this. It has aroma file manager with terminal/bash commands support. I hope you know how to install a recovery img/partition on your device
2. Depending upon which app you are using for sdext2/sd-ext partition to handle, you will find a file under init.d directory for mounting this partition. This file contains script commands for mounting this partition. You need to edit this file and find the script command. For example if you are using link2sd on galaxy grand then the script command is mount -t ext4(your partition type) -o rw(permissions set) /dev/block/vold/179.10(this is the allocated partition address for your sdext2/sd-ext partition specific to your device and will be different for different devices) /data/sdext2.
3. If you want to do a full backup then reboot into recovery go to file manager and command prompt and type the mount script for sdext2/sd-ext and press enter.
4. Exit file manager/terminal and from recovery select full backup( boot, recovery, system, data ). This will backup your full device. You can backup .android_secure, data/media and extsdcard depending on your choice but mind it the backup file size will be large and you should have enough space on your extsdcard for it. If .android_secure is empty/not used you need not backup this ( if you don't have apps on extsdcard this will be empty) .
While performing the backup your recovery will display sd-ext partition not found. Could not backup sd-ext. Don't panic when you see this and just ignore it. Your sdext2/sd-ext partition will be backed up.
5. To format and then restore, boot into recovery and go to file manager/terminal and execute the above mount script and go back to recovery. Then format all above mentioned partitions that you have backed up and reboot from recovery back into recovery. You will be prompted for keep/apply root 1. Yes 2. No. Select yes.
6. Once you have rebooted back into recovery, again go to file manager/terminal and execute the above mount script and go back to recovery.
7. Now select full restore and select your backed up file and your device will be restored to exact state at the time you created your backup.
Note: You can also do customized/selected partitions backup and this also applies for format and restore too through philz cwm touch recovery.
I hope I have made this as simple as possible to understand and implement the procedure. If you have any doubts/queries you can get back.
Click to expand...
Click to collapse
THANK YOU!!!!!!!!! I'm on an LG G3 and I was successful at mounting my sdext2 partition for Link2SD using this method. I had to change a few things, for example, I have no init.d folder, but had to search for "link2sd" and found the file "init-link2sd.sh", which contained two commands, and the one that worked was "mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2". THANKS AGAIN!!!!!!!!
Glad to know that it worked for you. Hope others are able to use this guide too.

How to check size partition/layout?

Phone T-989D
TWRP 2.8.7
Currently running cm-13.0-20151219-UNOFFICIAL-hercules
So in the process of getting the above CM13 to work, I was doing the virtual partition. Following the instructions, I wasn't able to partition as directed in the instructions -
In TWRP, go to Wipe -> Advanced Wipe -> check Internal Storage -> press on "Repair or Change File System" -> press on "Change File System" -> press on "EXT4", and then swipe to start formatting the internal SD card. This can take up to a minute.
Click to expand...
Click to collapse
Pressing on Repair or Change File System gave an invalid location. Apparently this is a known issue? *shrugs*
So I did this -
Used the following PIT file...
http://forum.xda-developers.com/gal.../mod-partition-internal-memory-t-989-t3051556
Odin returned /w success.
Installed CM13 image from above.
Works.
In the instructions for pit, it showed how to check sizes via the Storage and USB option screen, in his version of android... but CM13, doesn't have it the same menu, it shows Internal Storage only and listed at 5gb.
My question is then, is my virtual partions proper? I don't know how to check each virutal partition... using TWRP I can only confirm the partition ares ext4.
In TWRP it has /data /internal storage /system and the other common ones. How do i check if everything is OK? I don't know what is required to confirm a virtual storage is set properly.
Also, in TWRP can some explain what Format Data does? its not like Windows format is it? I mean you partition a drive, then you have to format it, to use it. Its only like wipe correct? I don't really need to do if it I'm wiping /data /dalvick /cache anyways?
Thank you.
You don't need the PIT file anymore. You need to undo and flash the original PIT back to the device. I believed it is called "unmodified". After you finish undo your device you can follow instruction in the Unofficial CM13 thread to flash the special TWRP recovery update. This one rename partitions so the new rom can be installed. Once you reinstall the rom, the Internal storage will show around 11 GB and not 5 GB
In TWRP, go to Wipe -> Advanced Wipe Then
Select "Data" and click "Repair or Change File System", you should see size around 11,xxx MB
Select "System" and click "Repair or Change File System", you should see about 2,xxx MB
Select "Cache" and click "Repair or Change File System", you should see about 5xx MB
kbook said:
You don't need the PIT file anymore. You need to undo and flash the original PIT back to the device. I believed it is called "unmodified". After you finish undo your device you can follow instruction in the Unofficial CM13 thread to flash the special TWRP recovery update. This one rename partitions so the new rom can be installed. Once you reinstall the rom, the Internal storage will show around 11 GB and not 5 GB
In TWRP, go to Wipe -> Advanced Wipe Then
Select "Data" and click "Repair or Change File System", you should see size around 11,xxx MB
Select "System" and click "Repair or Change File System", you should see about 2,xxx MB
Select "Cache" and click "Repair or Change File System", you should see about 5xx MB
Click to expand...
Click to collapse
@kbook,
Would you kindly post the links to Special TWRP recovery update and/or the thread you were referring to? Thanks
usrkizzi said:
@kbook,
Would you kindly post the links to Special TWRP recovery update and/or the thread you were referring to? Thanks
Click to expand...
Click to collapse
The TWRP is in this thread on the #2 post. The newest version is 3.0.2.
http://forum.xda-developers.com/gal...unofficial-cyanogenmod-13-0-hercules-t3246059
To undo the partition using PIT, go to this thread
http://forum.xda-developers.com/gal.../mod-partition-internal-memory-t-989-t3051556
At the very of the first post, long one, you will see
T989_PIT_(Unmodified).zip <-- this is to undo the partition back to its original.

Categories

Resources