I was wondering about if and how i can turn my nandroid backup into a flashable zip.
Im sure there is a way...
Does anyine know how to do this?
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
I was wondering about if and how i can turn my nandroid backup into a flashable zip.
Im sure there is a way...
Does anyine know how to do this?
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
Yes, this is possible. Moved your backup to your pc, date got changed and md5 sum wasn't correct anymore?
You'll have to consider if you want it though. If your files get corrupted, there is no checksum and you'll flash corrupted files (bad...).
Furthermore, the flashable zip will be the size of your nandroid backup, 500 mb or something like that.
But yes, it can be done:
Navigate to your Backup on your pc
extract data.ext4.tar, system.ext4.tar, cache.ext4.tar, sd-ext.(something).tar and .android_secure.vfat.tar to corresponding folders (I recommend using 7-zip for this).
Put these folders together with boot.img in a seperate folder
Now if you know how to write an updater script, write one that formats all your partitions and extracts these folders to their corresponding partitions.
If not, you might want to take a look at this thread: http://forum.xda-developers.com/showthread.php?t=936175
Or you can use the script that I just wrote for you
If you choose to use my script, the filesystems from your nandroid backup have to be ext4. The script formats you partitions as ext4!
If your backup contains rfs format (data.rfs.tar), the backup is from your stock rom. That will make things more complicated. Pm me if that is the case and you want help with that.
Now to use my script, do the following:
Extract the zip file from the attachment
Put the content from the folders from your backup in the foldes from my zip file, together with boot.img from the backup.
Put all the folders (including META-INF) and boot.img in a zip file. (Using 7-zip will give you better compression then default windows)
Sign the zip file (I reccomend the android app zipsigner, or google for auto-sign)
Put the zip file on your sdcard and go in recovery.
Make a backup just in case.
Edit: Do not wipe system before flashing! The script requires busybox. The script will do the wipe. You can wipe data, cache etc. before flashing if you want.
Flash the zip file.
If everything went well, your backup should be restored.
Please note the following:
The filesystem from your backup should be ext4.
You should format your sd-ext to the right format yourself.
Flashing this script without putting your files in will either give an error (because not signed), or wipe your entire phone.
Ofcourse, use my script at your own risk.
I hope this helped. Good practise for me atleast with writing updater-scripts
Thx for the help !
It's a stock backup i'm trieing to do this from.
I'm only doing this to try understand how android works a bit more.
So you say something bad happens when files get corrupted, bad like in hard-brick?
No, not like hardbrick. Chances of files getting corrupted are very slim, and in the worst case your ROM won't boot. (I even doubt that will ever happend.) Just said it because you cannot check checksum with flashable zip, and restoring nandroid normally would.
But since this is stock ROM, my script won't work. The filesystem of your partitions is now (probably) ext4. Samsung stock ROM uses RFS format. And it is not possible to format partitions as RFS in recovery. You'll need to flash a stock ROM with odin first.
Then you can wipe the partitions and restore your backup files. (Not with the script from my previous post).
Sent from my GT-S5660
I formatted it to ext-4 with a zip from recovery, aren't there any rfs formatters? I havr rfs+ext cwm.
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
I formatted it to ext-4 with a zip from recovery, aren't there any rfs formatters? I havr rfs+ext cwm.
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
No, unfortunately not. Ext4 is a widely used linux filesystem, and you can format your partitions easily as ext4 with a zip in recovery.
Since RFS is a samsung specific file system, going back is not that easy.
The only thing thing that can format your phone's partitions back to RFS, is Odin (as far as I know).
You'll have to flash a stock ROM with Odin, then your partitions will be RFS again. (You might have to flash it 2 times if the first time doesn't work properly).
After that, you can flash cwm again (rfs+ext version), and restore your backup.
Stock ROM's can be found on http://www.sammobile.com.
I hope you took a note of your PDA and CSC?
(Otherwise you'll have to download one based on your country, and I think then remove the csc.rfs file, but I'm not sure about that.)
Instructions about flashing with odin can be found here:
http://forum.xda-developers.com/showpost.php?p=16979859&postcount=549
You need the instructions for single package .tar
Links there are dead though, so here you can find links to odin, and GIO_v1.0.ops (you need both), and ROM downloads can be found here too:
http://droidangel.blogspot.nl/2011/05/samsung-galaxy-gio-s5660-original-stock.html
You need to have samsung KIES installed, but not running. (Or at least have drivers installed).
When you successfully flashed back a stock ROM, you can reflash cwm and restore your backup.
What are Pda and csc?
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
What are Pda and csc?
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
CSC is your baseband I believe and PDA is which stock ROM there was on your phone.
When you buyed your phone, there was a stock ROM on it specifically for your country/carrier.
When on stock ROM, you can check all the codes you need by dailling *#1234#. On custom ROM that's not possible.
Check in about phone, under baseband version. This should still be the same as on stock (in my case it is atleast).
The code found here is the same as the code after Phone on this site I sent you in my previous post:
http://droidangel.blogspot.nl/2011/05/samsung-galaxy-gio-s5660-original-stock.html
But this will still leave you with more than 1 option.
There should be no problem flashing a ROM from another country, as long as your device is carrier unlocked (carrier restriction free),
and your phone is S5660 (not S5660M, S5660L or V).
I'd suggest taking note of your baseband version under about phone, and search for a ROM from your country with that code after "Phone:" .
(On sammobile.com or the other site).
As far as I know, your PDA doesn't really matter, CSC does.
When your phone is S5660M etc. , or carrier locked or something like that, I think you have to unpack the tar and remove csc.rfs, but I'm not sure about that.
I was very nervous about flashing my phone so i did EVERYTHING i could do to backup data.
I have 2 nandroid backups and I copied all info from about phone to my pc + all the info third party apps could give me.
So i still have my Pda and csc.
The only thing i dont have is a /efs backup. I think im good.
Im kinda nervous about working with odin too...
Will it reflash recovery too?
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
I was very nervous about flashing my phone so i did EVERYTHING i could do to backup data.
I have 2 nandroid backups and I copied all info from about phone to my pc + all the info third party apps could give me.
So i still have my Pda and csc.
The only thing i dont have is a /efs backup. I think im good.
Im kinda nervous about working with odin too...
Will it reflash recovery too?
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
Flashing stock rom with odin will replace ur custom recovery to stock recovery and also remove root!
Sent from my GT-S5660 using xda app-developers app
you can remove recovery.img inside it.
Sent from my GT-S5660 using xda app-developers app
So back to the original question,
something you flash from recovery basically contains a boot image, a cache thing, a sd-ext thing and a data thing?
That's all there is to it?
That's pretty easy then.
But why does it affect data cache and sd-ext?
Is that only to format it to ext-4? Because it gets wiped right?
Sent from my GT-S5660 using xda app-developers app
Related
So i had a gingerbread rom installed on my epic touch 4 g. I really liked it everything was perfect. I decided however to try an I c s rom.
Before i put the ics rom on my phone i backed up the existing gingerbread rom. when i did so though it did not save it in a zip like i am used to instead for some reason it got backed up into 4 files 2 .tars and 2 other files. i want to go back to my old rom because everythig was perfect however i dont know how. i know i am supposes to use odin or aomething with .tar files but why are there 4 files in the folder i backed up to ? i have attached screen shot so you can see the files. any help appreciated. whrere do i get odin ? How do i use it to restore my old rom and which of these 4 files do i need to use or do i need to use all of them ?
Actually the screen shot not working. the four files in the backup file are
Boot.img
data.ext4.tar
recovery.img and system.ext4.tar
Sent from my SPH-D710 using XDA
How did you back it up? In clockwork mod? If so then all you need to do is go to custom recovery Power +vol up untill you see the first samsung screen then let go then go to backups and restore, restore and just select to restore the one that you want. They have the date that you did the backup on them so that makes it easier finding the one you are looking for.
Thanks for responding. that is how i would usually restore if it was a zip. but becausr it is not a zip and it is a .tar and .img files that way does not work. that is why i think i need to use odin. but i dont.know how to use odin
Sent from my SPH-D710 using XDA
Ok well here is what You do. You need either mobile odin or regular odin. Find the gunslinger kernel frim rogue. Its el29 based. Or if you want to be even safer get the el26 kernel from http://chris41g.devphone.org make sure you are only getting tars do NOT download the zip. Put it in odin under the pda option. Make sure only reboot is checked. Start odin. When it is done it will lock up. Its fine. Push and hold volume up plus power until you get into recovery. Now go and install calkulins format all a couple of times for good measure. Then go to your backup and restore and restore it. I know what happened man. When you looked inside the file you saw tars. Well when it backs up it creates those tars and is able to read only those tars. So cwm does work when restoring a backup. Also never ever use any repacked ics recovery to wipe anything. It will brick eventually. I would always recommend using odin to flash that kernel and do all your stuff from there.
Sent from my BAD A$$ EPIC TOUCH 4G
Also about odin. Phone is only for modems do not use it for roma or kernels. It is a sure way to mess things up. Pda is for your kernel and roms. The only thing I ever have checked is reboot. You will know if odin recognized your phone if the com box is yellow with a number and there is a ding. Btw odin only works with windows I believe. Heimdall is for linux. Never ever pull the cord out during a flash. To use odin your phone must first be in download mode by holding volume down and power until it gives you a warning about flashing custom firmware. Push volume up at that point and you are now in download mode
Sent from my BAD A$$ EPIC TOUCH 4G
towir022 said:
So i had a gingerbread rom installed on my epic touch 4 g. I really liked it everything was perfect. I decided however to try an I c s rom.
Before i put the ics rom on my phone i backed up the existing gingerbread rom. when i did so though it did not save it in a zip like i am used to instead for some reason it got backed up into 4 files 2 .tars and 2 other files. i want to go back to my old rom because everythig was perfect however i dont know how. i know i am supposes to use odin or aomething with .tar files but why are there 4 files in the folder i backed up to ? i have attached screen shot so you can see the files. any help appreciated. whrere do i get odin ? How do i use it to restore my old rom and which of these 4 files do i need to use or do i need to use all of them ?
Actually the screen shot not working. the four files in the backup file are
Boot.img
data.ext4.tar
recovery.img and system.ext4.tar
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
That sounds like a CWM backup to me. They package it just like that. Here is a screenshot of my last backup through CWM.
View attachment 951989
If you see files with those names (or similar) then you've got a CWM backup and should restore it through CWM.
Good luck!
rwilco12 said:
That sounds like a CWM backup to me. They package it just like that. Here is a screenshot of my last backup through CWM.
View attachment 951989
If you see files with those names (or similar) then you've got a CWM backup and should restore it through CWM.
Good luck!
Click to expand...
Click to collapse
Cwm cant restore it because cwm is looking for a zip file and there is none
Sent from my SPH-D710 using XDA
You are trying to restore the wrong way! You are trying to install from zip versus using a recovery image. Go to 'Restore' in recovery NOT install from zip. Here is a vid I just found from Qbking77 http://youtu.be/jZRnH-_XZmM go to marker 6:30 and you will see the back and restore menu choose advanced restore. From there you'll select your options (usually all) and the file locations (usually external SD card) in the sdcard or clockworkmod directory.
leaderbuilder said:
You are trying to restore the wrong way! You are trying to install from zip versus using a recovery image. Go to 'Restore' in recovery NOT install from zip. Here is a vid I just found from Qbking77 http://youtu.be/jZRnH-_XZmM go to marker 6:30 and you will see the back and restore menu choose advanced restore. From there you'll select your options (usually all) and the file locations (usually external SD card) in the sdcard or clockworkmod directory.
Click to expand...
Click to collapse
Beat me to it!
towir022 said:
Cwm cant restore it because cwm is looking for a zip file and there is none
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
Here's a link for some very basic info about CWM (it also has some screenshots from a CWM build, out may not be the same as yours but is close).
http://forum.xda-developers.com/wiki/ClockworkMod_Recovery
I'd strongly suggest you read this and everything else you can find about CWM, your phone, etc before you find yourself with a beautiful brick.
And it might not hurt to tell all the wonderful people here trying to help you avoid bricking your phone how thankful you are for their help...
I hit yalls thanks, because this **** feels y'all were no help.
Just poppin in for a short. Been hela busy.
Indrid Cole said:
I hit yalls thanks, because this **** feels y'all were no help.
Just poppin in for a short. Been hela busy.
Click to expand...
Click to collapse
Lol you da man! Thanks!
I thanked everyone have no fear it just took a minute
Sent from my Nook Tablet using Tapatalk
I was trying to install a theme using metamorph, but when I was about to apply popup came out saying for precaution use nandroid backup.
My question is, is the nandroid and titanium are same?
Secondly when I took the back up of my user app and system data it was located in the internal sdcard, if in case anything goes wrong will I be able to restore it? I mean formatting will wipe my data or formatting is not required when we suffer problem due to metamorph?
Sent from my GT-I9100 using xda app-developers app
shantanuparadkar said:
I was trying to install a theme using metamorph, but when I was about to apply popup came out saying for precaution use nandroid backup.
My question is, is the nandroid and titanium are same?
Secondly when I took the back up of my user app and system data it was located in the internal sdcard, if in case anything goes wrong will I be able to restore it? I mean formatting will wipe my data or formatting is not required when we suffer problem due to metamorph?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Firstly:
Titanium Backup only backups your apps and their data.
A Nandroid Backup backups your ENTIRE ROM, EVERYTHING. You can find it in CWM Recovery under backup and restore > backup to external sdcard or backup.
SIDE NOTE: You can use Titanium Backup to restore apps and their data from Nandroid backups.
Secondly:
Wiping user data only formats /data, /cache, etc. It does NOT format the internal or external sdcard.
If anything should go wrong, Titanium backup will only help if apps are modded, not framework-res.apk or SystemUI.apk.
Make a Nandroid backup and if something goes wrong, simply restore it and everything will be back to normal.
Thanks a lot, app from the market will do? Its called online nandroid backup, is it the one?
confirming it Coz last time I installed busy box from market which I shouldn't have
Sent from my GT-I9100 using xda app-developers app
shantanuparadkar said:
Thanks a lot, app from the market will do? Its called online nandroid backup, is it the one?
confirming it Coz last time I installed busy box from market which I shouldn't have
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
If you want you can try it, but rather make one from CWM Recovery and afterwards try the app (just in case).
BTW which ROM are you using? Do you have CWM Recovery installed? Press [VOLUME_UP] + [POWER] + [HOME] and hold them in until you see CWM Recovery.
Usually BusyBox comes pre-installed with custom ROMs.
br.ruan said:
If you want you can try it, but rather make one from CWM Recovery and afterwards try the app (just in case).
BTW which ROM are you using? Do you have CWM Recovery installed? Press [VOLUME_UP] + [POWER] + [HOME] and hold them in until you see CWM Recovery.
Usually BusyBox comes pre-installed with custom ROMs.
Click to expand...
Click to collapse
I have not installed any ROM, I have just rooted the phone. To be frank I am scared of bricking my phone therefore I have sticked with just rooting.
I don't know much about CWM recovery. But I have rooted using the methods specified in below link
http://forum.xda-developers.com/showthread.php?t=1746794
Sent from my GT-I9100 using xda app-developers app
shantanuparadkar said:
I have not installed any ROM, I have just rooted the phone. To be frank I am scared of bricking my phone therefore I have sticked with just rooting.
I don't know much about CWM recovery. But I have rooted using the methods specified in below link
http://forum.xda-developers.com/showthread.php?t=1746794
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Almost the only way you can brick your phone is (1) interrupt it while flashing something, specifically a ROM or kernel (like force reset it it while in progress) or (2) do something that is known to brick devices (You will see warnings around and about the forum). In other words you really can only blame yourself for a bricked phone :fingers-crossed:
NOTE: The SuperBrick bug was also in stock firmware from Samsung - that's where it came from if I remember correctly...
Flashing CWM 6 will not (well shouldn't anyway) brick your device, provided you don't fall into case 1 above (like I did a while back ).
If you want to stay in your current Samsung degraded ROM (When you flash a Custom ROM, you will understand what I'm talking about), I guess you can use the app to make a Nandroid backup. It does, however, require BusyBox to work. Do you have BusyBox installed?; You mentioned that you have but shouldn't have earlier, but not that you still have it . If not then download this app and install it.
WHAT I RECOMMEND:
If you choose to go Custom, check my signature for the link to westcript's Resurrection Remix's (ROM) thread. There you will got most (if not all) you will ever need in one ROM .
NOTE: To flash a custom ROM you WILL need CWM. You can get it by flashing Siyah Kernel (In signature) via Odin. Also note that this would start the download counter so get yourself a usb JIG and the old i9100 bootloader.
If you want to be safe from the SuperBrick bug, flash Siyah Kernel: "no CAP_ERASE, no hardbrick" (from 4.0.1)
br.ruan said:
Almost the only way you can brick your phone is (1) interrupt it while flashing something, specifically a ROM or kernel (like force reset it it while in progress) or (2) do something that is known to brick devices (You will see warnings around and about the forum). In other words you really can only blame yourself for a bricked phone :fingers-crossed:
NOTE: The SuperBrick bug was also in stock firmware from Samsung - that's where it came from if I remember correctly...
Flashing CWM 6 will not (well shouldn't anyway) brick your device, provided you don't fall into case 1 above (like I did a while back ).
If you want to stay in your current Samsung degraded ROM (When you flash a Custom ROM, you will understand what I'm talking about), I guess you can use the app to make a Nandroid backup. It does, however, require BusyBox to work. Do you have BusyBox installed?; You mentioned that you have but shouldn't have earlier, but not that you still have it . If not then download this app and install it.
WHAT I RECOMMEND:
If you choose to go Custom, check my signature for the link to westcript's Resurrection Remix's (ROM) thread. There you will got most (if not all) you will ever need in one ROM .
NOTE: To flash a custom ROM you WILL need CWM. You can get it by flashing Siyah Kernel (In signature) via Odin. Also note that this would start the download counter so get yourself a usb JIG and the old i9100 bootloader.
If you want to be safe from the SuperBrick bug, flash Siyah Kernel: "no CAP_ERASE, no hardbrick" (from 4.0.1)
Click to expand...
Click to collapse
I have busybox installed. mostly I'll flash the ROM but I have one question how to debrick the phone if in case I bricked it?
actually m confused now in kernels, ROMs, CWM. Can u tell me in which order I should instal/flash it?
Sent from my GT-I9100 using xda app-developers app
What is usb jig and old i9100 bootloader?
Sent from my GT-I9100 using xda app-developers app
shantanuparadkar said:
What is usb jig and old i9100 bootloader?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1402286
shantanuparadkar said:
I have busybox installed. mostly I'll flash the ROM but I have one question how to debrick the phone if in case I bricked it?
actually m confused now in kernels, ROMs, CWM. Can u tell me in which order I should instal/flash it?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Apologies for the late reply. I've been away for the weekend so I don't have my computer at hand (and my phone is whith a friend.) I'll be home tonight and I'll write a guide for you.
One thing, are you using ICS or GB?
Don't worry about brinking your device - you have to really mess up to get a hard brick.
These few times I have use a BB to write on the forum will ensure my imunity from buying one.
br.ruan said:
One thing, are you using ICS or GB?
Click to expand...
Click to collapse
M using ICS.
Thank you once again for ur reply.
Sent from my GT-I9100 using xda app-developers app
This is for flashing Siyah Kernel. You can flash other kernels later if you want via CWM Recovery.
Hope it's clear enough - If you have any questions just ask
Please first read the guide thoroughly and download the necessary files beforehand (the links come as they are needed in the guide).
Download Odin v.1.85
Extract the package and execute Odin3 v1.85.exe
DO NOT change any setting and ensure that "Re-partition" is DESELECTED
Download Siyah Kernel for i9100 (Odin). You can find the link under "SiyahKernel S2-v..." named "DOWNLOAD TAR (for Odin)"
CAUTION: Please do not not download and flash the S3 kernel.
Back to Odin - Click on PDA and select the .tar file (SiyahKernel) you've downloaded and click OK
Put your i9100 device into 'Download Mode' by holding [POWER], [VOLUME_DOWN] and [HOME] and hold until you see the warning. Continue by pressing [VOLUME_UP]
Connect your device with the USB cable to your PC. You should see one of the boxes in Odin light up.
NOTE: If you do not see anything, ensure you have the latest drivers installed by installing the latest version of Samsung Kies
Now that everything is ready, click on "Start" and wait for it to finish.
CAUTION: DO NOT UNPLUG THE CABLE OR INTERRUPT THE DOWNLOAD!!!!!!!
Reboot. If it boots completely, congratulations! The part where you can screw up most easily is over
Download The latest edition of Resurrection Remix and move it to your internal/externel SDcard.
Reboot your device into CWM Recovery by holding [POWER], [VOLUME_UP] and [HOME] and hold until you see the menu.
Make a Nandroid backup under backup and restore - just to be safe
NOTE: If you don't want to install a custom ROM, you can stop here.
After the LOOONG wait for the backup you have to wipe data/factory reset (required to continue.)
NOTE: This will delete all your applications and application/configuration data (SMS's, Contacts(if you have google account, they should be synced and will be automatically restored),etc.) on the device. (NO DATA from either of your SDcards will be deleted)
Go to install zip from sdcard > choose zip from (internal) sdcard and select the RR package .zip you downloaded.
Confirm your selection and configure your installation of RR in Aroma installer. After RR is installed reboot the device.
That is it! Enjoy playing with the AOKP features already added and those soon to follow
If you want to remove the "YellowTriangle" at boot and reset the download counter using a USB JIG, download this old bootloader and flash it in the same way you did Siyah Kernel (also in PDA).
That should be all; will update whenever I remember something. Enjoy!!!
Thanks a lot. I'll mostly do it in the weekend (busy in my studies).
Thanks once again
Sent from my GT-I9100 using xda app-developers app
is it ok if i follow the above procedure with my (CURRENTLY ROOTED) phone??
i donwloaded the latest version of siyah kernel,is it ok?
i am almost ready to follow the procedure.
just check whether the link for resurrection remix link is right?
http://d-h.st/cqA
Yes that is the link for 3.0.6: http://d-h.st/cqA
I did write it for you, didn't I
br.ruan said:
Yes that is the link for 3.0.6: http://d-h.st/cqA
I did write it for you, didn't I
Click to expand...
Click to collapse
Thank you so very much.
Will update u once m done with it
Sent from my GT-I9100 using xda app-developers app
hey m through with most of the part (ie. till point no. 9), currently m downloading the resurrection remix. by the time u reply it would be finish.
will it wipe off all my data automatically when i "backup and restore" if not how to make it??
i do have google account but how will it sync my msges and contacts?? or do i have to make backup from any other application.
shantanuparadkar said:
hey m through with most of the part (ie. till point no. 9), currently m downloading the resurrection remix. by the time u reply it would be finish.
will it wipe off all my data automatically when i "backup and restore" if not how to make it??
i do have google account but how will it sync my msges and contacts?? or do i have to make backup from any other application.
Click to expand...
Click to collapse
Making a Nandroid backup will not wipe /data automatically; you have to "wipe data/factory reset" to do it.
Use GO Backup to backup your messages, apps and their data, etc. before you wipe the /data partition.
Google automatically keeps your contacts synced (see Settings > Accounts > Google and tap on your email address to see what is synced), but not your messages. Chances are your contacts are already backed up, but don't worry; GO Backup will do it in anyway.
thanks a lot......
m going through those process.
one more thing (may be the last thing in this thread)
how to restore through nandroid backup? by using titanium backup?
I did a backup before and flashed a rom. Then i flashed another rom. I cant seem to restore through recovery. Says it cant find anything.
Sent from my SGH-T999 using xda app-developers app
gyggyty said:
I did a backup before and flashed a rom. Then i flashed another rom. I cant seem to restore through recovery. Says it cant find anything.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
If you wiped the data then it was erased... formatted the partition, same thing. It's gone.
Lesson learned....
Next time, if you make a backup CWM or otherwise, before doing any ROM installs, copy the backup to the external SD Card and/or your computer. That way, if you have to, you can copy the files back to the phone and recover the previous state. I am not really sure that the CWM backup does the modem partition, cause I thought my modem was a different version and restoring did not change the version to what I thought it would be. Don't hold me to the fire on that, like I said, I may be wrong on that....
Good Luck, & Aloha!
Thanks for the lesson. Dont know why CWM didnt save the backup to external in the first place. But there is still about 1gb data missing for some reason.
Based on @ninekaw9 's original script from here
http://forum.xda-developers.com/showthread.php?p=52989641
I ported this for the N7105 and T889
Please read the post fully before trying this.
This file basically reduces the space assigned to cache and preload partitions and reassigns that extra space to your internal sdcard.
What is preload?
Used for storing Samsung's pre-loaded bloatwares like some wallpapers and "Wonders of Nature" video that you find on your phone after a factory reset or after buying a new phone.
Reducing the cache partition:
Cache basically stores the apps from Google play while they are downloading and the rest of it is used for storing OTA updates.
The OTA updates from Samsung and big in size and hence cache has 1GB of size to store those big updates.
So basically I reduced the cache size from 1GB to 100mb because Kitkat is the last update for Note2 afaik and the phone would be out of OTA service after Kitkat.
Won't reducing cache size break some other things?
No. It won't. As I have still kept 100mb in the cache that would be fine for playstore downloads.
Can I return to stock partition size after doing this?
Yes. Find the .pit file for your device and flash stock firmware through odin alongwith the pit file.
Or if you want a flashable zip for returning to stock partitions see post #2
What you need to have to Re-partiton
Philz recovery installed (latest version)for t889.
Note that TWRP WONT WORK as it doesn't have some binaries for partitioning.
Nandroid backup or a rom zip file in your external sdcard is a must.
Backup your internal sdcard as it will be formatted in the process.
Procedure :
1.Boot into philz recovery
2.Flash the file which is linked here.
Partition_N7105/T889_16GB_model_only
After flashing the recovery will automatically reboot.
3.Next you will see some mounting errors. Don't worry. Just go to mounts and storage and do this
Format /data
Format /system
Format /sdcard0
Format /preload
Please don't format /boot /modem or /sdcard1.
4. So after formatting it's all done. Now you can restore nandroid or flash a new rom.
5. If you are having issue restoring your nandroid backup then read this post and do exactly what he says
http://forum.xda-developers.com/showthread.php?p=53207492
Note: You can still flash bootloaders and modems from odin after doing this re-partioning. No need to flash with pit file.
However if you want to flash a full rom from odin then pit file is required.
All credits to @ninekaw9 and @forumber2 for their original scripts. You guys are awesome ?
Sent from my GT-N7100 using Tapatalk
Reverting back to stock partitions is easier now.
Just flash this zip
https://www.dropbox.com/s/8fki6jyi3bpr1ww/Stock_Partitions_N7105_T889.zip
Sent from my GT-N7100 using Tapatalk
Before
Sent from my GT-N7105 using XDA Premium 4 mobile app
After
Sent from my GT-N7105 using XDA Premium 4 mobile app
adamcooks said:
After
Sent from my GT-N7105 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Are you on 4.3 bootloader?
On 4.1.2 bootloader I get 11.97GB
Are you running AOSP? Did you use the zip file for AOSP from the second post?
I run w03slimkat, the AOSP zip also reduces system partition to 1g
I don't know if it matters, I am on 4.1 bl.
smeet.somaiya said:
For AOSP users only.
System slimmed down to 1Gb so you get a total of 14.2GB of user available space on your phone.
Download here
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
Sent from my GT-N7105 using XDA Premium 4 mobile app
adamcooks said:
Are you running AOSP? Did you use the zip file for AOSP from the second post?
I run w03slimkat, the AOSP zip also reduces system partition to 1g
I don't know if it matters, I am on 4.1 bl.
Sent from my GT-N7105 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Gotcha. Looked at your screen again and definate AOSP rom. I seen about the other partition for AOSP download but it would be too small for touchwiz base.
Thanks though, now I realized how you got more space.
Sorry guys, forgot to add the AOSP thing here. But it's there on n7105 thread. I will add it here when I get time.
By the way it doesn't matter what bootloader you have. The partitions and their name and size remain the same irrespective of the bootloader.
Sent from my GT-N7100 using Tapatalk
Outstanding work. Thank You.
Sent from my GT-N7105 using Tapatalk 2
Hi noob here I flashed the repartition zip a few months ago and recently I was messing with my phone trying to convert to f2fs and got stuck in a recovery bootloop so I had to Odin back 2 stock but forgot about the pit file I needed when flashing with Odin and now no matter what I do I can't get /cache to mount at all anymore. I am using twrp 2.8.1 as current recovery at the time I was using Phil's. Any ideas on how I can get /cache to mount?
Any help would b appreciated.
I was thinking of flashing the stock partition zip but I don't think it will do anything since /cache is not mounted.
ntran239 said:
Hi noob here I flashed the repartition zip a few months ago and recently I was messing with my phone trying to convert to f2fs and got stuck in a recovery bootloop so I had to Odin back 2 stock but forgot about the pit file I needed when flashing with Odin and now no matter what I do I can't get /cache to mount at all anymore. I am using twrp 2.8.1 as current recovery at the time I was using Phil's. Any ideas on how I can get /cache to mount?
Any help would b appreciated.
I was thinking of flashing the stock partition zip but I don't think it will do anything since /cache is not mounted.
Click to expand...
Click to collapse
You are going to have to ODIN all the way back to a rooted stock.
BRANDENDEUCE said:
You are going to have to ODIN all the way back to a rooted stock.
Click to expand...
Click to collapse
Hi thanks for reply i did odin back using a a stock injectected rom by mr robinson. after i did that it would boot into recovery like usual and i would try to factory reset because of mounting errors but even after factory reset i still get the same errors. I then would install a twrp via odin and flashed a backup i had was the only way to get phone working but /cache still not able to mount. I honostly dont know what I am doing wrong.
Guys, i have a problem:crying:, i created a partition on my phone but i don't know how to remove it. The partition I created is in Internal Storage. When I Install a rom and load my apps, its says in the storage menu that i have 2 internal storage. first storage is where my rom is installed and where my apps are being installed and the second storage(both storage are internal) is accessible but it seems to act like a external storage. i would like them to me merged together as one storage.
I'm using SGT-989 T-Mobile Galaxy S2
Rom is [4.4.4] Stable CyanogenMod 11 [December 1, 2014] by Sultanxda ------ just in case if the rom has to do with anything
Thanks you for your support guys:good:
You're going to want to search the forum for the .pit file for your model. Read ALL the instructions, as messing with the partitions can really mess you up. Flashing it in Odin should restore your partitions, then you just flash a rom.
You might also try just flashing back to stock. That might fix your partitions as well. I'm not too sure about the T989, if that'll work or not. I had a different phone once that would fix the partitions when flashing to stock, you might get lucky.
As always, the search tool is your friend.
Sent from my SAMSUNG-SGH-T989 using XDA Free mobile app
Is it any .pit file that's just for this device? Or a special .pit file?
Sent from my SAMSUNG-SGH-T989 using XDA Free mobile app
Make sure it's for your phone model. The .pit is the partition information table. It contains the info for your partitions (how many, how large they are, etc.)
Try using Odin to flash back to the factory image, search the sticky in the development section for instructions. The factory image may or may not have that information built into it. If you flash factory and that doesn't fix it, you'll need to find the pit file and flash it in Odin to get your partitions back the way they're supposed to be. I would then recommend going back to factory before trying any more custom roms, just to make sure you're starting with a clean slate.
Sent from my SAMSUNG-SGH-T989 using XDA Free mobile app
I think i know the problem
DarkMatter_74 said:
Make sure it's for your phone model. The .pit is the partition information table. It contains the info for your partitions (how many, how large they are, etc.)
Try using Odin to flash back to the factory image, search the sticky in the development section for instructions. The factory image may or may not have that information built into it. If you flash factory and that doesn't fix it, you'll need to find the pit file and flash it in Odin to get your partitions back the way they're supposed to be. I would then recommend going back to factory before trying any more custom roms, just to make sure you're starting with a clean slate.
Sent from my SAMSUNG-SGH-T989 using XDA Free mobile app
Click to expand...
Click to collapse
Well thanks for the help. I've restored to the factory image and it put back the partition. But when i installed the custom rom, it created two internal partitions. Its the roms fault.