View Single Post
Old 04-16-2012, 01:50 PM   #1
zxcvbs
Member
zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.zxcvbs ought to be getting tired of karma fortunes by now.
 
Posts: 21
Karma: 1537188
Join Date: Jan 2012
Device: k3
Easy way to resize kindle partition?

hi is there any easy way to resize a kindle 2/3 root filesystem?

To get more mb i had to:

Backup

Code:
dd if=/dev/mmcblk0 of=/mnt/us/mmcblk0_7688.dmp bs=512 count=7688
dd if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.dmp
dd if=/dev/mmcblk0p2 of=/mnt/us/mmcblk0p2.dmp
dd if=/dev/mmcblk0p3 of=/mnt/us/mmcblk0p3.dmp

cp the files to a local machine. and

Edit partition table

Code:
sudo sfdisk -d mmcblk0_7688.dmp > ptable.txt

edit the partition table on ptable.txt

sudo sfdisk --no-reread -f mmcblk0_7688.dmp -O PT.save < ptable.txt

cp mmcblk0_7688.dmp to kindle storage
ssh kindle

Code:
dd if=/mnt/us/mmcblk0_7688.dmp of=/dev/mmcblk0 bs=512 

umount mmcblk0p2 mmcblk0p3 mmcblk0p4

mkfs.vfat /dev/mmcblk0p4
mkfs.ext3 /dev/mmcblk0p3
mkfs.ext3 /dev/mmcblk0p2
dd if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.dmp


cp mmcblk0p1.dmp to a local machine
Resize Filesystem


Code:
local machine

tune2fs -O ^has_journal mmcblk0p1.dmp
e2fsck -f  mmcblk0p1.dmp
resize2fs  mmcblk0p1.dmp
tune2fs -j mmcblk0p1.dmp

cp mmcblk0p1.dmp to kindle usb storage.

kindle
dd if=/dev/mmcblk0p1 of=mmcblk0p1.dmp
Reboot.

Im on the work, so some commands are missing, this is more a question than a procedure to resize.
Always flash your kindle with Yifanlu custom kernel before or you will brick it (and have at hand a restore.bin backup).

Last edited by zxcvbs; 04-16-2012 at 02:10 PM.
zxcvbs is offline   Reply With Quote