MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      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 software
      Nintendo 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 be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      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 / suspensions / ban.

[Guide] Changing the size of your Partitions!

20 posts in this topic

Posted (edited) · Report post

I managed to change the size of my partitions today by quite a simple hack, and thought it might be useful to others.

I guess it opens up a lot of possibilities for those who can be bothered with it.

All data will be lost doing this.

The partitions I have modified successfully are:

/data: Increased to 2GB (broke clockworkmod) 1.85GB Useful if you can't be arsed with A2SD.

/system: Increased to half a gig. Useful if you want a big OS, I just did it to see if I can!

/cache: Big increase to a gig! (probably overkill, but I then modified build.prop in CM7 to put the dalvik-cache there!) I know my cache will always have MORE than enough space and I could download as big as APK ever from the market!

/(recovery partition): Increased from 20mb to 50mb. Again, just to see if I can. Would give the possibility of a bigger recovery with more options I suppose.

As a result, my internal memory card is now only 3.88 GB. Hence I would recommend this mod with Cyanogenmod that uses your external SD card as primary rather than stock, that uses the internal card as primary (/sdcard).

Now the important bit:

I have only done this ONCE and it worked. I do not know if or not it will work for YOU. If you brick your phone, then I am sorry however you have been warned!

I do however think if it all goes wrong, you can get your phone working using NVFlash with a default config. I have not tried and I am not sure!

The Guide

Sort out NVFlash

You need to download NVFlash from here:

And then follow instructions from here:

Read the instructions, install the drivers. Test using "nvflash --sync" but do not run flash.bat yet!

Right now you should have NVFlash, the APX-Mode driver installed and "nvflash --sync" has given a promising output.

IF you have having trouble with NVFlash, use a proper LG cable. The cheap Chinese ones are CRAP. Mine was not supplying enough power and causing NVFlash to drop out at random points with all sorts of weird and wonderful messages. Use the cable that came with your phone!

Configure NVFlash

Make a backup of android_fastboot_emmc_full.cfg. This is your "stock" layout. After backing up, open in Notepad++ or similar Linux-Friendly text editor (NOT windows Notepad!)

This is your partition layout. Partitions of interest are:

ID - 6, Name: APP, this is /system

ID - 7, Name: CAC, this is /cache

ID - 14, Name: SOS, this is Recovery

ID - 16, Name: UDA, this is /data

ID - 18, Name: UDB, this is Internal SD

Basically, you just need to change the size to suit your needs. The size are in bytes. Make sure you follow the notes:

1. I read somewhere these must be multiples of 2048. I would use nice round figures such as 2 gigabytes (size=2147483648)

2. UDB has size: size=0xFFFFFFFFFFFFFFFF I guess this means "all of the rest".

3. I would not remove UDB COMPLETELY!

4. Make sure you don't over allocate. Im sure I dont need to say it but you can't have a 20gb /data ;)

Applying the update

Run "flash.bat". You will loose EVERYTHING. After this is complete I just SuperOneClicked, got ClockworkMod installed, got the Baseband installed and flashed back to CM7. Job done.

Update / Related Stuff

Could use being in Post 2 really but anyway...

Sample Partition Sizes

Currently I am using:

/system (512 MB): size=536870912

/cache (1 GB): size=1073741824

/data (about 1.85 GB): size=1986420736

Recovery (50 MB): size=52428800

/cache is 60mb Stock. Unless you are going to hack CM to dump its dalvik-cache (covered here: ) on the Cache partition, you won't need it too big. Suggested Sizes:

128MB: size=134217728

256MB: size=268435456

512MB: See Above

1 GB: See Above

/system you might as well leave stock or change to half a gig (see above). Not sure there is a point increasing past this unless you want to push a lot of apps using ADB. I guess it has the same restriction as /data, so can't be much more than 1.75.

/data is 1.5GB stock. Suggested values:

1.75GB: 1879048192

~1.80GB: size=1932734464

~1.85GB: size=1986420736

(Not sure if the limit is 2GB or 2000000000 bytes so this one is really experimental)

