• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

custom you data partition's size

57 posts in this topic

Posted

Playing with partitions it's playing with fire.

For example my device won't revert up official partitions anymore. Honestly can't understand why

0

Share this post


Link to post
Share on other sites

Posted (edited)

Dear Geno.Kolar

i try to adapt this script to the g330 (U8825-1), so i like to understand it completely. You are great in EDIFY!

will update-binary also run on 8825?

then, in you description, you run this tool two times. when i check the script backup, it seems have to run 3 times (actually, at 3runisok it will set 4runisok at once, so tar -x is running).

third, why dont you save /olddata completely, but just 6 dirs and 2 files?

has updater-script run also two times - when I run this tool two times? it seems to do everything in one run!

finally , have we to remove the "U8800-MMC" in mkfs.vfat ?

regards

P.S:. which fdisk program do you use (or which busybox) when i played with my fdisk, i get strange messages:

(p18 is data, p19 is "sdcard")

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes

1 heads, 16 sectors/track, 477184 cylinders

Units = cylinders of 16 * 512 = 8192 bytes


			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		  41		 300  45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			  41	   16681	  133120   c Win95 FAT32 (LBA)

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4		   16681	  477184	 3684031+  5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		   16897	   18432	   12288  6a Unknown

/dev/block/mmcblk0p6		   18433	   18944	    4096  46 Unknown

/dev/block/mmcblk0p7		   18945	   19456	    4096  63 GNU HURD or SysV

/dev/block/mmcblk0p8		   19457	   19840	    3072  58 Unknown

/dev/block/mmcblk0p9		   19969	   20352	    3072  4a Unknown

/dev/block/mmcblk0p10		  20481	   20864	    3072  4b Unknown

/dev/block/mmcblk0p11		  20993	   21504	    4096  47 Unknown

/dev/block/mmcblk0p12		  21505	   22528	    8192  48 Unknown

/dev/block/mmcblk0p13		  22529	   25088	   20480  60 Unknown

/dev/block/mmcblk0p14		  25089	   25600	    4096  6c Unknown

/dev/block/mmcblk0p15		  25601	   50176	  196608  83 Linux

/dev/block/mmcblk0p16		  50177	   60416	   81920  83 Linux

/dev/block/mmcblk0p17		  60417	  125952	  524288  83 Linux

/dev/block/mmcblk0p18		 125953	  207872	  655360  83 Linux

/dev/block/mmcblk0p19		 207873	  477184	 2154496  6b Unknown


expert mode:

...

10 00   0   0    0   0   0    0	  60794	   6144 4b

11 00   0   0    0   0   0    0	  68985	   8192 47

12 00   0   0    0   0   0    0	  77176	  16384 48

13 00   0   0    0   0   0    0	  93559	  40960 60

14 00   0   0    0   0   0    0	 134518	   8192 6c

15 00   0   0    0   0   0    0	 142709	 393216 83

16 00   0   0    0   0   0    0	 535924	 163840 83

17 00   0   0    0   0   0    0	 699763    1048576 83

18 00   0   0    0   0   0    0    1748338    1310720 83

19 00   0   0    0   0   0    0    3059057    4308992 6b   


so i tried:


Command (m for help): d

Partition number (1-19): 19


Command (m for help): d

Partition number (1-18): 18


Command (m for help): p


Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes

1 heads, 16 sectors/track, 477184 cylinders											    

Units = cylinders of 16 * 512 = 8192 bytes


			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		  41		 300  45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			  41	   16681	  133120   c Win95 FAT32 (LBA)

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4		   16681	  477184	 3684031+  5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		   16897	   18432	   12288  6a Unknown

/dev/block/mmcblk0p6		   18433	   18944	    4096  46 Unknown

/dev/block/mmcblk0p7		   18945	   19456	    4096  63 GNU HURD or SysV

/dev/block/mmcblk0p8		   19457	   19840	    3072  58 Unknown

/dev/block/mmcblk0p9		   19969	   20352	    3072  4a Unknown

/dev/block/mmcblk0p10		  20481	   20864	    3072  4b Unknown

/dev/block/mmcblk0p11		  20993	   21504	    4096  47 Unknown

