gt i9105 re partition - Samsung Galaxy S II Plus

Hello guys. i want to increase my system size so that i can install a larger GAPPS how can i get the PIT file and what is the suitable version of ODiN for me.
Phone Mdel: gt i9105
insternal size is 8gb

MMKamal said:
Hello guys. i want to increase my system size so that i can install a larger GAPPS how can i get the PIT file and what is the suitable version of ODiN for me.
Phone Mdel: gt i9105
insternal size is 8gb
Click to expand...
Click to collapse
You can try to use the guide as you like, but i remember you that you must have philz recovery: http://forum.xda-developers.com/showthread.php?t=2684895

thanks, i will give it a try

Flash old CWRM, connect via ADB, and use "parted". That old parted version bundled doesn't know ext4/f2fs yet, so you have to delete and recreate the partitions instead.
Afterwards fash back to TWRP, and recreate the file systems on the resized partitions. fdisk on TWRP can't manipulate the partition table on Samsung devices.
Keep in mind that you can't change the number of order of partitions, only their sizes. Minimum size for partitions you don't want (e.g. /preload, #20 HIDDEN) is ~4MB, with less you won't be able to create a file system on them, and ROMs attempting to mount the partition will encounter an error.

Ext3h said:
Flash old CWRM, connect via ADB, and use "parted". That old parted version bundled doesn't know ext4/f2fs yet, so you have to delete and recreate the partitions instead.
Afterwards fash back to TWRP, and recreate the file systems on the resized partitions. fdisk on TWRP can't manipulate the partition table on Samsung devices.
Keep in mind that you can't change the number of order of partitions, only their sizes. Minimum size for partitions you don't want (e.g. /preload, #20 HIDDEN) is ~4MB, with less you won't be able to create a file system on them, and ROMs attempting to mount the partition will encounter an error.
Click to expand...
Click to collapse
thanks, can you provide me with more info what commands i need to write as i'm new to thie whole thing

Related

Restore Recovery Image With ADB shell?

I messed up my SDcard partition on my phone and it is totally not usable, even from adb shell. Being it uses the GPT scheme, there's no way I have the knowledge of fixing it. I have a clockworkmod recovery image on my PC. Is there a way I can use adb shell to restore the image to my phone?
dman777 said:
I messed up my SDcard partition on my phone and it is totally not usable, even from adb shell. Being it uses the GPT scheme, there's no way I have the knowledge of fixing it. I have a clockworkmod recovery image on my PC. Is there a way I can use adb shell to restore the image to my phone?
Click to expand...
Click to collapse
Hello i am stuck on the google image when phone boots up and can only boot into fastboot mode. did you find a way to return to stock through here? please let me know thank you.
I trashed large parts of my sdcard, but still had ADB/CWM. Downloaded gptfdisk and did recovery option to restore backup gpt from last sector to first GPT sector (LBA1).
With gptfdisk, after backup GPT, make sure print out your new partition table and are happy with the map, before you write it back. Should then be able to recreate recovery, system partitions from backup, even directly through dd.
In the process I noticed MBR in LBA0 got recreated to "a single primary partition"; but recovering partition table pretty much only got partition offsets sorted out - still needed to work on formatting individual partitions and tweaking partition names, types and the like - will depend on circumstances.
Ref: http://forum.xda-developers.com/showthread.php?p=26638440 (for Transformer Prime TF201)

Repartitioning possible?

Hi,
before I brick my smartphone: is the internal storage a real GPT partitioned thing which can be changed by gdisk, parted and friends? I'll change only the things starting with cache - and only sizes & partitions, not the overall layout. I would like to squeeze the unused cache-partition to a few MBs and reduce the cdrom-partition, move the system-partition at top and increase the userdata partition.
Best regards,
mifritscher
Any infos on this one? Could I recover from a completely broken flash via fastboot, qdload or sdboot?
Ok, I tried - and failed *g*
I partitioned with parted - and the kernel accepted the new partition table as well. But it seems that the phone either blocks write access to the GPT, or has its own internal version. Because after a reboot, I got the old partition table again.
Luckily I had a backup (with I needed for repartitioning anyway), and both fastboot and recovery worked. TWRP was only a bit refused regarding the broken partitions, but it could both reformat the partition and fire the backup (with I did with dd and gzip) before).
So the big question is: How can I unlock the emmc to write to the GPT?

MM internal memory solution

Hi guys,
I'll share some scripts (flashable) that I've made to help with xperia l internal memory shortage.
1. First one is the link2sd-enabler.zip: http://www24.zippyshare.com/v/UduJGjqJ/file.html.
For this to work you'll need a second partition on the external sdcard formated as ext4. So first partition is the vfat one, the second primary partition on the external sd card is the ext4 one. Currently I have a 8Gb ext4 second partition.
Installation procedure: prepare your external sdcard, flash the zip, install link2sd application.
2. Second is the 01link2sdmm: http://www86.zippyshare.com/v/9DSgorlH/file.html.
The link2sd application does not automatically link the oat directory of the application. This directory contains the compiled application in the form of an odex file. For big apps this file is pretty big. So this script will automatically link this directory to the sdcard second partition for the applications that are linked to the sdcard. This works in conjunction with the link2sd-enabler.zip script.
Installation procedure: put this script in the /etc/init.d directory with the proper permissions. This way it will run at boot. If you want to run this directly after you link an app you'll need to use automagic and make a rule to run this script after you exit the link2sd application.
Observations: This script is not needed if you switch the internal partitions because you'll have enough space to keep the odex file internally. It's your choice.
3. Third script is the mm-partition-swapper.zip: http://www10.zippyshare.com/v/eyRO7gLw/file.html.
This one will switch your sdcard and userdata partition on your current mm rom. This was tested on rr573 that I have installed, but it should work in other mm roms as well.
Installation procedure: Make sure you have enough space on the external sd card so the script will be able to save your current data partition files. Save the files that you need from your internal partition to your external sd card. Make a backup of your current rom from twrp in case something wrong happens. Format from TWRP the internal sd card as ext4. Flash the zip. If everything works ok then you'll have a rom with the internal partitions swapped and you'll have 4Gb of user data available (minus your space for the already installed apps).
!!!!!!!!!!!!!!!!!!Very important!!!!!!!!!!!!!!!!!!
Don't try formatting the internal sdcard as ext4 with twrp version 3.0.2! It seems that his twrp version does not support this. I'm using twrp 2.8.7.0 by Barbarosa.
Observations: Twrp does not support backing up/restoring internal sd. If you swap partitions you'll have to backup your ext4 internal sd manually from within twrp connected through adb (with a simple tar command)
4. I think 256 ZRAM for the rr573 rom is too big so this zip will change this to 128MB:
mm-128Mb-zram.zip:http://www103.zippyshare.com/v/XjVAnXEl/file.html.
Please make a backup before flashing the swap zip and report if this worked for you.
Hope this helps,
Thanks.
cojocar.andrei said:
Hi guys,
1. First one is the link2sd-enabler.zip:
For this to work you'll need a second partition on the external sdcard formated as ext4. So first partition is the vfat one, the second primary partition on the external sd card is the ext4 one. Currently I have a 8Gb ext4 second partition.
Installation procedure: prepare your external sdcard, flash the zip, install link2sd application.
Click to expand...
Click to collapse
I've been struggeling for quite some time to get the link2sd app working since I flashed MM.
I've done a clean install, flashed the zip, installed link2sd, but I still get a 'mount script error, Cannot create script, mount: no such file or directory.' Anyone got an idea what I do wrong?
thx!
mikelektro said:
I've been struggeling for quite some time to get the link2sd app working since I flashed MM.
I've done a clean install, flashed the zip, installed link2sd, but I still get a 'mount script error, Cannot create script, mount: no such file or directory.' Anyone got an idea what I do wrong?
thx!
Click to expand...
Click to collapse
Check if you have in the /etc/init.d directory the 00link2sd script. For this script to work you need a rom with a working init.d (otherwise this won't work obviously...). If you have the script there, then check if you see a directory /data/sdext2 (if this directory is missing, but you have the 00link2sd script in the /etc/init.d directory, then this means you don't have init.d support in the rom). If you partition your sdcard correctly then the second ext4 partition of you sdcard should me mounted in the /data/sdext2 directory ... All these you need to check before installing the link2sd app...
Awesome! Thank you. I'll try this
cojocar.andrei said:
Check if you have in the /etc/init.d directory the 00link2sd script. For this script to work you need a rom with a working init.d (otherwise this won't work obviously...). If you have the script there, then check if you see a directory /data/sdext2 (if this directory is missing, but you have the 00link2sd script in the /etc/init.d directory, then this means you don't have init.d support in the rom). If you partition your sdcard correctly then the second ext4 partition of you sdcard should me mounted in the /data/sdext2 directory ... All these you need to check before installing the link2sd app...
Click to expand...
Click to collapse
I have the init.d folder, but it seems the sdext2 folder was only created after I installed the link2sd app.
I tried doing it all over again, but it still doesnt work, same messages...
mikelektro said:
I have the init.d folder, but it seems the sdext2 folder was only created after I installed the link2sd app.
I tried doing it all over again, but it still doesnt work, same messages...
Click to expand...
Click to collapse
Then your rom doesn't have init.d support. You need a kernel/rom (more precisely a ramdisk) with init.d support to use this ... The rr573 supports init.d ... Try it with this one ...
cojocar.andrei said:
Then your rom doesn't have init.d support. You need a kernel/rom (more precisely a ramdisk) with init.d support to use this ... The rr573 supports init.d ... Try it with this one ...
Click to expand...
Click to collapse
Thx! Which do you recommend? I've tried several in the last two or three months. Now I'm running AOSP-OMS.
I ran slim, RR and CM 13 beta before without any problems, just the storage issue.
mikelektro said:
Thx! Which do you recommend? I've tried several in the last two or three months. Now I'm running AOSP-OMS.
I ran slim, RR and CM 13 beta before without any problems, just the storage issue.
Click to expand...
Click to collapse
I've just told you. RR573. For a completely working camera on this one just replace a camera library... Search the rr thread...
Sent from the center of the galaxy
3. Third script is the mm-partition-swapper.zip: http://www10.zippyshare.com/v/eyRO7gLw/file.html.
This one will switch your sdcard and userdata partition on your current mm rom. This was tested on rr573 that I have installed, but it should work in other mm roms as well.
Installation procedure: Make sure you have enough space on the external sd card so the script will be able to save your current data partition files. Save the files that you need from your internal partition to your external sd card. Make a backup of your current rom from twrp in case something wrong happens. Format from TWRP the internal sd card as ext4. Flash the zip. If everything works ok then you'll have a rom with the internal partitions swapped and you'll have 4Gb of user data available (minus your space for the already installed apps).
Click to expand...
Click to collapse
I use rom AOSP OMS . file zip working?
Brick and problem other ?
Thx you building script .
Thx advanced
I am on stryflex MM ROM and TWRP 3.0.2.
I formatted internal storage as ext4, then flashed mm-partition-swapper.zip.
Says that there is no ext4fs partition and I tried reboot recovery and my phone is dead now, can't turn it on...
I don't blame you, I blame myself for trying. But please help. Flashtool doesn't recognize flash mode.
Don't use this method. Not safe.
Option58 said:
I am on stryflex MM ROM and TWRP 3.0.2.
I formatted internal storage as ext4, then flashed mm-partition-swapper.zip.
Says that there is no ext4fs partition and I tried reboot recovery and my phone is dead now, can't turn it on...
I don't blame you, I blame myself for trying. But please help. Flashtool doesn't recognize flash mode.
Don't use this method. Not safe.
Click to expand...
Click to collapse
Sorry to hear this. If the script gave you this error then the script did nothing to your phone. It just aborted the procedure because it did not find the sdcard formated as ext4. It must be the twrp version. I'm using twrp 2.8.7.0 by barbarosa. I think twrp 3.0.2 does not support formatting the internal sdcard as ext4. Most pobably the twrp version 3.0.2 formated something else as ext4 or whatever instead of internal sd... I did not know this. Sorry again...
Try to search the brick threads. If you still have a blue light when in flashmode I think you still have a chance to resurect it...
Sent from the center of the galaxy
I've modified the post to warn people of this twrp version. So, people, use only twrp 2.8.x.x to format the internal sdcard. I'm using 2.8.7.0 twrp version by Barbarosa. I don't know if other twrp versions support ext4 on internal sdcard.
Sent from the center of the galaxy
Thanks for the solutions. So now if I only need to swap internal sd and /data, i just need to flash 3rd script? I'm quite confusing about partitioning and memory stuffs
newguyknowsnothing said:
Thanks for the solutions. So now if I only need to swap internal sd and /data, i just need to flash 3rd script? I'm quite confusing about partitioning and memory stuffs
Click to expand...
Click to collapse
You have to have twrp 2.8.7.0, then format internal sdcard as ext4 (wipe settings) and then flash the zip...
Sent from the center of the galaxy
Yes, formatting internalSD as ext4 is tricky. My recovery was broken. Probably formatted something else. It wasn't your script.
However I have no volume up button on my phone (fell out) - no fastboot. And just volume down button (flash mode) and a somewhat broken USB cable. Phone not recognized by flashtool at all...
cojocar.andrei said:
You have to have twrp 2.8.7.0, then format internal sdcard as ext4 (wipe settings) and then flash the zip...
Sent from the center of the galaxy
Click to expand...
Click to collapse
Ok thanks! One more question, If I somewhat want to undo this, I need to back up the current MM rom before flashing the script? Will the internal sd and /data automtically be swapped back when I restore the back up?
newguyknowsnothing said:
Ok thanks! One more question, If I somewhat want to undo this, I need to back up the current MM rom before flashing the script? Will the internal sd and /data automtically be swapped back when I restore the back up?
Click to expand...
Click to collapse
After swapping the partitions your old backups of the rom will not work anymore (or probably they would just revert the swapping. Anyway if you want to restore a backup that's been done prior to swap it's better to format back by hand the internal sdcard to vfat and data to ext4)
For backing up a rom with swapped partitions you'll have to select the sdcard instead of data partition in the backup options... I did not try it yet...
Sent from the center of the galaxy
Option58 said:
Yes, formatting internalSD as ext4 is tricky. My recovery was broken. Probably formatted something else. It wasn't your script.
However I have no volume up button on my phone (fell out) - no fastboot. And just volume down button (flash mode) and a somewhat broken USB cable. Phone not recognized by flashtool at all...
Click to expand...
Click to collapse
I don't know, sorry. You have to search the brick threads...
Sent from the center of the galaxy
I ran the the link2sd enabler script on my rr573, works like a charm now.
Thank you so much, I needed this!
Didn't swapped the storages yet.
The dream is real!
Congratulations.
Seeking a long time for a script like mm-partition-swapper.zip
Before seeing your post, I had already made the formatting of SD0 (ext4) to try to install Link2SD to work with SD0 without work.
I used the TWRP 3.0.2.
I could easy return the partition to FAT.
I intend to make a clean installation of ROM on my device to then install your mm-partition-swapper.zip script.
As both the "DATA" as SD0 are empty you still think need to format with TWRP 2.8.7?
No way to change this script without the data transfer?
Only formatting partitions and inverted mounts?
If not necessary then ok...but... please clear this my doubts.
Again without getting tired ... very thank you even for your script.

Is it safe to try to resize system partition using TWRP?

A few days ago i found that TWRP has an option to resize partition. It´s there from v2.8.7 so I think it isn´t new
I wonder if it could be used to get some MB for data partition. In that case What´s the procedure to do it without bricking my phone?
I found this http://forum.xda-developers.com/android/software-hacking/tool-lanchon-repit-data-sparing-t3358036 but I didn't test it.
TWRP can't resize partitions. It can only resize file systems to fill their partition.

Data partition shows 0mb. Help.

I flashed a stock rom (replaced the stock recovery with twrp though), it was stuck at the Alcatel screen, so I went into twrp. I tried reparing, resizing, changing file system of data, system, and cache (which all showed 0 mb), then cache and system got fixed and it said ext4. However, data still shows 0 mb and despite trying all kinds of fixes (like wiping, doing a factory reset, changing file system to ext2, ext3, ext4, fat etc. which all fail) I found online it's still the same. When I tried flashing userdata using SP Flash Tool, it said "not enough space". I found two scatter files (attached to this post) but they seem to differ.
What should I do?
Hint: Add TWRP to this thread's title because it's a TRWP related issue.
jwoegerbauer said:
Hint: Add TWRP to this thread's title because it's a TRWP related issue.
Click to expand...
Click to collapse
How is it TWRP related? SP Flash Tool says it can't flash user data because there is no space because /data is seen as a 0mb partition.
tesiz22 said:
How is it TWRP related? SP Flash Tool says it can't flash user data because there is no space because /data is seen as a 0mb partition.
Click to expand...
Click to collapse
My guess is /data got encrypted by TWRP, hence it actually can't get mounted. But I may err ...
jwoegerbauer said:
My guess is /data got encrypted by TWRP, hence it actually can't get mounted. But I may err ...
Click to expand...
Click to collapse
That makes sense, I'll try adding the tag. Do you have any idea how I can check that or decrypt the partition? It looks like not only data but many other partitions aren't visible as well like /system.
...
It looks like I can't edit tags afterwards.
Looks like there's a problem with userdata
You have to format it, and then reflash the stock rom
Open sp flash tool
Load your scatter file
Go to the format section at the top of spflash tool
Select manual format flash
Select emmc user.
As the begin address of userdata is
0xABD80000
Input it in begin address box
As the size of userdata is
0x124D80000
Input this is the format length box
Click start
Flash the stock rom and reboot
I got these values form your scatter file
Tab E said:
Looks like there's a problem with userdata
You have to format it, and then reflash the stock rom
Open sp flash tool
Load your scatter file
Go to the format section at the top of spflash tool
Select manual format flash
Select emmc user.
As the begin address of userdata is
0xABD80000
Input it in begin address box
As the size of userdata is
0x124D80000
Input this is the format length box
Click start
Flash the stock rom and reboot
I got these values form your scatter file
Click to expand...
Click to collapse
Thank you! Which scatter did you use? I uploaded two different ones for the same device but I used the one named "mt8127_android_scatter.txt" to flash the stock rom.
tesiz22 said:
Thank you! Which scatter did you use? I uploaded two different ones for the same device but I used the one named "mt8127_android_scatter.txt" to flash the stock rom.
Click to expand...
Click to collapse
I got the begin address and format length from Mt8127

Categories

Resources