Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 i wanted to try to directly dump a partition from an ADB shell with command: dd if=/dev/block/mtdblock1 of=/sdcard/adb.img but get error: dd: /dev/block/mtdblock1: Input/output error anyone know how this can be acheived?
Guest Arr Too Posted January 3, 2011 Report Posted January 3, 2011 i wanted to try to directly dump a partition from an ADB shell with command: dd if=/dev/block/mtdblock1 of=/sdcard/adb.img That's boot, isn't it? Try: dd if=/dev/mtd/mtd1 of=/sdcard/dump_boot.img bs=4096 (And remember not to use dd to dump the YAFFS2 partitions!)
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 That's boot, isn't it? Try: dd if=/dev/mtd/mtd1 of=/sdcard/dump_boot.img bs=4096 (And remember not to use dd to dump the YAFFS2 partitions!) actually - a good point. is there already a tool to make a yaffs2 dump e.g. for /system partition?
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 found something called nandread. will try it out...
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 bleh. why am i bothering? i'll just tar the files.
Guest Tom G Posted January 3, 2011 Report Posted January 3, 2011 actually - a good point. is there already a tool to make a yaffs2 dump e.g. for /system partition? dd needs a blocksize. eng builds include a tool called dump_image, but I don't think its in user builds. You should be able to pull a bin from somewhere (its in clockworkmod). cat works for boot/recovery, but I dont think it will work for the yaffs partitions. cat /dev/mtd/mtd1ro > /sdcard/boot.img
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 here's what i'm doing for the system partition. tar -cf - /system/ |lzop > /sdcard/system.tar.lzo my dd wasn't working because i got the device name wrong. i typed ls /dev/mt* and got the following which always tricks me: /dev # ls /dev/mt* mtd0 mtd1 mtd2 mtd3 mtd4 mtd5 mtd6 mtd7 mtd0ro mtd1ro mtd2ro mtd3ro mtd4ro mtd5ro mtd6ro mtd7ro
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 while we're on the subject, can someone explain why this doesn't work: ls -Ss /system/app > /sdcard/applist.txt
Guest Tom G Posted January 3, 2011 Report Posted January 3, 2011 while we're on the subject, can someone explain why this doesn't work: ls -Ss /system/app > /sdcard/applist.txt It works for me. If you're doing it from recovery did you mount system and sdcard first?
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 It works for me. If you're doing it from recovery did you mount system and sdcard first? hmm. i remapped the ls command to use busybox and for some reason it seems that the busybox ls doesn't produce any output when piped...
Guest Tom G Posted January 3, 2011 Report Posted January 3, 2011 hmm. i remapped the ls command to use busybox and for some reason it seems that the busybox ls doesn't produce any output when piped... I was using busybox when I tested it.
Guest Arr Too Posted January 3, 2011 Report Posted January 3, 2011 found something called nandread. will try it out... I've not used it, but I think you can use nanddump (from the MTD Utils): http://processors.wiki.ti.com/index.php/Mtdutils
Guest isambard Posted January 3, 2011 Report Posted January 3, 2011 I was using busybox when I tested it. thanks. what i meant was that i hardlinked ls to the busybox binary. i guess the original was either a standalone exe or linked to toolbox.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now