Skip to content

Instantly share code, notes, and snippets.

@damex
Created March 3, 2023 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damex/6a7245582ef2d5ee281946f50ff466ba to your computer and use it in GitHub Desktop.
Save damex/6a7245582ef2d5ee281946f50ff466ba to your computer and use it in GitHub Desktop.
root@OpenWrt:~# for p in $(cat /proc/mtd | awk -F ':' '/mtd/ {print $1}') ; do dd if=/dev/${p} of=/tmp/${p} bs=4096 ; done
128+0 records in
128+0 records out
128+0 records in
128+0 records out
2+0 records in
2+0 records out
7+1 records in
7+1 records out
1+0 records in
1+0 records out
3840+0 records in
3840+0 records out
832+0 records in
832+0 records out
3008+0 records in
3008+0 records out
2160+0 records in
2160+0 records out
root@OpenWrt:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment