Questions about .pit file - Galaxy Note II Q&A, Help & Troubleshooting

OK so currently I'm using AOSB with AGNi kernel. System partition is around 2gb, but I'm currently using about 600mb. I figured I could use a pit file and edit the partitions but I'm having some doubts. Hope somebody can clear my doubts. So, here goes the questions.
1) I have the pit file, it there a way for me to edit it easily?
2) Instructions on flashing it? Are there anything else I need other than the pit file?
A) Can I use mobile ODIN to flash it?
3) from my research, I will lose my data. I can make a backup and restore it without any issues right?
4) will there be any stability issues?
5) What partitions can I modify and how much memory can I remove from each partitions for my user memory?
6) are there anything that I have to be careful about when doing this?
Thanks in advance

Related

Can we format the whole HardDrive and Start from scratch?

In Windows, we can format the whole hard drive and install a new fresh system. Can we do the same to our Samsung Galaxy S3 - fully format the HD clean and install ROM back?
I test out many JB ROMs, Kernels, & apps - now my phone is full of mess. My phone starts to have many problems, force closes and freezes.
My T-mo S3's IMEI was loss (w/o any backup) - so I injected IMEI back but the data kept trapped in EDGE and suffered constant low signal.
How can I restore my phone to the original condition without any previous traces or residual file?
Greatly appreciate for your help in advance.
Yes u can just use the Super wipe. To find it look into exquizt rom there is a dl for it. But make surebthat u back up everything u need or it will b all gone
Sent from my SGH-T999 using xda app-developers app
I come across his thread on SuperWipe - erase everything in Nand - sound intense: http://forum.xda-developers.com/showthread.php?t=1704758
What do I have to install if everything in NAND is gone? Kernel, ROM, Radio Modem... what else if crucial for reinstalling?
Thanks
Uhm, prolly flash a completely bloated stock firmware via ODIN.
What option do I have beside getting myself a bloated stock firmware? Can I just flash a JB AOKP & Modem? What else am I missing for a phone to properly function?
Thanks
Not sure if that super wipe is compatible with our phones, though. I'd format system/data/cache and wipe sdcard (internal) and just flash something else before I'd try something that hasn't been tested on our devices.
Thanks theexel. My phone has so many useless files all over the place - I want to do some house cleaning and get a fresh start. I have been doing "format system/data/cache and wipe sdcard (internal)" every time I flash. Just want to get back to once it was - everything is clean & well structured.
superlex said:
In Windows, we can format the whole hard drive and install a new fresh system. Can we do the same to our Samsung Galaxy S3 - fully format the HD clean and install ROM back?
I test out many JB ROMs, Kernels, & apps - now my phone is full of mess. My phone starts to have many problems, force closes and freezes.
My T-mo S3's IMEI was loss (w/o any backup) - so I injected IMEI back but the data kept trapped in EDGE and suffered constant low signal.
How can I restore my phone to the original condition without any previous traces or residual file?
Greatly appreciate for your help in advance.
Click to expand...
Click to collapse
You can't really compare a windows partition to an android ROM. Windows stores everything, data, system files, etc on the same partition. Not only that, but when a Windows program installs itself, it copies files to system directories throughout the drive and to the registry.
When you uninstall a Windows program, it's very possible that not all of those files and registry entries are deleted, which is why the drive gets cluttered and needs "spring cleaning" every once in a while.
Android works differently. It has separate partitions for System files and Data files. If you don't manually mess with anything in the /system partition, then it should still be the same as what came with whatever ROM you most recently installed. Any apps or data on your phone is stored in the /data partition only.
If you think your phone needs to be started over from scratch, then the best thing to do is delete the /system partition and the /data partition and reinstall whatever ROM you want to use. The Kernel will automatically be erased and reinstalled whenever you install a new ROM. Anything beyond /system and /data is overkill because all the other stuff gets erased automatically anyway when you install a new ROM.
Good luck.

[Q] Are there any way to pull a .pit file?

I tried to search everywhere but couldn't find it.
Here is what happened. Got the note 2, used root injected stock odin file with "nand erase all"
After the reboot, went into recovery and wiped everything out.
Get into the phone, no baseband, no storage left for internal sd, no IMEI, so it's pretty much bricked.
I tried to use the boot.img file to retrieve the IMEI but it seems to me that the partition is messed up.
So I am trying to re-partition the phone with the pit file, but I could not find any on the web.
I do have a spare note 2, which my wife is currently using, and wondering if there'a way to pull the pit file from the phone so I can re-partition the phone and see if that'll work..
any help would be appreciated.
Thanks in advance.

