• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [1st Gen] editing Kindle Fire Patitions with Parted

cloudman

Newbie
I would use Parted instead of the Fireparted Utility to change the partitions.

before continuing make sure that you do a nandroid backup first because this will delete everything that on the partitions.

then just to be safe make a copy of that and put it one your pc.

this is what I was left with after fireparted errored, which I believe might have been my fault because I didnt make sure the patitions being edited were unmounted.


step4_zpsffa42545.jpg

As you can see in above pic my 10 and 11 partitions are missing .



step5_zps413120db.jpg


The Pic above shows the 10 and 11 partitions restored after applying the commands below.

This is assuming you have ADB Server configed and working on your PC.
connect kindle fire to pc, then boot into recovery.

$ abd shell
~ # umount "directory_name" (just to make sure its unmounted)

~ # parted /dev/block/mmcblk0

(parted) rm "partition_number" ( this will remove the partition so it can be recreated)

(parted) mkpart primary "startblock" "endblock"

(parted) name "partition_number" "partition_name"

(parted) quit

~ # mke2fs -t ext4 /dev/block/mmcblk0p"partition_number"

~ # mount "directory_name" (this command failed for me but it was not needed)

The values for the previous command variables are as follows...


SYSTEM
-------------------------------
"partition_number"= 9
"directory_name" = /system
"partition_name" = system
"startblock" = 312 "endblock" = 849

DATA
------------------------------
"partition_number"= 10
"directory_name" = /data
"partition_name" = userdata
"startblock" = 849 "endblock" = 2041

CACHE
-------------------------------
"partition_number"= 11
"directory_name" = /cache
"partition_name" = cache
"startblock" = 2041 "endblock" = 2309

Example data partition:

Code:

$ abd shell

~ # umount 10

~ # parted /dev/block/mmcblk0

(parted) rm 10

(parted) mkpart primary 849 2041

(parted) name 10 userdata

(parted) quit

~ # mke2fs -t ext4 /dev/block/mmcblk0p10

~ # mount /data
You now have a partition 10 with a ext4 filesystem

After your done you can restore your backup.

If you still want to use fireparted I would suggest that you make sure your partitions are unmounted before continuing

Thanks to a few different places I was able to find the info to repair mine and I hope that it helps you all out.

If this post helped ya out, give me a thanks. :)
God Bless
 
Back
Top Bottom