[Utility][WIP/DEV] FireParted v1.1 - KF Partition Manager

Search This thread

eldarerathis

Senior Member
Jun 21, 2010
159
316
Notice: I'm shelving this, at least for now. The errors are too inconsistent and sporadic, and testing has proven to bee rather arduous. I won't delete the repos, but I'm not currently planning to support or look at this much for at least the near future. It's worked for some people, but USE AT YOUR OWN RISK only. I am not providing binaries for this, if you want to use it then you'll need to build it yourself and if you go to that much trouble I would hope you know what you're doing.

If an error occurs, I recommend rebooting into any version of FIREFIREFIRE that has the 'fastboot oem format' command and using that to fix your partition table. If you have no idea what that last sentence just said, I strongly suggest you do not use this tool.

-----

I briefly mentioned in a previous post that I was working on an app that would enable you to resize your data, cache, and sdcard partitions so that you can have some more app installation space. Now that I've gotten everything to a stable point, I'd like to go ahead and release my work to the general public for anyone who wants to give it a try. So, I'd like to present what I've named FireParted.

What is it?

FireParted is a basic partition manager for your Kindle Fire, released under the GNU General Public License v3.0. It provides you with a (hopefully) intuitive GUI for resizing your data, cache, and sdcard partitions. It does not support or affect any other partitions on your device.

FirePartedScreen1.png


How does it work?