/dev/block/mmcblk0p12		  21505	   22528	    8192  48 Unknown

/dev/block/mmcblk0p13		  22529	   25088	   20480  60 Unknown

/dev/block/mmcblk0p14		  25089	   25600	    4096  6c Unknown

/dev/block/mmcblk0p15		  25601	   50176	  196608  83 Linux

/dev/block/mmcblk0p16		  50177	   60416	   81920  83 Linux

/dev/block/mmcblk0p17		  60417	  125952	  524288  83 Linux


Command (m for help): n

First cylinder (16682-477184, default 16682): 125953

Sector 2015232 is already allocated

First cylinder (125954-477184, default 125954): 125953

Value is out of range

First cylinder (125954-477184, default 125954): 125953

Value is out of range

First cylinder (125954-477184, default 125954):


so I could not recreate part18 with same starting offset - i would loose data.

Edited by regn
0

Share this post


Link to post
Share on other sites

Posted (edited)

I just busted my phone...

I had done a restore to original MFG, then the upgrade to latest MFG, then the proper unlock code form huawei, then clockword mod.

Then I ran the update zip for the first step to resize partition and chose reboot recovery; only instead of restarting clockwordmod it tried to run the update.app from dload folder. I had skipped th install bootloader step as my bootloader was unlocked but now I think I must have needed that step.

And now, after my custom splash screen, I just get a blue screen unless there is a dload folder but that always fails.

I've tried all the varioud dload folders I have, ics, gb, hack; but all the system will do is unpack and then fail on step 2.

I can't re-install clockwork cos fastboot isn't working. I only get blue screen or update attempt.

When on the blue screen windows recognizes the device as an

* android modem

* DB Adaptor reserved interface

* Composite USB device

As my custom bootscreen loads, any tips on what I can do to recover?

Edited by samjam
0

Share this post


Link to post
Share on other sites

Posted

I think I am lost.

My error was not making sure I could get CWM booted from direct power on, instead I booted from ROM Manager.

Now unless I can find an update.app that will actually update there is nothing I can do.

I understand that these must be signed so I can't make a custom one.

Even +/- power without the battery just leaves me on a pink screen

I tried putty on the COM7 that gets created under windows, but putty just bleeps at me and refuses to open the console.

Time for a new phone I think - the power button was dodgy anyway.

0

Share this post


Link to post
Share on other sites

Posted

I got a Samsung SIII mini for £170 from Argos

0

Share this post


Link to post
Share on other sites

Posted

Is there any possible way to make a similar tool for the U9508 model?
I found the partition table, but don't have the skills to write this tool.
http://huaweiascendg615.com/2013/05/19/partition-table/

0

Share this post


Link to post
Share on other sites

Posted

Dear Geno.Kolar

i try to adapt this script to the g330 (U8825-1), so i like to understand it completely. You are great in EDIFY!

will update-binary also run on 8825?

then, in you description, you run this tool two times. when i check the script backup, it seems have to run 3 times (actually, at 3runisok it will set 4runisok at once, so tar -x is running).

third, why dont you save /olddata completely, but just 6 dirs and 2 files?

has updater-script run also two times - when I run this tool two times? it seems to do everything in one run!

finally , have we to remove the "U8800-MMC" in mkfs.vfat ?

regards

P.S:. which fdisk program do you use (or which busybox) when i played with my fdisk, i get strange messages:

(p18 is data, p19 is "sdcard")

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System
/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			   3		  41		 300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			  41	   16681	  133120   c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4		   16681	  477184	 3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		   16897	   18432	   12288  6a Unknown
/dev/block/mmcblk0p6		   18433	   18944	    4096  46 Unknown
/dev/block/mmcblk0p7		   18945	   19456	    4096  63 GNU HURD or SysV
/dev/block/mmcblk0p8		   19457	   19840	    3072  58 Unknown
/dev/block/mmcblk0p9		   19969	   20352	    3072  4a Unknown
/dev/block/mmcblk0p10		  20481	   20864	    3072  4b Unknown
/dev/block/mmcblk0p11		  20993	   21504	    4096  47 Unknown
/dev/block/mmcblk0p12		  21505	   22528	    8192  48 Unknown
/dev/block/mmcblk0p13		  22529	   25088	   20480  60 Unknown
/dev/block/mmcblk0p14		  25089	   25600	    4096  6c Unknown
/dev/block/mmcblk0p15		  25601	   50176	  196608  83 Linux
/dev/block/mmcblk0p16		  50177	   60416	   81920  83 Linux
/dev/block/mmcblk0p17		  60417	  125952	  524288  83 Linux
/dev/block/mmcblk0p18		 125953	  207872	  655360  83 Linux
/dev/block/mmcblk0p19		 207873	  477184	 2154496  6b Unknown

