备份openwrt整个系统

  1. 查看磁盘情况
fdisk -f
  1. 使用dd命令进行备份
dd if=/dev/sda of=ghost230724.img bs=512 count=4982272 status=progress

如果使用 status=progress参数来显示进度,需要事先安装coreutils-dd插件

opkg install  coreutils-dd
注意count=End+1
  1. 压缩镜像
gzip -k ghost230724.img
  1. 使用下面的工具把镜像写盘备用

https://etcher.balena.io/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注