找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 960|回复: 12

请听题:如何把u盘的armbian系统打包成img镜像?

[复制链接]
如题,U盘已经安装好armbian系统,并且安装了一些服务。想打包成一个镜像,作为备份。请各位大佬解答
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 来自手机 | 显示全部楼层
盒子是b863av3.2-m,试过了无法写入emmc。所以教程里的ddbr方法没法用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

如果作备份用,tar或者zip不都可以吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
无所不尽其极 发表于 2022-10-31 18:13
https://blog.csdn.net/weixin_43615992/article/details/126876415  你研究一下

好的,感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
dianxin_11 发表于 2022-10-31 23:02
如果作备份用,tar或者zip不都可以吗?

关键是我是纯小白,不知道该怎么操作能达到备份的目的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

打包:tar -czvf filename.tgz file

解压:tar -xzvf filename.tgz

如果没用过就先用测试文件夹练练手
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

用dd克隆命令,我的系统用以下命令:

dd bs=512 count=30425088 if=/dev/sda of=/home/samba/ghost.img

命令解释:

bs=512 count=[fdisk命令中最大的end数+1]

/dev/sda             # 被克隆系统所在盘

/home/samba/ghost.img                 #img所在目录
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
dianxin_11 发表于 2022-11-1 12:20
打包:tar -czvf filename.tgz file

解压:tar -xzvf filename.tgz

感谢,我先去试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
cqzhangjunhua 发表于 2022-11-1 18:17
用dd克隆命令,我的系统用以下命令:

dd bs=512 count=30425088 if=/dev/sda of=/home/samba/ghost.img
...

这种方式是直接备份整盘吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

cqzhangjunhua 发表于 2022-11-1 18:17
用dd克隆命令,我的系统用以下命令:

dd bs=512 count=30425088 if=/dev/sda of=/home/samba/ghost.img
...

dd是对物理磁盘进行操作,恢复的时候要考虑分区表的问题,tar是对文件系统的操作,相对安全一些。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Win32DiskImager,备份最简单了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

11225555212
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-5 20:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表