Thread: PRS-T1 Android Market working
View Single Post
Old 01-17-2012, 09:07 PM   #28
j0534ng31
Connoisseur
j0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheese
 
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
Quote:
Originally Posted by uboot View Post
Is there a debug mode one can enter in order to remout /data without breaking anything?
Yes, if you have enable_adb installed, but I think this doesn't work with the last firmware version (I don't have yet upgraded):

1- Reboot in recovery mode (by using a MsDOS Window):
Code:
ebook_msc.exe name "PRS-T1" um recovery
(ebook_msc.exe comes with every boroda package)

2- Install the new "Gadget Serial" device discovered by Windows: Use the "gserial.inf" in boroda packages for 32bit windows or search in the web for "linux-cdc-acm.inf" if you are using 64bit windows

3- Now you have a new COM Port (for instance, COM10: )

4- And after that you can use "teraterm", "HyperTerminal" or any other serial terminal to begin a serial connection with the new port COM10:

5- [at the black screen, press ENTER] User: root / no password

6- Do what you want! Some tips (if you need some help):
Code:
# mount the READER
mount /dev/mmcblk0p1 /mnt/sd
#
# make a backup of data partition
dd if=/dev/mmcblk2p9 of=/mnt/sd/mmcblk2p9.img
#
# make a backup of system partition
dd if=/dev/mmcblk2p10 of=/mnt/sd/mmcblk2p10.img
#
# mount data partition
mkdir /tmp/data
mount -t auto /dev/mmcblk2p9 /tmp/data
#
# mount system partition
mkdir /tmp/system
mount -t auto /dev/mmcblk2p10 /tmp/system
#
############################
# CHANGE WHAT YOU WANT !!! #
############################
#
sync
umount /dev/mmcblk2p9
umount /dev/mmcblk2p10
umount /dev/mmcblk0p1
#
reboot
7- If something goes wrong, repeat from 1st step and, instead of 6th one, you have to do:
Code:
# mount the READER
mount /dev/mmcblk0p1 /mnt/sd
#
# recover data partition from backup
dd if=/mnt/sd/mmcblk2p9.img of=/dev/mmcblk2p9
#
# recover system partition from backup (only if needed)
dd if=/mnt/sd/mmcblk2p10.img of=/dev/mmcblk2p10
#
sync
umount /dev/mmcblk0p1
#
reboot
NOTE 1:
I can't remember if devices are /dev/mmcblk... or /dev/block/mmcblk... You have to use the right one.
NOTE 2:
With old firmware versions, the backup/restore procedure can also be done from normal mode by using:

To make the backup:
Code:
ebook_msc.exe name "PRS-T1" get /dev/block/mmcblk2p10 c:\mmcblk2p10.img
ebook_msc.exe name "PRS-T1" get /dev/block/mmcblk2p9 c:\mmcblk2p9.img
To restore the backup:
Code:
ebook_msc.exe name "PRS-T1" put c:\mmcblk2p10.img /dev/block/mmcblk2p10
ebook_msc.exe name "PRS-T1" put c:\mmcblk2p9.img /dev/block/mmcblk2p9
Anyway, although more simple, this method is not recommended as you are reading/writing a "live" system (you can have problems with opened files,...) It's best and safe to use the good old "dd" method in a stopped system

Last edited by j0534ng31; 01-17-2012 at 11:51 PM.
j0534ng31 is offline   Reply With Quote