Unbrick our T989! (need Help with getting a DeBrick.img) - T-Mobile Samsung Galaxy S II SGH-T989

EDIT: we need a T989D user to help us! please if you stumble upon this please read and help us out!
it seems like samsung devices have a new method to unbrick when we get QHSUSB_DLOAD when we plug it into the computer.
http://forum.xda-developers.com/showthread.php?t=2439367 : T999 Galaxy s3 T-mobile
http://forum.xda-developers.com/showthread.php?t=2600869 : I9205 Galaxy mega 6.3
http://forum.xda-developers.com/show....php?t=2624203 : N9005 Galaxy note 3
and it seems like they use the same method but someone has made a debrick.img for their devices specifically, i would love to put up a thread for people for this so we can unbrick our s2's but i dont know how they get their .imgs, i heard that we need someone on a stock rooted rom to be able to make the .img so would anyone be able to show me how to make one of these because i own 3 t989s which i will put one of them to stock if someone can show me how to make the .img.

Trozzul said:
it seems like samsung devices have a new method to unbrick when we get QHSUSB_DLOAD when we plug it into the computer.
http://forum.xda-developers.com/showthread.php?t=2439367 : T999 Galaxy s3 T-mobile
http://forum.xda-developers.com/showthread.php?t=2600869 : I9205 Galaxy mega 6.3
http://forum.xda-developers.com/show....php?t=2624203 : N9005 Galaxy note 3
and it seems like they use the same method but someone has made a debrick.img for their devices specifically, i would love to put up a thread for people for this so we can unbrick our s2's but i dont know how they get their .imgs, i heard that we need someone on a stock rooted rom to be able to make the .img so would anyone be able to show me how to make one of these because i own 3 t989s which i will put one of them to stock if someone can show me how to make the .img.
Click to expand...
Click to collapse
You use clockwork mod recovery on your phone and go to "Install .zip from SD card" then you run the "T999_Partial_Sys_Dump_for_debrick.zip" and that gives you the debrick.img to put to your SD card. Get it from http://forum.xda-developers.com/showpost.php?p=45725480&postcount=45 and if you do, please post it! I need a t989 image.. And don't worry about it saying T999, you can rename it to anything. This is just the script that makes the image, its not hardware dependent.. Only the debrick image is that you make.

Lord Zog said:
You use clockwork mod recovery on your phone and "Install .zip from SD card" then you run the "T999_Partial_Sys_Dump_for_debrick.zip" and that gives you the debrick.img to put to your SD card. Get it from http://forum.xda-developers.com/showpost.php?p=45725480&postcount=45 and if you do, please post it! I need a t989 image.. And don't worry about it saying T999, you can rename it to anything. This is just the script that makes the image, its not hardware dependent.. Only the debrick image is that you make.
Click to expand...
Click to collapse
alright cool dude i have been told that this file makes the debrick.img i just didnt know if it would work with the s2 but it looks like other people clarified that i should be able to do that when i get home. i might run into a problem though, my S2 has a stuck power button and when i go into cwm it taps on random things and im afraid it will screw me and somehow brick it (i might just factory reset so there's nothing but it could still hit one of the wrong options) , i need to find a way to get CWM touch on it but i have made a thread and nobody has helped me D: do you think From rom manager i can hit the "Install rom from SD card" option and use it on the Debrick file?

alright made a debrick.img and tried the method for the s3 and it didnt work maybe i did it wrong, heres there .img (im not on a rooted stock, is that the reason why?) mediafires being dumb and couldnt upload there: http://d-h.st/KUD sorry about Anonymous uploader i couldn't find the registration page.

Trozzul said:
alright cool dude i have been told that this file makes the debrick.img i just didnt know if it would work with the s2 but it looks like other people clarified that i should be able to do that when i get home. i might run into a problem though, my S2 has a stuck power button and when i go into cwm it taps on random things and im afraid it will screw me and somehow brick it (i might just factory reset so there's nothing but it could still hit one of the wrong options) , i need to find a way to get CWM touch on it but i have made a thread and nobody has helped me D: do you think From rom manager i can hit the "Install rom from SD card" option and use it on the Debrick file?
Click to expand...
Click to collapse
I think in ROM manager it won't mount the partitions correctly, but I'll try it on this end with the file you posted.
Nope. Doesn't work. I'll look at the image in Linux and see whats in the partitions.
OK. So, it should look like this...
# parted /dev/sdb print
Model: Generic Ultra HS-SD/MMC (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 4194kB 67.1MB 62.9MB modem
2 67.1MB 67.2MB 131kB sbl1
3 67.2MB 67.5MB 262kB sbl2
4 67.5MB 68.0MB 524kB sbl3
5 68.0MB 70.1MB 2097kB aboot
6 70.1MB 70.6MB 524kB rpm
7 70.6MB 81.1MB 10.5MB boot
8 81.1MB 81.7MB 524kB tz
9 81.7MB 82.2MB 524kB pad
10 82.2MB 92.7MB 10.5MB param
11 92.7MB 107MB 14.3MB ext4 efs
12 107MB 110MB 3146kB modemst1
13 110MB 113MB 3146kB modemst2
14 113MB 1686MB 1573MB ext4 system
15 1686MB 14.8GB 13.1GB userdata
16 14.8GB 14.8GB 8389kB persist
17 14.8GB 15.7GB 881MB cache
18 15.7GB 15.7GB 10.5MB recovery
19 15.7GB 15.7GB 10.5MB fota
20 15.7GB 15.7GB 6291kB backup
21 15.7GB 15.7GB 3146kB fsg
22 15.7GB 15.7GB 8192B ssd
23 15.7GB 15.8GB 5243kB grow
OUR's looks like this..
#parted /dev/sdd print
Model: Generic USB SD Reader (scsi)
Disk /dev/sdd: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 105MB 105MB primary
2 105MB 105MB 512kB primary boot
3 105MB 107MB 1536kB primary
4 107MB 15.8GB 15.7GB extended
5 109MB 110MB 512kB logical
6 113MB 115MB 2097kB logical
7 117MB 120MB 2560kB logical
8 122MB 132MB 10.5MB logical
9 134MB 135MB 512kB logical
10 138MB 139MB 512kB logical
11 143MB 143MB 512kB logical
12 147MB 157MB 10.5MB logical
13 159MB 262MB 103MB logical lba
14 264MB 267MB 3146kB logical
15 268MB 272MB 3146kB logical
16 273MB 276MB 3146kB logical
17 277MB 380MB 103MB logical
18 382MB 385MB 3146kB logical
19 386MB 389MB 3146kB logical
20 390MB 393MB 3146kB logical
21 394MB 405MB 10.5MB logical
22 407MB 417MB 10.5MB logical
23 419MB 430MB 10.5MB logical
24 432MB 1059MB 627MB logical
25 1061MB 3211MB 2150MB logical
26 3213MB 3530MB 317MB logical
27 3532MB 3667MB 135MB logical
28 3670MB 15.8GB 12.1GB logical
This looks more MS-DOS that Linux file system.. I made it in Windows using the app everyone refers to. I'll do it now in Linux.
update: Still shows what we got. Try to do it again but in CWM.

Lord Zog said:
I think in ROM manager it won't mount the partitions correctly, but I'll try it on this end with the file you posted.
Nope. Doesn't work. I'll look at the image in Linux and see whats in the partitions.
OK. So, it should look like this...
# parted /dev/sdb print
Model: Generic Ultra HS-SD/MMC (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 4194kB 67.1MB 62.9MB modem
2 67.1MB 67.2MB 131kB sbl1
3 67.2MB 67.5MB 262kB sbl2
4 67.5MB 68.0MB 524kB sbl3
5 68.0MB 70.1MB 2097kB aboot
6 70.1MB 70.6MB 524kB rpm
7 70.6MB 81.1MB 10.5MB boot
8 81.1MB 81.7MB 524kB tz
9 81.7MB 82.2MB 524kB pad
10 82.2MB 92.7MB 10.5MB param
11 92.7MB 107MB 14.3MB ext4 efs
12 107MB 110MB 3146kB modemst1
13 110MB 113MB 3146kB modemst2
14 113MB 1686MB 1573MB ext4 system
15 1686MB 14.8GB 13.1GB userdata
16 14.8GB 14.8GB 8389kB persist
17 14.8GB 15.7GB 881MB cache
18 15.7GB 15.7GB 10.5MB recovery
19 15.7GB 15.7GB 10.5MB fota
20 15.7GB 15.7GB 6291kB backup
21 15.7GB 15.7GB 3146kB fsg
22 15.7GB 15.7GB 8192B ssd
23 15.7GB 15.8GB 5243kB grow
OUR's looks like this..
#parted /dev/sdd print
Model: Generic USB SD Reader (scsi)
Disk /dev/sdd: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 105MB 105MB primary
2 105MB 105MB 512kB primary boot
3 105MB 107MB 1536kB primary
4 107MB 15.8GB 15.7GB extended
5 109MB 110MB 512kB logical
6 113MB 115MB 2097kB logical
7 117MB 120MB 2560kB logical
8 122MB 132MB 10.5MB logical
9 134MB 135MB 512kB logical
10 138MB 139MB 512kB logical
11 143MB 143MB 512kB logical
12 147MB 157MB 10.5MB logical
13 159MB 262MB 103MB logical lba
14 264MB 267MB 3146kB logical
15 268MB 272MB 3146kB logical
16 273MB 276MB 3146kB logical
17 277MB 380MB 103MB logical
18 382MB 385MB 3146kB logical
19 386MB 389MB 3146kB logical
20 390MB 393MB 3146kB logical
21 394MB 405MB 10.5MB logical
22 407MB 417MB 10.5MB logical
23 419MB 430MB 10.5MB logical
24 432MB 1059MB 627MB logical
25 1061MB 3211MB 2150MB logical
26 3213MB 3530MB 317MB logical
27 3532MB 3667MB 135MB logical
28 3670MB 15.8GB 12.1GB logical
This looks more MS-DOS that Linux file system.. I made it in Windows using the app everyone refers to. I'll do it now in Linux.
update: Still shows what we got. Try to do it again but in CWM.
Click to expand...
Click to collapse
sooo what should i do then? should i go back to stock reroot it and redo the flashing?

Trozzul said:
sooo what should i do then? should i go back to stock reroot it and redo the flashing?
Click to expand...
Click to collapse
Yeah, but from clockwork mod recovery, and rooted stock, like UVLE1.

Lord Zog said:
Yeah, but from clockwork mod recovery, and rooted stock, like UVLE1.
Click to expand...
Click to collapse
Would this be what you want me to be on? http://forum.xda-developers.com/showthread.php?t=1668502 and that .img was from CWM

Trozzul said:
Would this be what you want me to be on? http://forum.xda-developers.com/showthread.php?t=1668502 and that .img was from CWM
Click to expand...
Click to collapse
No, use uvle1 ICS
http://stockroms.net/file/GalaxyS2/SGH-T989/ICS/SGH-T989_UVLE1_ICS.zip
scroll to the bottom and hit play and use the captcha and get stock ICS.
And that was from CWM? Were you rooted? The file structure looks a lot different.. Maybe the script is extracting from the wrong partition, but I thought the T989 and T989D used /dev/block/mmcblk0 also. Sadly, I don't have another T989(D) to check

Lord Zog said:
No, use uvle1 ICS
http://stockroms.net/file/GalaxyS2/SGH-T989/ICS/SGH-T989_UVLE1_ICS.zip
scroll to the bottom and hit play and use the captcha and get stock ICS.
And that was from CWM? Were you rooted? The file structure looks a lot different.. Maybe the script is extracting from the wrong partition, but I thought the T989 and T989D used /dev/block/mmcblk0 also. Sadly, I don't have another T989(D) to check
Click to expand...
Click to collapse
yeah CWM and rooted. and i heard that we shouldnt flash the stock UVLE1 ics stock because it was bricking other peoples phones?

Trozzul said:
yeah CWM and rooted. and i heard that we shouldnt flash the stock UVLE1 ics stock because it was bricking other peoples phones?
Click to expand...
Click to collapse
From what I understand, that's if you are using 4.3 or higher, but, we're not affected as we didn't get an official 4.3 for this device

Lord Zog said:
From what I understand, that's if you are using 4.3 or higher, but, we're not affected as we didn't get an official 4.3 for this device
Click to expand...
Click to collapse
yeah im on CM 10.2 still, i forgot i still needed to get back to stock, also so when i bricked my other T989 does it matter what rom it was on before? or if it was on stock? so i came from Aokp before, for us to unbrick it does the bricked phone needed to be on stock before? what do you think exactly this .img file does? im thinking it runs the drivers from the SD card?

Lord Zog said:
From what I understand, that's if you are using 4.3 or higher, but, we're not affected as we didn't get an official 4.3 for this device
Click to expand...
Click to collapse
alright flashed that file in odin, heres the Debrick.img From rooted stock also on CWM like last time

Trozzul said:
alright flashed that file in odin, heres the Debrick.img From rooted stock also on CWM like last time
Click to expand...
Click to collapse
hmm. Still doesn't work.. Without having a physical phone to play with, its hard to do it this way.
[email protected]:/home/zog/Downloads# dd if=debrick.img of=/dev/sdg
262144+0 records in
262144+0 records out
134217728 bytes (134 MB) copied, 35.458 s, 3.8 MB/s
[email protected]:/home/zog/Downloads# parted /dev/sdg print
Model: Generic USB SD Reader (scsi)
Disk /dev/sdg: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 105MB 105MB primary
2 105MB 105MB 512kB primary boot
3 105MB 107MB 1536kB primary
4 107MB 15.8GB 15.7GB extended
5 109MB 110MB 512kB logical
6 113MB 115MB 2097kB logical
7 117MB 120MB 2560kB logical
8 122MB 132MB 10.5MB logical
9 134MB 135MB 512kB logical
10 138MB 139MB 512kB logical
11 143MB 143MB 512kB logical
12 147MB 157MB 10.5MB logical
13 159MB 262MB 103MB logical lba
14 264MB 267MB 3146kB logical
15 268MB 272MB 3146kB logical
16 273MB 276MB 3146kB logical
17 277MB 380MB 103MB logical
18 382MB 385MB 3146kB logical
19 386MB 389MB 3146kB logical
20 390MB 393MB 3146kB logical
21 394MB 405MB 10.5MB logical
22 407MB 417MB 10.5MB logical
23 419MB 430MB 10.5MB logical
24 432MB 1059MB 627MB logical
25 1061MB 3211MB 2150MB logical
26 3213MB 3530MB 317MB logical
27 3532MB 3667MB 135MB logical
28 3670MB 15.8GB 12.1GB logical

Lord Zog said:
hmm. Still doesn't work.. Without having a physical phone to play with, its hard to do it this way.
[email protected]:/home/zog/Downloads# dd if=debrick.img of=/dev/sdg
262144+0 records in
262144+0 records out
134217728 bytes (134 MB) copied, 35.458 s, 3.8 MB/s
[email protected]:/home/zog/Downloads# parted /dev/sdg print
Model: Generic USB SD Reader (scsi)
Disk /dev/sdg: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 105MB 105MB primary
2 105MB 105MB 512kB primary boot
3 105MB 107MB 1536kB primary
4 107MB 15.8GB 15.7GB extended
5 109MB 110MB 512kB logical
6 113MB 115MB 2097kB logical
7 117MB 120MB 2560kB logical
8 122MB 132MB 10.5MB logical
9 134MB 135MB 512kB logical
10 138MB 139MB 512kB logical
11 143MB 143MB 512kB logical
12 147MB 157MB 10.5MB logical
13 159MB 262MB 103MB logical lba
14 264MB 267MB 3146kB logical
15 268MB 272MB 3146kB logical
16 273MB 276MB 3146kB logical
17 277MB 380MB 103MB logical
18 382MB 385MB 3146kB logical
19 386MB 389MB 3146kB logical
20 390MB 393MB 3146kB logical
21 394MB 405MB 10.5MB logical
22 407MB 417MB 10.5MB logical
23 419MB 430MB 10.5MB logical
24 432MB 1059MB 627MB logical
25 1061MB 3211MB 2150MB logical
26 3213MB 3530MB 317MB logical
27 3532MB 3667MB 135MB logical
28 3670MB 15.8GB 12.1GB logical
Click to expand...
Click to collapse
Well what else can I do?

Trozzul said:
Well what else can I do?
Click to expand...
Click to collapse
We need to figure out the partition structure and find the right one with the .PIT file, and try to create a proper 8660_msimage.mbn or debrick.img creation.

Oh yeah, try to install BusyBox while rooted, and then try it again. I'm still trying to find partition info. So far I have found aboot, amss, boot, cache, mdm, recovery, rpm, sbl2, sbl3, system, tomb, and tz. I'm missing a few and proper flags and such
Also, in play store, when you get BusyBox, also get Android terminal emulator. Then once those 2 things are installed, run BusyBox and use smart install. Once that's done, you can try to do into Android Terminal Emulator and type
su <enter> It'll ask for SuperUser access, allow it. then
busybox dd if=/dev/block/mmcblk0 of=/sdcard/debrick.img bs=1M count=128 <enter>
When I say <enter>, I mean press enter. Try that.

Okay. We're going a different route. Get this https://mega.co.nz/#!TEthlJYY!cq8cwm3c_ilvZVrGEa9TezmOpIkHbaTgYdctr3bxAl8 Its' from http://forum.xda-developers.com/showthread.php?t=2136738
Unzip it all to its own folder, say, Backup989
Run python-2.7.3, let it install to default folder
attach the phone
then run backup.bat
It will make another folder in this folder we're in called "Backup" Once this is done, you should have 8 or so files, compress them in WinZip or WinRAR and upload that.
Files in folder should be
aboot.mbn
pitfile.pit
partition0.bin
rpm.mbn
smd_hdr.mbn
sbl1.mbn
sbl2.mbn
sbl3.mbn
and maybe 1 more, compress them all into one file and upload to me.
DO NOT run the debrick file in that archive, that IS NOT for our phones and the sectors for writing are probably NOT the same as ours and will overwrite something else that could be important. (EFS/IMEI/ANYTHING!) Only run BACKUP.BAT

Got it. Made a debrick.img manually. Its not perfect and consists of a few messy hacks. I'll fix this up and send you one to try once I look at it and the partitioning in HS-USB 9008 and HS-USB-9006 state. This was a 9008 state, then it was switched to a 9006 state and had 7 partitions. I'll post more in a bit once I get this thing fully running.

Ok, I still need partition info. After flashing in Odin, it seems to not want to boot. I can get in and out of ODIN, but the partition info is bad. I can't enter recovery, nor boot past the boot logo, not the animation, just logo. SAMSUNG, and the one that says TMOBILE S2.. I still need you to do the backup to get proper .PIT file and partition0.bin to fix MBR and the PIT partition at b0p11. But send all the backup files it makes just incase one of mine is bad. Had to use another source for SBL1.MBN...
UPDATE: Ok. After messing more things and tinkering, I can boot. I can't go to recovery tho, but ODIN works and I want to make sure my partition isn't screwed up and that why I can't get recovery. But we got boot! I'm excited. This things been dead for 3 months, and never bothered to try till now.
We need a user with a T989D to do the same as the partition table IS different. Using a PIT from a 989 and ODIN Fail's on the modem/baseband MBN file from a T989D ROM, but using a T989 ROM flashes fine, but then doesn't boot. So, we need partition info from BOTH devices, PIT File, and partition0.mbn/.bin from a T989 and a T989D MBR, as well as the other files (sbl1-3, etc) Then we can properly make 2 debrick.img files, one for T989 and one for T989D as I am using a T989D but using modified SBL1-3 files and ABOOT to get this going.
As you can see from the screenshot, my build is T998DTLUMC4, but my baseband is T989UVMC6. One is telus, one is T-Mobile.

Related

[Q] Total Space 10.36GB

While listening to Spotify on my stock N71000 phone (not rooted etc) it locked up. Now it locks up 2 to 5 times a day. I have also noticed My Total Storage Card Space is now 10.36GB. Have restored the phone and still only has the Total 10.36GB with 9.61 Available. My external 64GB card is fine. I have looked at the card on my windows machine with same results.
Any ides?
It is 10.36 from the start.
Try a factory reset.
Sent from my GT-N7100 using xda premium
You won't get full 16 gb from the internal storage..
Everyone has it between 11-10 gb..
Those 5-6 gb as far as I know, they are for system partitions..
Sent from my GT-N7100
yenkoeric said:
While listening to Spotify on my stock N71000 phone (not rooted etc) it locked up. Now it locks up 2 to 5 times a day. I have also noticed My Total Storage Card Space is now 10.36GB. Have restored the phone and still only has the Total 10.36GB with 9.61 Available. My external 64GB card is fine. I have looked at the card on my windows machine with same results.
Any ides?
Click to expand...
Click to collapse
The exact size for user accessible is 11.4GB
Disk /dev/block/mmcblk0: 15.8GB (total storage)
4194kB BOTA0
4194kB BOTA1
21.0MB ext4 EFS
4194kB m9kefs1
4194kB m9kefs2
4194kB m9kefs3
8389kB PARAM
8389kB BOOT
8389kB RECOVERY
92.3MB RADIO
4194kB TOMBSTONES
1434MB ext4 CACHE
2147MB ext4 SYSTEM
587MB ext4 HIDDEN
8389kB OTA
11.4GB ext4 USERDATA (storage left for user)

Galaxy Nexus Parted Table

Just in case anyone else goes on an adventure and decides to accidentally wipe out their partition info on their phone and brick it..
Follow the stuff here for the omap flash.
http://forum.xda-developers.com/galaxy-nexus/help/galaxy-nexus-bricked-omap-flash-kinda-t2148093
You need adb shell and a bunch of other stuff. But once you get the phone booting to fastboot, install clockwork mod(cause I'm lazy), adb shell into it, then use parted to create the partitions.
Code:
parted /dev/block/mmcblk0
parted print should look like this
Code:
print all
Model: MMC SEM32G (sd/mmc)
Disk /dev/block/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 131kB 262kB 131kB xloader
2 524kB 4194kB 3670kB sbl
3 4194kB 25.2MB 21.0MB ext4 efs
4 25.2MB 33.6MB 8389kB param
5 33.6MB 37.7MB 4194kB misc
6 37.7MB 41.9MB 4194kB dgs
7 41.9MB 50.3MB 8389kB boot
8 50.3MB 62.8MB 12.5MB recovery
13 62.8MB 62.9MB 65.5kB metadata
9 62.9MB 79.7MB 16.8MB radio
10 79.7MB 1000MB 920MB ext4 system
11 1000MB 1768MB 768MB ext4 cache
12 1768MB 31.9GB 30.1GB ext4 userdata
Info on the mke2fs was taken from http://www.oppoforums.com/threads/guide-resizing-internal-storage-on-find-5-32gb.8361/page-2
Anyway, just sharing because knowing that efs needs to be formatted would have saved me a bit of headache.

[Q]Re-partition internal memory and increase /userdata

Hi guys !
I've made some research about the partition sheme of the GT-I9195 and here's what I found :
Disk /dev/block/mmcblk0: 15269888 sectors, 3360M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15269854
Number Start (sector) End (sector) Size Code Name
1 8192 131071 60.0M 0700 modem
2 131072 131327 128K 0700 sbl1
3 131328 131839 256K 0700 sbl2
4 131840 132863 512K 0700 sbl3
5 132864 136959 2048K 0700 aboot
6 136960 137983 512K 0700 rpm
7 137984 139007 512K 0700 tz
8 139008 164607 12.5M 0700 pad
9 164608 180991 8192K 0700 param
10 180992 208895 13.6M 0700 efs
11 208896 215039 3072K 0700 modemst1
12 215040 221183 3072K 0700 modemst2
13 221184 241663 10.0M 0700 boot
14 241664 262143 10.0M 0700 recovery
15 262144 282623 10.0M 0700 fota
16 282624 296943 7160K 0700 backup
17 296944 303087 3072K 0700 fsg
18 303088 303103 8192 0700 ssd
19 303104 319487 8192K 0700 persist
20 319488 344063 12.0M 0700 persdata
21 344064 3416063 1500M 0700 system
22 3416064 3825663 200M 0700 cache
23 3825664 3899391 36.0M 0700 hidden
24 3899392 15269854 5551M 0700 userdata
Click to expand...
Click to collapse
What's interesting is the size of /system : 1500Mo !!! That's really big when you know that CM11+Gapps take approximatively 500Mo of /system space. There also some other parition un-used for custom rom's users (/hidden which contains sammy dummy file or /fota which is for over the air update for official rom). So don't you think there should be a way to delete some partition so that we can gain in space for /userdata ? I'm asking because i know it was possible for my old phone (Galaxy ace 2) and I think it would be pretty nice to gain 1Gb of space for daily usage.
I do not think it is possible to repartition s4 mini's flash storage.
You said it was possible on your old ace 2. I say it was also possible on my old galaxy s advance
That is because those devices had seperate partitions for system , internal storage , data (where u install apps) , cache and a special partition called 'preload'.
If I can remember correctly the hidden.img files from firmware reside on that preload partition. As you can see , with use of a "pit" file we can repartition internal storage, system and data such that we can either have more room to install apps or more room for storage.
But such a work is not possible on s4 mini. Because the internal storage and data are on same partition. /data is where u install apps .... /data/media/emulated/0 is your internal storage. This means data and storage share a single partition.
Yes i've also noticed what you just said. In previous samsung phone, there were two separate partition for user. One purely for storage (/ums or /sdcard0 if I remember correctly) and another one for the apps or the user's setting (/data). Now those two partitions have been merged in galaxy S4 mini, which is a big improvement.
But what I want here is to resize /system partition which is really too big for custom roms so that we can use that extra space for /userdata. In fact, i'm pretty sur that CM11 with a small Gapps package could fit in 500mo and that's all what we need because /system is in read only isn't it ?
And by the way, /system and /userdata are correctly two separate partitions.
You can go the other way.... Integrate apps in system.
I think this is safest than repartition

Galaxy ace 2 Deleted Partitions

Good day fellow xda-developers!
I am currently have a problem with my galaxy ace 2 ( GT-I8160). My brother by accident and through Odin erased some partition files! He ticked Nand erased all and since then the mobile shows the first screen writting Samsung Galaxy Ace 2 GT-I8160 and then reboots.
More specific:
I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found..
I:Cannot load volume /misc
I:Can't partition non mmcblk device: /devices/sd i2/mmc_host/mmc0/mmc0
I have tried many Official roms by sammobile but no luck, i tried from here an official rom given with PDA,CSC and pit but still nothing.
I have even tried to flash through CWM many custom roms but still nothing. Some off them showed to be done correctly but still then it showed the first screen and then restarted.
Has anyone any idea how to fix it? Can someone provide me with a CWM back up to try to flash it?
@matlowpap, you PMed me:
matlowpap said:
Do you have any CWM back up to send me to try flash through there? I want to see if it will flash the missing partitions..
Click to expand...
Click to collapse
Not sure if flashing CWM backup will help here, since even flashing an official ROM didn't help. Probably your best bet is to try recovering deleted partitions via parted. Have you tried to repart internal sdcard via CWM ReParted? If no, then first connect the phone to PC via adb and run:
Code:
parted /dev/block/mmcblk0
print
If even this is not working, it's likely to be a hardware fault. Otherwise this command will print partition list. Compare output with this one
Code:
Model: MMC SEM04G (sd/mmc)
Disk /dev/block/mmcblk0: 3959MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
10 524kB 1573kB 1049kB PIT
6 1573kB 3146kB 1573kB CSPSA FS
7 4194kB 14.7MB 10.5MB ext4 EFS
2 14.7MB 31.5MB 16.8MB ext4 Modem FS
14 32.5MB 34.6MB 2097kB SBL
16 34.6MB 36.7MB 2097kB SBL_2
1 36.7MB 53.5MB 16.8MB PARAM
12 53.5MB 55.6MB 2097kB IPL Modem
13 55.6MB 72.4MB 16.8MB Modem
15 72.4MB 89.1MB 16.8MB Kernel
17 89.1MB 106MB 16.8MB ext4 Kernel2
3 106MB 726MB 620MB ext4 SYSTEM
5 726MB 1972MB 1246MB ext4 DATAFS
4 1972MB 1982MB 10.0MB ext4 CACHEFS
9 1982MB 2602MB 620MB ext4 HIDDEN
8 2602MB 2702MB 100MB fat32 UMS
11 2702MB 3949MB 1247MB
to find out what partitions to restore. Note that CWM reparted doesn't touch any of "vital" partitions, and will recreate only System, data, cache and UMS. If some other partitions are missing, you have to create them via parted utility.
P.s. Be sure to read that topic in link above before flashing anything.
ChronoMonochrome said:
@matlowpap, you PMed me:
Not sure if flashing CWM backup will help here, since even flashing an official ROM didn't help. Probably your best bet is to try recovering deleted partitions via parted. Have you tried to repart internal sdcard via CWM ReParted? If no, then first connect the phone to PC via adb and run:
Code:
parted /dev/block/mmcblk0
print
If even this is not working, it's likely to be a hardware fault. Otherwise this command will print partition list. Compare output with this one
Code:
Model: MMC SEM04G (sd/mmc)
Disk /dev/block/mmcblk0: 3959MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
10 524kB 1573kB 1049kB PIT
6 1573kB 3146kB 1573kB CSPSA FS
7 4194kB 14.7MB 10.5MB ext4 EFS
2 14.7MB 31.5MB 16.8MB ext4 Modem FS
14 32.5MB 34.6MB 2097kB SBL
16 34.6MB 36.7MB 2097kB SBL_2
1 36.7MB 53.5MB 16.8MB PARAM
12 53.5MB 55.6MB 2097kB IPL Modem
13 55.6MB 72.4MB 16.8MB Modem
15 72.4MB 89.1MB 16.8MB Kernel
17 89.1MB 106MB 16.8MB ext4 Kernel2
3 106MB 726MB 620MB ext4 SYSTEM
5 726MB 1972MB 1246MB ext4 DATAFS
4 1972MB 1982MB 10.0MB ext4 CACHEFS
9 1982MB 2602MB 620MB ext4 HIDDEN
8 2602MB 2702MB 100MB fat32 UMS
11 2702MB 3949MB 1247MB
to find out what partitions to restore. Note that CWM reparted doesn't touch any of "vital" partitions, and will recreate only System, data, cache and UMS. If some other partitions are missing, you have to create them via parted utility.
P.s. Be sure to read that topic in link above before flashing anything.
Click to expand...
Click to collapse
I will try as soon as I can your method but please can you upload a CWM back up too.
I want to be sure that it is not working.
matlowpap said:
I will try as soon as I can your method but please can you upload a CWM back up too.
I want to be sure that it is not working.
Click to expand...
Click to collapse
I don't have neither enough internet traffic to upload nand backup nor high enough upload speed. Of course you can ask someone else to upload CWM backup, but it would be senseless, as restoring nand backup won't create those deleted partitions.

Is there any way to align partitions?

Dear friends,
As we know well, it requires more space for system partition of recent android than the stock image.
I found two way to get more space for system partition as;
- Use repartition script with parted tool to obtain more space.
- System partition can be brought to the space of beginning of userdata partition by splitting.
Furthermore, I studied and tried to align all partitions by shifting them on wasted free spaces(sum up about 500MB) manually, and to bring cache/system and userdata partition at the end of eMMC by using dd command & parted tool on TWRP adb shell, however, as you expected, device bricked.
So... I cannot imagine any other possibilities to achieve goals;
- to bring cache/system/userdata partition to stay at the end of eMMC, to flexibly adjust system/userdata partitions in the future against size-increasing of next android version
- to bring and to align other partitions be fixed at the beginning of eMMC, not to waste free spaces
Is there any good idea?
FYR, below is current partition state of my device.
Code:
~ # parted /dev/block/mmcblk0 unit MiB p free
Model: MMC MMC32G (sd/mmc)
Disk /dev/block/mmcblk0: 29504MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
0.00MiB 0.02MiB 0.01MiB Free Space
1 0.02MiB 85.5MiB 85.5MiB fat16 radio
2 85.5MiB 88.5MiB 3.00MiB modemst1
3 88.5MiB 91.5MiB 3.00MiB modemst2
4 91.5MiB 106MiB 14.6MiB ext4 persist
5 106MiB 107MiB 0.76MiB m9kefs1
6 107MiB 108MiB 0.76MiB m9kefs2
7 108MiB 108MiB 0.76MiB m9kefs3
8 108MiB 111MiB 3.00MiB fsg
24 111MiB 112MiB 1.00MiB misc
29 112MiB 112MiB 0.03MiB metadata
25 112MiB 128MiB 16.0MiB recovery
23 128MiB 448MiB 320MiB ext4 cache
9 448MiB 449MiB 1.46MiB sbl1
10 449MiB 451MiB 1.46MiB sbl2
11 451MiB 453MiB 2.00MiB sbl3
12 453MiB 458MiB 5.00MiB aboot
13 458MiB 458MiB 0.50MiB rpm
458MiB 512MiB 53.6MiB Free Space
14 512MiB 528MiB 16.0MiB boot
528MiB 576MiB 48.0MiB Free Space
15 576MiB 576MiB 0.50MiB tz
16 577MiB 577MiB 0.00MiB pad
17 577MiB 578MiB 1.46MiB sbl2b
18 578MiB 580MiB 2.00MiB sbl3b
19 580MiB 585MiB 5.00MiB abootb
20 585MiB 585MiB 0.50MiB rpmb
21 585MiB 586MiB 0.50MiB tzb
22 586MiB 2176MiB 1590MiB ext4 system
26 2176MiB 2176MiB 0.01MiB DDR
27 2176MiB 2176MiB 0.01MiB ssd
28 2176MiB 2176MiB 0.00MiB m9kefsc
30 2176MiB 29504MiB 27328MiB ext4 userdata
29504MiB 29504MiB 0.01MiB Free Space
~ #
Partitions 9~21, 26~28 are not able to be moved, due to bricking.
I can't preserve with broken free spaces and with unnecessary large space allocation for cache partition.

Categories

Resources