View Single Post
Old 02-24-2012, 06:50 AM   #1
homeos
Junior Member
homeos will become famous soon enoughhomeos will become famous soon enoughhomeos will become famous soon enoughhomeos will become famous soon enoughhomeos will become famous soon enoughhomeos will become famous soon enough
 
Posts: 2
Karma: 552
Join Date: Feb 2012
Device: PRS-T1
Completed guide for repartitioning.

This guide is written by Lee Seungjong, who is a member of Korean PRS-T1 forum in ebookcafe.kr. I just write this guide to share with you on behalf of him.

You may not know about Linux. Me, neither. But by simply following this guide step by step, I could succeed in repartitioning and having lager space for apps without Link2sd as well as other forum members.

If you have some experience of partitioning hard disks and installing windows, it might not be too difficult. It is quite similar to windows' one.

Before you start, please read thoroughly and prepare putty program ( you can easily found it with google)


1. Backup important files in READER drive.
and then,recommend 'Factory Reset' first
2. Copy 'OS Firmware' to OS Firmware/files folder in SD card
Source: http://dl.dropbox.com/u/54414959/update.img
3. Make T1 enter 'UPDATE mode' and connect to PC
Press HOME+MENU, turn on & keep pressing until progress bar reach to the right most
4. Windows should ask 'Gadget Serial' driver. Driver is located under serial_driver OR inside various rooting packages.
If your T1 is successfully connected, the light should be red.
5. Find which COM port is assigned to 'Gadget Serial' in Device Manager.
6. connect using serial console. (9600 baud). You should meet login prompt.
'putty' would be the proper tool.
7. login 'root' without password

8. check if SD card is mounted at /initrd/mnt/sd correctly and remount it in writable mode
# df
/dev/mmcblk0p1 ==> /initrd/mnt/sd
# mount -o remount,rw /dev/mmcblk0p1 /init/mnt/sd
9. backup /dev/mmcblk2p[5-10] to SD card
# for i in 5 6 7 8 9 10
do
dd if=/dev/mmcblk2p$i of=/initrd/mnt/sd/mmcblk2p$i.img
done
10. Delete mmcblk2p[3-10] partitions & reassign them
# fdisk /dev/mmcblk2
(fdisk) p
Device Boot Start End Blocks Id System
/dev/mmcblk2p1 801 1120 10240 83 Linux
/dev/mmcblk2p2 1121 1440 10240 83 Linux
/dev/mmcblk2p3 1441 13542 387264 5 Extended
/dev/mmcblk2p4 13543 59776 1479488 83 Linux
/dev/mmcblk2p5 1441 1953 16408 83 Linux
/dev/mmcblk2p6 1954 6306 139288 83 Linux
/dev/mmcblk2p7 6307 6627 10264 83 Linux
/dev/mmcblk2p8 6628 7908 40984 83 Linux
/dev/mmcblk2p9 7909 9445 49176 83 Linux
/dev/mmcblk2p10 9446 13542 131096 83 Linux
(fdisk) d
Partition number: 4
(fdisk) d
Partition number: 3
(fdisk) n
e (extended partition)
Partition number: 3
First cylinder: 1441
Last cylinder: 28526
(fdisk) n
p (primary partition)
First cylinder: 28527
Last cylinder: 59776
(fdisk) n
First cylinder: 1441
Last cylinder: 2453
(fdisk) n
First cylinder: 2454
Last cylinder: 6806
(fdisk) n
First cylinder: 6807
Last cylinder: 7127
(fdisk) n
First cylinder: 7128
Last cylinder: 8408
(fdisk) n
First cylinder: 8409
Last cylinder: 23619
(fdisk) n
First cylinder: 23620
Last cylinder: 28526
(fdisk) w
# fdisk -l /dev/mmcblk2
Device Boot Start End Blocks Id System
/dev/mmcblk2p1 801 1120 10240 83 Linux
/dev/mmcblk2p2 1121 1440 10240 83 Linux
/dev/mmcblk2p3 1441 28526 866752 5 Extended
/dev/mmcblk2p4 28527 59776 1000000 83 Linux
/dev/mmcblk2p5 1441 2453 32408 83 Linux
/dev/mmcblk2p6 2454 6806 139288 83 Linux
/dev/mmcblk2p7 6807 7127 10264 83 Linux
/dev/mmcblk2p8 7128 8408 40984 83 Linux
/dev/mmcblk2p9 8409 23619 486744 83 Linux
/dev/mmcblk2p10 23620 28526 157016 83 Linux
11. REBOOT
# sync; sync; sync
# reboot

12. (optional) Backup mmcblk*.img in SD card to safe place

13. Enter 'UPDATE mode' & login using serial console again
14. format /dev/mmcblk2p4 in FAT32
# /sbin/mkdosfs -n READER -F 32 /dev/mmcblk2p4
15. restore /dev/mmcblk2p[5-10] except mmcblk2p9
# for i in 5 6 7 8 10
do
dd if=/initrd/mnt/sd/mmcblk2p$i.img of=/dev/mmcblk2p$i
done
16. format /dev/mmcblk2p9 in ext4 & set volume label
# /sbin/mkfs.ext4 /dev/mmcblk2p9
# /sbin/tune2fs -L data /dev/mmcblk2p9
17. mount /dev/mmcblk2p9 in a temporal path (ex: /tmp/p1)
# mkdir /tmp/p1
# mount /dev/mmcblk2p9 /tmp/p1
18. mount /mnt/sd/mmcblk2p9.img in a temporal path (ex: /tmp/p2)
# mkdir /tmp/p2
# mount -o remount,rw /dev/mmcblk0p1 /init/mnt/sd
# mount -o loop /mnt/sd/mmcblk2p9.img /tmp/p2
19. copy all files from backup image to real partition
# cd /tmp/p2
# busybox cp -a * /tmp/p1
20. Unmount all
# cd; sync; sync
# umount /tmp/p1
# umount /tmp/p2
21. change to Normal mode
# chgboot normal
22. REBOOT
# sync; sync; sync
# reboot

23. If everything is perfect, delete 'OS Firmware' directory in SD card & do Rooting


According to my experience, there was no problem until 12.
Step 13 could be difficult to get through. I was stuck since I could not enter update mode again. When my T1 was in opening books phase, light did not blink at all and computer could not connect to T1. I kept trying and it worked at last. Many other members experienced the same situation but they overcame it.

If you have the same experience, do not be panic and keep trying. At some point, you can make it.

If you go through step 13, there will be no more problem.


After repartitioning, you can get about 415 free space for apps after rooting.

Last edited by homeos; 02-24-2012 at 05:12 PM.
homeos is offline   Reply With Quote