~1.99GB: size=2136745984

ClockworkMod

If you want NVFlash to automatically put ClockworkMod on your recovery section rather than stock, then do this before flashing:

- Backup your old recovery.img file.

- Download: http://download.clockworkmod.com/recoveries/recovery-clockwork-5.0.2.0-p990.img

- Rename to recovery.img and put in nvflash folder.

CyanogenMod: Putting the dalvik-cache for System apps on /cache instead of /data

Link:

Edited by mankian
2

Share this post


Link to post
Share on other sites

Posted · Report post

That's a damn good find that, nice one.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I cant stress how "dodgy" this is. Developers only I think ;) Just had a really odd issue where the /data partition became read-only in clockworkmod, and formatting it gave an error. I have now decreased it to 1.75GB see if that helps...

0

Share this post


Link to post
Share on other sites

Posted · Report post

Yep. A decrease to 1.75 has sorted that. I guess it can only be pushed so far...

0

Share this post


Link to post
Share on other sites

Posted · Report post

Stick it on XDA Devs, some crazy bastard will run with it :lol:

0

Share this post


Link to post
Share on other sites

Posted · Report post

Wow! I was looking for that like crazy. I will test a 4gb partition. In my understanding I won't be able to restore I data with cwm but who cares as Long as titanium backup works. Right?

Thank you!

0

Share this post


Link to post
Share on other sites

Posted · Report post

CWM should still work, I think.

It does on the Desire when changing partition sizes.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Orlox let me know how you get on please...

I know when I had mine set to 2GB every time I re-created filesystems (mke2fs) they would stay the same! (ie, not re-create!) and when I formatted /data using the CWM menu it just errored every time.

I am going to run with 1.75 data, 1 GB cache and 512mb System. Just got CM loaded on and everythings looking good!

0

Share this post


Link to post
Share on other sites

Posted · Report post

@ mankian : Thank you for this mod.

Can you post the exact value of your change please?

Enjoy :D

Cyrille

0

Share this post


Link to post
Share on other sites

Posted · Report post

Will post when I am at home and have access to the file

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok thanks ^^

Enjoy :D

Cyrille

0

Share this post


Link to post
Share on other sites

Posted · Report post

Very nice! :)

P

0

Share this post


Link to post
Share on other sites

Posted · Report post

how did you tell cm to mount dalvic @ cache?

0

Share this post


Link to post
Share on other sites

Posted · Report post

@ orlox

Made a new thread as the first post of this one is becoming a book.

1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

fine, working great !

only system partition didn´t change for me, but i set same value as for cache ... strange...

after NVFlash, i directly restored CM backup.

included cwm-5.0.2.6 recovery in NVFlash, worked like a charm. no need for SuperOneClick, just restored backup, baseband 0823 was keeped !

thanks for sharing.

screenshot1318357358009.pngscreenshot1318358613748.pngunbenanntofs.jpg

Edited by 75markus
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

here is pre-build Partitons File & Quick Guide in my MediaFireShareFolder :

->

System : 0.50 GB

Cache : 1,0 GB

Recovery : 50 MB

Data : 1.75 GB

http://www.mediafire...kzno9z45so5sj,1

Edited by 75markus
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

My new setup

/cache=134217728

/data=2136745984

/misc=536870912

Then I moved dalvic to /misc

So i dont need to relink every time I clear cache and I have more room for apps :)

It would be cool though if we could do more that 2gbs for /data

Edited by orlox
0

Share this post


Link to post
Share on other sites

Posted · Report post

My new setup

/cache=134217728

/data=2136745984

/misc=536870912

Then I moved dalvic to /misc

So i dont need to relink every time I clear cache and I have more room for apps :)

It would be cool though if we could do more that 2gbs for /data

how did you move the dalvik partition?

0

Share this post


Link to post
Share on other sites

Posted · Report post

That'll explain how to utilise /cache for dalvik-cache.

It only seems to put the cache system apps (between 40-80mb worth of cache) there though. the rest (which isnt a lot!) is still put on /data

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for the info... B)

I have missed it !:P

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.