To use FireParted you will first need the following:

  1. ADB needs to be configured on your computer to connect to your Kindle Fire. This will not install or configure the ADB drivers for you, but KFU will.
  2. You need to have a custom recovery installed (tested against TWRP, but ClockworkMod should also work)
  3. You need to have Windows with the .NET 3.5 Framework installed (Win7 ships with this, XP and Vista users can use the link to the left if needed). I plan to support Mono, but it has not been tested yet (it does build in MonoDevelop, though, so that's a good sign).
  4. (Optional, but recommended) FIREFIREFIRE v1.1 or later. This will give you access to the 'fastboot oem format' command should something horrible happen (power loss, your computer crashes mid-partition, etc).
  5. Your device must be in recovery mode while running FireParted in order to repartition it. Note that you can make an archive of your /data partition from a normal OS boot.
  6. (Optional) If you want to examine a data archive backup on your computer, I highly recommend 7-zip. It's lightweight, free, open source, and supports TAR and GZIP archives, which is what I'm using to create the backup.

Once you are sure that you have met the prerequisites, you can simply launch the FireParted executable to start the application. Again, before you can do any partitioning work, you will need to reboot your device into recovery. Next you should read the partition table of your device to get a baseline, and then backup your data partition (unless you want it to be formatted). The numeric controls on the left allow you to choose the partition sizes you want, and "Apply Changes" will perform the repartition for you. Then you can restore your data backup and reboot to test your new layout!

Can I get a quick feature rundown?

Sure. FireParted currently supports the following:
  • Repartitioning of the data, cache, and sdcard partitions, to allow for larger app installation space (for example).
  • Archiving and unarchiving of the data partition (to preserve data during a repartition). Can be used simply as a backup mechanism if desired (requires root).
  • Basic sanity checking - FireParted keeps track of how much space you have to split amongst the data/cache/sdcard partitions, and won't let you create a partition that doesn't fit. It also won't let you shrink a partition to be smaller than its current contents. Also limits the cache partition to a minimum of 64MB.

Where can I get it?

The source code is available on my GitHub.
 
Last edited:

eldarerathis

Senior Member
Jun 21, 2010
159
316
CHANGELOG

Version 1.1 - 01/04/2012:

Fixed some math/parsing so that FireParted will be more intelligent when determining start/end points for partitions.

Version 1.0.1 - 01/04/2012:

Fixed a minor bug that would cause the GUI buttons to get stuck in a disabled state if an error occurred while reading the partition table.

Version 1.0 - 01/04/2012:

Initial release. Includes all of the planned basic features:
  • Repartitioning of the data, cache, and sdcard partitions, to allow for larger app installation space (for example).
  • Archiving and unarchiving of the data partition (to preserve data during a repartition). Can be used simply as a backup mechanism if desired (requires root).
  • Basic sanity checking - FireParted keeps track of how much space you have to split amongst the data/cache/sdcard partitions, and won't let you create a partition that doesn't fit. It also won't let you shrink a partition to be smaller than its current contents.

Planned features/Needs work

  • Figure out what the hell is causing the "cannot meet constraints" error on other Fires (but not mine :()
  • Test and support Mono builds/execution on Windows
  • Test and support Mono builds/execution on Linux (possibly Mac as well)
 
Last edited:

eldarerathis

Senior Member
Jun 21, 2010
159
316
Amazing! I assume I can also use this to claim more general storage space? Is their a minimum size I should avoid hitting?

Sure, you can tweak the values in either direction. Really, however much you think you can manage with should work fine, I would think. When you read out your partition table the meters will let you know how much space you're currently using on each partition, so if you have a lot of free space on /data and don't intend to install a lot of large apps there's no reason you can't shrink it.

I do currently enforce (in code) a 64 MB minimum on the /cache partition. I chose 64 MB because the limit on apks in the Market is 50 MB (source), so 64 MB should in hopefully give you enough space to install anything from the Market.

Of course, another consideration might be OTA updates. A 64 MB cache partition would be too small for the 6.2.1 OTA update package to download, for example. It's possible this could be a sort of poor man's protection from unwanted OTA updates, but I can't make any guarantees :D
 

airmaxx23

Senior Member
Jun 25, 2010
4,681
1,392
Colton, NY
Not sure what happened, I followed the instruction and it got the the part where it tries to partition the sdcard and came up with an error about not meeting constraints ( i made sure I had plenty of free space). The program and phone froze up, I can only boot into recovery. When I run the program and check I no longer have partition 10 or 11.

I'm having bad luck with this device.
 

dnathan13

Senior Member
Sep 17, 2010
828
221
Not sure what happened, I followed the instruction and it got the the part where it tries to partition the sdcard and came up with an error about not meeting constraints ( i made sure I had plenty of free space). The program and phone froze up, I can only boot into recovery. When I run the program and check I no longer have partition 10 or 11.

I'm having bad luck with this device.

I had the same issue and tried to do it by hand. When I get into print the parted it says all of the partitions are there, but I can't get out of recovery
 

eldarerathis

Senior Member
Jun 21, 2010
159
316
Not sure what happened, I followed the instruction and it got the the part where it tries to partition the sdcard and came up with an error about not meeting constraints ( i made sure I had plenty of free space). The program and phone froze up, I can only boot into recovery. When I run the program and check I no longer have partition 10 or 11.

I'm having bad luck with this device.

Can you post your current partition table?

I had the same issue and tried to do it by hand. When I get into print the parted it says all of the partitions are there, but I can't get out of recovery

Are you stuck in the recovery bootmode, or does it simply fail to boot? Can you post your current partition table, too?
 

airmaxx23

Senior Member
Jun 25, 2010
4,681
1,392
Colton, NY
I had the same issue and tried to do it by hand. When I get into print the parted it says all of the partitions are there, but I can't get out of recovery

I was able to create and setup partition 10 and 11 but I was only able to boot into recovery. I tried restoring a few backups, wiped data, cache, system, tried installing CM7 and always ended up only booting into recovery. As a last ditch effort I installed the stock 6.2.1 update.zip and it is back working again. I had to re-root and reinstall recovery but I've restored my backup and everything is back up and running fine. Now I'll be able to sleep tonight...:eek:
 
Last edited:

dnathan13

Senior Member
Sep 17, 2010
828
221
I was able to create and setup partition 10 and 11 but I was only able to boot into recovery. I tried restoring a few backups, wiped data, cache, system, tried installing CM7 and always ended up only booting into recovery. As a last ditch effort I installed the stock 6.2.1 update.zip and it is back working again. I had to re-root and reinstall recovery but I've restored my backup and everything is back up and running fine. Now I'll be able to sleep tonight...:eek:

I don't have that, do you have the thread?

Edit: found and I am all good now
 
Last edited:

Matt V

Senior Member
Jun 19, 2010
545
39
So can I do this on my current ROM to add space for apps without losing data?
 

Matt V

Senior Member
Jun 19, 2010
545
39
Well this thing bricked my KF. I'm having the same issues as the people from the previous posts. I installed 6.2.1 but now I'm stuck at the notorious "your Kindle has detected a problem" and nothing in CMD is working for me.
 

eldarerathis

Senior Member
Jun 21, 2010
159
316
Well this thing bricked my KF. I'm having the same issues as the people from the previous posts. I installed 6.2.1 but now I'm stuck at the notorious "your Kindle has detected a problem" and nothing in CMD is working for me.

As long as you can get into fastboot/recovery it should be fixable. FIREFIREFIRE v1.1 can 'fastboot oem format' to reset the device to its initial internal point, or in recovery you can examine the partition table and fix whatever is in a bad state.

I don't have a copy of the partition table but the program tried to resize the media section and had an error then partition 10 and 11 were gone. I then used the steps in the last few posts of the manual partitioning guide to make partitions 10 and 11.

Actually, would you be willing/able to post your layout as it is now? That could be helpful, too, even in its current working state.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    Notice: I'm shelving this, at least for now. The errors are too inconsistent and sporadic, and testing has proven to bee rather arduous. I won't delete the repos, but I'm not currently planning to support or look at this much for at least the near future. It's worked for some people, but USE AT YOUR OWN RISK only. I am not providing binaries for this, if you want to use it then you'll need to build it yourself and if you go to that much trouble I would hope you know what you're doing.

    If an error occurs, I recommend rebooting into any version of FIREFIREFIRE that has the 'fastboot oem format' command and using that to fix your partition table. If you have no idea what that last sentence just said, I strongly suggest you do not use this tool.

    -----

    I briefly mentioned in a previous post that I was working on an app that would enable you to resize your data, cache, and sdcard partitions so that you can have some more app installation space. Now that I've gotten everything to a stable point, I'd like to go ahead and release my work to the general public for anyone who wants to give it a try. So, I'd like to present what I've named FireParted.

    What is it?

    FireParted is a basic partition manager for your Kindle Fire, released under the GNU General Public License v3.0. It provides you with a (hopefully) intuitive GUI for resizing your data, cache, and sdcard partitions. It does not support or affect any other partitions on your device.

    FirePartedScreen1.png


    How does it work?

    To use FireParted you will first need the following:

    1. ADB needs to be configured on your computer to connect to your Kindle Fire. This will not install or configure the ADB drivers for you, but KFU will.
    2. You need to have a custom recovery installed (tested against TWRP, but ClockworkMod should also work)
    3. You need to have Windows with the .NET 3.5 Framework installed (Win7 ships with this, XP and Vista users can use the link to the left if needed). I plan to support Mono, but it has not been tested yet (it does build in MonoDevelop, though, so that's a good sign).
    4. (Optional, but recommended) FIREFIREFIRE v1.1 or later. This will give you access to the 'fastboot oem format' command should something horrible happen (power loss, your computer crashes mid-partition, etc).
    5. Your device must be in recovery mode while running FireParted in order to repartition it. Note that you can make an archive of your /data partition from a normal OS boot.
    6. (Optional) If you want to examine a data archive backup on your computer, I highly recommend 7-zip. It's lightweight, free, open source, and supports TAR and GZIP archives, which is what I'm using to create the backup.

    Once you are sure that you have met the prerequisites, you can simply launch the FireParted executable to start the application. Again, before you can do any partitioning work, you will need to reboot your device into recovery. Next you should read the partition table of your device to get a baseline, and then backup your data partition (unless you want it to be formatted). The numeric controls on the left allow you to choose the partition sizes you want, and "Apply Changes" will perform the repartition for you. Then you can restore your data backup and reboot to test your new layout!

    Can I get a quick feature rundown?

    Sure. FireParted currently supports the following:
    • Repartitioning of the data, cache, and sdcard partitions, to allow for larger app installation space (for example).
    • Archiving and unarchiving of the data partition (to preserve data during a repartition). Can be used simply as a backup mechanism if desired (requires root).
    • Basic sanity checking - FireParted keeps track of how much space you have to split amongst the data/cache/sdcard partitions, and won't let you create a partition that doesn't fit. It also won't let you shrink a partition to be smaller than its current contents. Also limits the cache partition to a minimum of 64MB.

    Where can I get it?

    The source code is available on my GitHub.
    3
    CHANGELOG

    Version 1.1 - 01/04/2012:

    Fixed some math/parsing so that FireParted will be more intelligent when determining start/end points for partitions.

    Version 1.0.1 - 01/04/2012:

    Fixed a minor bug that would cause the GUI buttons to get stuck in a disabled state if an error occurred while reading the partition table.

    Version 1.0 - 01/04/2012:

    Initial release. Includes all of the planned basic features:
    • Repartitioning of the data, cache, and sdcard partitions, to allow for larger app installation space (for example).
    • Archiving and unarchiving of the data partition (to preserve data during a repartition). Can be used simply as a backup mechanism if desired (requires root).
    • Basic sanity checking - FireParted keeps track of how much space you have to split amongst the data/cache/sdcard partitions, and won't let you create a partition that doesn't fit. It also won't let you shrink a partition to be smaller than its current contents.

    Planned features/Needs work

    • Figure out what the hell is causing the "cannot meet constraints" error on other Fires (but not mine :()
    • Test and support Mono builds/execution on Windows
    • Test and support Mono builds/execution on Linux (possibly Mac as well)
    2
    So not sure if anyone is still interested in this but the issue is pretty straight forward. For whatever reason, "umount sdcard" doesn't work. I looked at the source code for FireParted and in the constants.cs file, umount sdcard is being used so it that's why the program fails. You have to unmount the sdcard partition by it's name. After I did this, I was able to remove all the partitions, resize them, rename them then boom, done :good:
    1
    1
    Take a look here, you'll have to rebuild your partitions manually

    http://xdaforums.com/showthread.php?t=1388996

    ---------- Post added at 02:43 PM ---------- Previous post was at 02:41 PM ----------

    then run the fastboot oem format command