Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2012, 06:51 AM   #1
zeb
Connoisseur
zeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with others
 
Posts: 73
Karma: 2634
Join Date: Sep 2010
Device: none
Backing up the Kindle the first time

Hi,

I will pick up my Kindle Touch tonight. I am an experienced Linux user and wish to do some hacking with it.
However, I would like to back up its partitions before doing any manipulation. I read the various thread and the wiki (https://wiki.mobileread.com/wiki/Kind...Hacking#Backup). Is the jailbreaking required to backup the 4 partitions? Or is it possible to do this on an unmodified K5?

Thanks in advance.
zeb is offline   Reply With Quote
Old 06-15-2012, 08:32 AM   #2
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
If you check the simple debricking thread (sticky), you will find some "forensic" images i.e unmodifed root and diag partitions (p1, p2). P3 can be dumped (dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K count=1024) and you can backup the usb drive by backing up all files (duh!).
aditya3098 is offline   Reply With Quote
Advert
Old 06-15-2012, 08:38 AM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by aditya3098 View Post
If you check the simple debricking thread (sticky), you will find some "forensic" images i.e unmodifed root and diag partitions (p1, p2). P3 can be dumped (dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K count=1024) and you can backup the usb drive by backing up all files (duh!).
The usb drive is FAT, so ...
if you backup /dev/mmcblk0p4 at the device level, you backup the entire file system, including "deleted" files.

Which you can (off-kindle) un-delete within the usual limitations of msdos FAT un-delete tools.

Note: When you mount the image of mmcblk0p4 you have to specifiy an offset to losetup so that it can find the start of the file system in the image of the media (same as you would have to do with the image of a bootable floppy disk).

Last edited by knc1; 06-15-2012 at 08:41 AM.
knc1 is offline   Reply With Quote
Old 06-15-2012, 09:33 AM   #4
zeb
Connoisseur
zeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with others
 
Posts: 73
Karma: 2634
Join Date: Sep 2010
Device: none
Thanks for your answer. But as far as I understand, /dev/mmcblk0p1 and /dev/mmcblk0p2 are only accessible on jailbroken kindles?
zeb is offline   Reply With Quote
Old 06-15-2012, 09:39 AM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by zeb View Post
Thanks for your answer. But as far as I understand, /dev/mmcblk0p1 and /dev/mmcblk0p2 are only accessible on jailbroken kindles?
Kindles with SSH enabled and/or a connection to the serial port.

Note: It is too late to get a copy of everything before "first boot" when it arrives, it arrives booted and asleep.

But you can (and should) pull the battery while making the serial port connections.
Instructions are indexed, see forum sticky above.

Last edited by knc1; 06-15-2012 at 09:44 AM.
knc1 is offline   Reply With Quote
Advert
Old 06-15-2012, 10:38 AM   #6
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
The usb drive is FAT, so ...
if you backup /dev/mmcblk0p4 at the device level, you backup the entire file system, including "deleted" files.

Which you can (off-kindle) un-delete within the usual limitations of msdos FAT un-delete tools.

Note: When you mount the image of mmcblk0p4 you have to specifiy an offset to losetup so that it can find the start of the file system in the image of the media (same as you would have to do with the image of a bootable floppy disk).
You can see how to mount it by examining my mntusb.params script inside my data.tar.gz in the "select boot" thread. It mounts the partition with an offset, as needed here. I could not call the built-in mntus script to mount it for me because that script sources mntus.params (i.e. infinite loop). It was easier to mount it myself than try to prevent looping, due to "sourcing" return value issues causing the startup script to reformat /dev/mmcblk0p1 after thinking it was corrupt because of bad mntus.params return values.

EDIT: You can also undelete a file on a kindle mounted as an exported USB drive. You just need to do a raw sector scan.

Last edited by geekmaster; 06-15-2012 at 11:40 AM.
geekmaster is offline   Reply With Quote
Old 06-15-2012, 11:14 AM   #7
zeb
Connoisseur
zeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with otherszeb plays well with others
 
Posts: 73
Karma: 2634
Join Date: Sep 2010
Device: none
Thanks for the information.
zeb is offline   Reply With Quote
Old 06-15-2012, 11:37 AM   #8
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by zeb View Post
Thanks for your answer. But as far as I understand, /dev/mmcblk0p1 and /dev/mmcblk0p2 are only accessible on jailbroken kindles?
JAILBREAK only installs a key to allowing installing developer-signed update packages.

On the K4 and K5 you can get root access and install custom software without a jailbreak. You can use an SSH shell from diags, or you can install stuff using the data.tar.gz methods.
geekmaster is offline   Reply With Quote
Old 06-15-2012, 07:32 PM   #9
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
If you have 5.1.0 KT and you know JavaScript and you can setup local webserver, you can get root shell without modifying KT. With root shell you can do anything.
eureka is offline   Reply With Quote
Old 06-15-2012, 07:37 PM   #10
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by eureka View Post
If you have 5.1.0 KT and you know JavaScript and you can setup local webserver, you can get root shell without modifying KT. With root shell you can do anything.
You mean that they did not fix this with an OTA update yet? If not, they have "interesting" priorities.
geekmaster is offline   Reply With Quote
Old 06-15-2012, 07:43 PM   #11
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
There are other very easy ways to get root shell on any unmodified K4 or K5 (any firmware version). These will be published when other methods of getting root no longer work.
geekmaster is offline   Reply With Quote
Old 06-17-2012, 05:20 PM   #12
flash2004
Junior Member
flash2004 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2009
Device: Kindle 4 NT O
Quote:
Originally Posted by geekmaster View Post
There are other very easy ways to get root shell on any unmodified K4 or K5 (any firmware version). These will be published when other methods of getting root no longer work.
Are you talking about the ENABLE_DIAGS method ?
flash2004 is offline   Reply With Quote
Old 06-17-2012, 05:46 PM   #13
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by flash2004 View Post
Are you talking about the ENABLE_DIAGS method ?
ENABLE_DIAGS just boots diags. On a K5, to get SSH, you need a MODIFIED diags partition. K4 has SSH built into diags. Part of the simple debricking method is to flash a K5 diags partition that has SSH pre-installed just like K4 has by default.

There is an unpublished way to run code on K4 and K5 from the USB drive with NO modifications other than dropping two files (including ENABLE_DIAGS) onto the USB drive, then selecting a diags menu option to run one of those two files. I have shared this method with a few developers, and we all agree that it should be saved until other jailbreak methods no longer work.

Last edited by geekmaster; 06-17-2012 at 05:48 PM.
geekmaster is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing everything up ardeur Library Management 1 03-10-2012 03:59 AM
Backing up Calibre iwaddo77 Related Tools 3 12-23-2011 01:22 AM
Backing up highlights/notes/bookmarks on Kindle 3 granturissimus Amazon Kindle 1 10-13-2011 11:55 AM
Backing up the Pocketbook IQ zetareticuli PocketBook 2 12-27-2010 06:48 PM
Backing up collections Batchfiles Sony Reader 4 05-09-2009 10:07 PM


All times are GMT -4. The time now is 11:52 PM.


MobileRead.com is a privately owned, operated and funded community.