[Q] Many questions (CWM, ROMs)

Hi,
I'm new here and I'd like to install a new ROM on my Gio but I want to make sure I know what I'm doing before trying something and bricking my phone. :angel:
ClockWorkMod
I installed CWM v5.2.0.6 (followed the instructions here). Is this ok, or do I need to install v5.0.2.7? And if I do need a newer version, is there a way to get an update or do I have to follow the same steps as before?
1.Download the CWM 5.0 v2 and copy to the Root (not in any folder) of your SD card
2. Put your phone in recovery Mode(press: Home button + Power button toghether)
3. In recovery mode, select the downloaded file from SD-card(Use Volume keys to navigate and home button for enter).
4. Search for the root gb updated.zip file on your SD-card
5. Run the update
6. Reboot
Click to expand...
Click to collapse
I tried creating a backup with the CWM version I have, but I get this error: "Can't mount /system".
CWM does create a folder in sdcard/ clockworkmod/ backup/ date, but it only contains the following files:
recovery.img and boot.img.
However, this post says I should actually have more files in the backup folder:
.android_secure.vfat.tar ,boot.img , cache.ext4.tar , data.ext4.tar , nandroid.md5 , recovery.img, system.ext4.tar.
Is this because of my CWM version? Or maybe because I still have the operating system that came with my device (+updates)?
What I really want to know is: can I rely on this backup, will it work?
ROMs
I want to install CM10.1.5 from here, but I have many questions and I don't really know where to look for answers. (Sorry, I really am a complete noob.)
What's the difference between androidarmv6 jenkins build and mardon build? And what's the difference between the 3 versions? Can I just install the Version with CM-Superuser and not worry about it?
Should the updates be installed via CWM - apply update from SDcard? What about the additions - CWM --> install zip from SDcard?
How can I install extras if they are "not CWM flashable"?
What happens to my apps when I install a new ROM? Do I have to install them all again? Is all data lost? Or will they all be restored from my google account and the SD card or something like that?
Finally, how can I use the ext2 partition in my SDcard to install apps? Is this function included in the ROM? Or do I need to install something else? a2sd darktremor? If yes, how (I find the instructions here confusing and overwhelming, and the post is old, so probably outdated)? Or should I use the "Link2SD" addition to the ROM?
I'm sorry for asking so much, but I'm feeling kind of lost.
Thanks in advance.
Anyone?
I've continued trying to figure things out when I have time. I'll post what I find in this thread, in case someone else comes here looking for answers to similar doubts/problems.
In trying to understand what's going on with ClockWorkMod Recovery, I found this very useful link:
wwwDOTtechbiiDOTcom / cwm-recovery-cant-mount-system-error-solution-how-to/
(sorry for the DOTs and spaces, can't post outside links yet)
CWM Recovery – Can’t Mount System Error Solution [How To]
(...)
The error is an expected one and happens generally when you are trying to backup a stock ROM using the clock work mod recovery. Please, note that you can’t do a completed nandroid backup of a stock firmwares. So, just install any custom ROM and then you can backup and restore anytime.
Click to expand...
Click to collapse
If I understood correctly, the best (only?) way to return to stock ROM is to install Odin or similar firmware flashing tool and to get the stock firmware from sites like sammobile.com and sampro.pl. However, it also says that not all firmwares might be available and I haven't looked more into it all of this yet.
Did you root your phone yet?
That should solve the problem from the can't mount system, data, etc
If you need more information, then look at this post http://forum.xda-developers.com/showthread.php?t=1397120
HerroYou said:
Did you root your phone yet?
That should solve the problem from the can't mount system, data, etc
If you need more information, then look at this post http://forum.xda-developers.com/showthread.php?t=1397120
Click to expand...
Click to collapse
Yes, I used the instructions there to root my phone and install CWM (v5.0.2.6), but that thread is 2 years old, so I'm afraid it won't be up to date in relation to certain things. For example, I did create an ext2 partition on my SD card using those instructions, but I found an easier way to move apps from my phone to the SDcard (using the link2SD app, available on Google Play). The information about ROMs is also not up to date.
If you want to install a custom rom just
-wipe data factory reset
-wipe cache partition
-advance>wipe dalvik cache
-install zip from sdcard
-reboot
NOTE: the zip is the rom
HerroYou said:
If you want to install a custom rom just
-wipe data factory reset
-wipe cache partition
-advance>wipe dalvik cache
-install zip from sdcard
-reboot
NOTE: the zip is the rom
Click to expand...
Click to collapse
Thank you.
My main concern at the moment is how to restore my original ROM if something should go wrong, though. I've found some interesting information in this thread but I've been busy this week and I'll need to go back and read it all with more attention before I try something.
Download ODIN 4.42 and GIO ops and a sotckrom MD5 file then put it into the odin and put your phone into recovery mdoe and plug it into your computer. Then click start
you have to put your phone in downloadmode to flash with odin as far as i know,but i have an other question;
can you use heimdall with the samsung galaxy gio
I am trying to flash a new recovery on my samsung galaxy gio with ODIN after it is bricked flashing tass- 6.0.4.5.zip(this cwm seems for the mini!!!) is this possible and if so,which one can?and how to do that...
thanks in advance
Yes it is possible and you need ODIN 4.42, GiPS and a Stock Rom extracted out of the zip.
Here is a video to help you because I am too lazy to explain
http://www.youtube.com/watch?v=euZqtaAMe5c

Reparation For more storage.

So I've been looking into possibly trying to re partition my att i747 galaxy s3 and I found something similar for the 19300 here http://forum.xda-developers.com/galaxy-s3/development/guide-extra-1-5-gb-user-data-t2762594 I don't think it would be too hard to replicate what the developer did here, it would just have to be translated to our directories no? I've been looking into it and personally for me cache is way too big. Out of 810 mb I'm using 17.38mb... So that could free up around maybe 700 more mb of storage that could go to the data partition. Here is text file with the stock I747 partition files and the stock I9300 partitions and the after editing partitions as well. View attachment partitions.txt
So I may have done it and in NO WAY SHOULD ANYONE FLASH THIS. This is what the re-partition flash from recovery should be. Only problem is the way we have our partition table setup cache is after userdata so I'm not sure how to recover the reparted space from cache into userdata. The file to check is the update binary of this zip file View attachment repart_16GB_SGH-I747_CWM.zip. I say again YOU SHOULD NOT FLASH THIS. This is a test file to see if I did everything correctly and for people to look into how to reclaim the unparted cache space into userdata partition.

[FLASHABLE_SCRIPT][UPDATED_ERRORS FIXED] Increase system space to 1.2/2GB [15/7/2017]

-By following this you can can increase /system space from default 800MB to 1.2GB/2GB
-You can flash gapps on CM ROMs without insufficient space issue.
-You can flash regular MIUI ROMs too,without any issue.
Statutory warning
*Repartition can kill your phone forever if anything goes wrong,so proceed with caution (and make sure you have at least 30% battery)
*This process would format your internal sdcard,backup its contents
*I'm not responsible If your phone dies during this procedure under any circumstances beyond control
Prerequisites:
1)Redmi 1s partition script_system space 1.2GB.zip/2GB.zip
2)Parted
3)Twrp v3.0.2-1.zip
4)Download and copy all these files to external sdcard
Procedure:
1)Flash Twrp recovery(incase if aren't already using it).
2)Boot in to Twrp--->Advanced--->File manager--->Browse to the location of file "parted"--->Select "parted"--->Copy File--->/sbin.
3)Now using Twrp File manager browse /sbin--->parted--->select parted--->chmod 755.
4)You can also use "aroma file manager" instead of Twrp file manager for copying "parted" to "/sbin" and changing it's permissions to 755.
5)In Twrp flash "Redmi 1s partition script_system space 1.2GB.zip/2GB.zip" and wait for the script to finish execution(recovery will reboot automatically once this process finishes).
6)In Twrp--->Wipe--->Advanced wipe--->Mark in "Dalvik/ART Cache"__"Cache"__"System"__"Data"__"Internal Storage"--->Swipe to wipe.
7)Reboot recovery.
8)Install your ROM(don't flash gapps now).
9)Back again to Twrp start screen select "Wipe"-->Advanced wipe-->select/mark "System"-->press "Repair or change file system(notice that size hasn't increased to 1.2GB/2GB)-->Resize file system.
10)Back(though size of partition appears unchanged, its actually increased to 1.2GB)-->Back>select/mark"System"-->Repair or change file system-->Notice size of partition increased.
10)Back to Twrp start screen and flash gapps,that's it.
Reset to default partition:
1)I am also giving link for flashabe script file "Reset to default partition.zip" for restoring default partition sizes.
2)Boot in to Twrp--->Advanced--->File manager--->Browse to the location of file "parted"--->Select "parted"--->Copy File--->/sbin.
3)Now using Twrp File manager browse /sbin--->parted--->select parted--->chmod 755.
4)You can also use "aroma file manager" instead of Twrp file manage for copying "parted" to "/sbin" and changing it's permissions to 755.
5)In Twrp flash "Reset to default partition.zip" and wait for the script to finish execution(recovery will reboot automatically once this process finishes).
6)In Twrp--->Wipe--->Advanced wipe--->Mark in "Dalvik/ART Cache"__"Cache"__"System"__"Data"__"Internal Storage"--->Swipe to wipe.
7)Reboot recovery.
8)that's it you are back to default partition.
PS:
1.Need for "Resizing System partition"(step 9) comes only with CM14.1(haven't tried other CM versions or other custom roms) no need to do that if you are flasing MIUI ROMs(i,e you can skip step 9 if you are flashing MIUI ROMs)
2.If you still need more System space or want to further modify partition table(only if you know what you are doing),you can edit "update-binary" file inside the zip as per your needs.
Credits:
1)forumber2_ Samsung Galaxy S III.
2)slst_for his valuable input.
3)owaisnaim & fefifofum Twrp for redmi 1s.
Downloads:
1)parted:https://drive.google.com/folderview?id=0B6_hhjS3nx4IU05yLVc2Mk9uOEk
2)Repartition script Redmi 1s_1.2GB system space:https://drive.google.com/folderview?id=0B6_hhjS3nx4IRkJFZzAtMjZEa2s
3)Repartition script Redmi 1s_2GB system space:https://drive.google.com/folderview?id=0B6_hhjS3nx4IRXlDZUU1cEJ3Smc
4)Reset to default partition:https://drive.google.com/folderview?id=0B6_hhjS3nx4IeGtXb0liazdLWVk
5)TWRP 3.0.2-1.zip:https://drive.google.com/folderview?id=0B6_hhjS3nx4IdzFHXzdfNXVCYm8
good work mate
Great tutorial! Have a some questions:
1. After successfully doing this, If I decided to full clean wipe system, data, cache, dalvik cache, internal storage, and format data, the size will be reset? Do I need to do all the steps again?
2. If I decided to go back in default partition size I just flash that to reset all the steps? Or there will be a steps to reset all I've done?
Thank you.
Sent from my HM 1SW using Tapatalk
vhick said:
Great tutorial! Have a some questions:
1. After successfully doing this, If I decided to full clean wipe system, data, cache, dalvik cache, internal storage, and format data, the size will be reset? Do I need to do all the steps again?
2. If I decided to go back in default partition size I just flash that to reset all the steps? Or there will be a steps to reset all I've done?
Thank you.
Sent from my HM 1SW using Tapatalk
Click to expand...
Click to collapse
no you just have to go to
wipe >mark on system>click repartition
go back you can see system size 1.2gb
after doing this can i flash latest twrp ?
vhick said:
Great tutorial! Have a some questions:
1. After successfully doing this, If I decided to full clean wipe system, data, cache, dalvik cache, internal storage, and format data, the size will be reset? Do I need to do all the steps again?
2. If I decided to go back in default partition size I just flash that to reset all the steps? Or there will be a steps to reset all I've done?
Thank you.
Sent from my HM 1SW using Tapatalk
Click to expand...
Click to collapse
1.You can do all the wiping as usual, size of partition wil stay as it is and won't get reset,but if you're flashing current version of cm14.1 again you need to resize "System" partition before flashing gapps.
2.You additionally need to change "System" partition too to F2FS and than to EXT4(like you do with "Data" partition),in case you're going back to default partition.
I forgot to mention point 2 in OP,I will now add this there
vinayak.ghimire said:
after doing this can i flash latest twrp ?
Click to expand...
Click to collapse
Ya you can.
and whats the size of userdata and cache partition ?
vinayak.ghimire said:
and whats the size of userdata and cache partition ?
Click to expand...
Click to collapse
Based upon the scenario, the only concern is the system partition coz newer or update partition is too large. Cache partition is ok because it only use as a temp file partition. The userdata partition is large as internal storage because it shared as the same partition. That is the good thing at xiaomi phones, data partition is large as long as you have space in internal storage.
Sent from my HM 1SW using Tapatalk
vinayak.ghimire said:
and whats the size of userdata and cache partition ?
Click to expand...
Click to collapse
Install diskinfo app and check
Thanks for the script. It will help us a lot in now and in future also.
I know, i am asking too much. I bet we all are from developers but I will be very glad if you can provide me link of flashable file of TWRP and philz recovery 6.55.
Thanks Loads.
Anyone have checked this tutorial working ??
I checked this tutorial working fine. Thanks for this awesome tip. Here the flash able zip of twrp
Here is screenshot
apoorvpandey41 said:
I checked this tutorial working fine. Thanks for this awesome tip. Here the flash able zip of twrp
Click to expand...
Click to collapse
Thanks mate appreciated.
Thanks man works perfectly fine. Awesome tutorial.
Guys please help me:
Today morning I reparationed my Redmi 1s as the Op said. it went successful. after using for 5hours I've found an update from CM. So I updated using CM UPDATER APP. after reboot I've lost my Google play store and Google app (after updating to todays CM update using CM UPDATER APP). When I went to see the system partition size, it's size went back to the default 782mb (around 782mb, I don't remember exact size).
I checked whether it is disabled or what in apps. But I can't find there also. I tried Show system apps and reset app preferences, but nothing showed them.
I tried to get them back (play store and Google app) by resizing the partition to 1.2 gb (wipe>advanced wipe> Mark system>change or resize partition>back> checked system partition size whether 1.2gb or not>wipe cache and dalvik cache> reboot to system). But nothing worked.
So please help me in getting them back. Please exclude solution such as factory reset or flash gaggs again.
Is anybody else also facing the same issue or it's just me?:crying::crying::crying:
freeshared said:
1.You can do all the wiping as usual, size of partition wil stay as it is and won't get reset,but if you're flashing current version of cm14.1 again you need to resize "System" partition before flashing gapps.
2.You additionally need to change "System" partition too to F2FS and than to EXT4(like you do with "Data" partition),in case you're going back to default partition.
I forgot to mention point 2 in OP,I will now add this there
Click to expand...
Click to collapse
please give detailed instructions to get back to default partition as i am not anymore able to flash any rom on my device. Sometimes it strucks at patching system image unconditionally and sometimes shows error 7 in twrp. And not even being able flash using adb sideload. Please give detailed instructions to revert back to default partition
sharathe100111 said:
please give detailed instructions to get back to default partition as i am not anymore able to flash any rom on my device. Sometimes it strucks at patching system image unconditionally and sometimes shows error 7 in twrp. And not even being able flash using adb sideload. Please give detailed instructions to revert back to default partition
Click to expand...
Click to collapse
1)Detailed instructions for returning back to default partitions are given in op under the sub header "PPS", nothing more to add to it,just follow as it is.
2)I myself havent faced any issues till now iam currently on cm14.1 6-12-2016 version
3)Saw your posts on cm41.1 thread too,so you're on latest twrp
but still facing error 7,If possible post a screenshot of error 7(coz it never happed for me)
4)coming to the issue at hand,could you able to mount cache,system and data partitions.In twrp go to wipe>>advanced wipe>>select "cache">>Repair/change filesystem and see if everything(regarding partition size)is ok there.
Then do same for system and data too and check how are those partitions,if possible post screenshots.
Post your relpy as soon as possible.
freeshared said:
1)Detailed instructions for returning back to default partitions are given in op under the sub header "PPS", nothing more to add to it,just follow as it is.
2)I myself havent faced any issues till now iam currently on cm14.1 6-12-2016 version
3)Saw your posts on cm41.1 thread too,so you're on latest twrp
but still facing error 7,If possible post a screenshot of error 7(coz it never happed for me)
4)coming to the issue at hand,could you able to mount cache,system and data partitions.In twrp go to wipe>>advanced wipe>>select "cache">>Repair/change filesystem and see if everything(regarding partition size)is ok there.
Then do same for system and data too and check how are those partitions,if possible post screenshots.
Post your relpy as soon as possible.
Click to expand...
Click to collapse
Thank you brother for your reply. Now i am on miui as i am not being able to go to CM14 anymore. But i can flash CM11. (it seems i can use only kitkat).
Here are the screenshots: for MOUNT, ADVANCED WIPE, CACHE, SYSTEM, DATA. And problem struck on patching system image unconditionally

Categories

Resources