5

My flash is partitioned as /dev/mtd0 /dev/mtd1 etc....And I want to scp one of the partitions over to my pc so I can analyze it with a hex editor, but everytime I try to copy it with scp I get -not a regular file. How can I scp the contents of a flash partition? I think I did it once with WinSCP on a windows machine but it only worked for small partitions of < 10mb and anything bigger would disconnect from the device.

11

A combination of dd and ssh can probably help here:

# dd if=/dev/mtd0 | ssh me@myhost "dd of=mtd0.img"
1
  • This is exactly what I needed. – Toshiro Mar 12 '15 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.