OpenWRT and Copying the OS

wiki.TerraBase.info
Jump to navigation Jump to search

...gotta Linksys WRT1900 series or WRT32X or another Router that has 'Dual Boot Partitions' and want to do a 'bare metal copy' from one MTD 'Partition' to another?

WRT32X Example

mtd dump ubi > /tmp/sda1/mtd6-ubi.bin

mtd erase rootfs2 && mtd write /tmp/sda1/mtd6-ubi.bin rootfs2 && sync