Quote:
Originally Posted by knc1
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.