通过dd命令来裁剪分区
admin@OpenWrt:/tmp# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 007b0000 00010000 "firmware"
mtd5: 0050321e 00010000 "rootfs"
mtd6: 00180000 00010000 "rootfs_data"
admin@OpenWrt:/tmp# dd if=/dev/mtd0 of=/tmp/ALL_042401
16384+0 records in
16384+0 records out