expert mode:
...
10 00   0   0    0   0   0    0	  60794	   6144 4b
11 00   0   0    0   0   0    0	  68985	   8192 47
12 00   0   0    0   0   0    0	  77176	  16384 48
13 00   0   0    0   0   0    0	  93559	  40960 60
14 00   0   0    0   0   0    0	 134518	   8192 6c
15 00   0   0    0   0   0    0	 142709	 393216 83
16 00   0   0    0   0   0    0	 535924	 163840 83
17 00   0   0    0   0   0    0	 699763    1048576 83
18 00   0   0    0   0   0    0    1748338    1310720 83
19 00   0   0    0   0   0    0    3059057    4308992 6b   

so i tried:

Command (m for help): d
Partition number (1-19): 19

Command (m for help): d
Partition number (1-18): 18

Command (m for help): p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders											    
Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System
/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			   3		  41		 300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			  41	   16681	  133120   c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4		   16681	  477184	 3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		   16897	   18432	   12288  6a Unknown
/dev/block/mmcblk0p6		   18433	   18944	    4096  46 Unknown
/dev/block/mmcblk0p7		   18945	   19456	    4096  63 GNU HURD or SysV
/dev/block/mmcblk0p8		   19457	   19840	    3072  58 Unknown
/dev/block/mmcblk0p9		   19969	   20352	    3072  4a Unknown
/dev/block/mmcblk0p10		  20481	   20864	    3072  4b Unknown
/dev/block/mmcblk0p11		  20993	   21504	    4096  47 Unknown
/dev/block/mmcblk0p12		  21505	   22528	    8192  48 Unknown
/dev/block/mmcblk0p13		  22529	   25088	   20480  60 Unknown
/dev/block/mmcblk0p14		  25089	   25600	    4096  6c Unknown
/dev/block/mmcblk0p15		  25601	   50176	  196608  83 Linux
/dev/block/mmcblk0p16		  50177	   60416	   81920  83 Linux
/dev/block/mmcblk0p17		  60417	  125952	  524288  83 Linux

Command (m for help): n
First cylinder (16682-477184, default 16682): 125953
Sector 2015232 is already allocated
First cylinder (125954-477184, default 125954): 125953
Value is out of range
First cylinder (125954-477184, default 125954): 125953
Value is out of range
First cylinder (125954-477184, default 125954):

so I could not recreate part18 with same starting offset - i would loose data.

Try fdisk -H64 -S32 /dev/block/mmcblk0

I have successfully changed partition 16-19 on my u8825-1

TWRP works without any restrictions

For people who loose pattition table like me as i used fdisk without offset.

Go to twrp terminal command

echo -e "n\nxxxx\n+xxxxK\nw" | fdisk -H64 -S32 /dev/block/mmcblk0

This will add next free partition

eg you have deleted 19 and 18

this will create 18

where xxxx is first block

and xxxxK or xxxxM or xxxxG is size of partition in kb/mb/gb

If you add partition 19 internal sd you have to toggle filesysten to 6b

echo -e "n\nxxxx\n+xxxxK\nt\n19\n6b\nw" | fdisk -H64 -S32 /dev/block/mmcblk0

Alternative you can skip size cause 19 is last partition with test of space using default value

echo -e "n\nxxxx\n\nt\n19\n6b\nw" | fdisk -H64 -S32 /dev/block/mmcblk0

Hope you understand syntax and this will help

Spend the whole night to unbrick my device

phil2sat

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.