View Single Post
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: 10773670
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