Files
linux-wiki/content/deepin折腾笔记/第四章/4.5.md
2021-10-21 14:57:58 +08:00

11 lines
1.0 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 4.5 再生龙分区备份恢复到新硬盘
如果源磁盘数据HOME分区以及_dde_data数据盘占用空间过大或涉及个人隐私不便于单位共享时全盘备份就不适合了。
此时可以只备份EFI和ROOT分区还原到新硬盘后适当的调整就可以正常使用。
1. 还原时选择“专家模式”,在“额外的高级参数”页面选择“-k1 照比例放大产生硬盘分割表”;
2. 完成分区恢复后,进入命令列,执行:
`sudo su && cd /home/partimag && ls`可以找到你U盘中分区备份所在目录进入该目录并查看blkid.list文件根据相应分区的uuid重新格式化例如
mkswap -U a5fd6924-b890-44e9-b96c-ccbbf92be628 /dev/sda2
mkfs.ext4 -L Home -U beeb0e87-46f4-4a53-b828-6a2fda66a1b9 /dev/sda4
mkfs.ext4 -L _dde_data -U 5c86adb1-7cb3-4a39-81fb-490e748dd27d /dev/sda5
重启后会发现无法登陆DDE解决方法请参照“主目录被误删除的恢复方法”。