[Topic DIscussion] 硬盘系统迁移
Tofloor
poster avatar
叶子
deepin
2022-11-02 21:28
Author

打算换固态了,系统不想重新安装,里边有配置好的环境,有没有无损迁移的方案,win下的那一套能成功不?

Reply Favorite View the author
All Replies
心平气和
deepin
2022-11-02 22:11
#1

插眼,如果成功了,把你方法分享下,我也准备加固态

Reply View the author
叶子
deepin
2022-11-02 22:32
#2
心平气和

插眼,如果成功了,把你方法分享下,我也准备加固态

抽时间盘对盘克隆下,看行不行blush

Reply View the author
cz_tan
deepin
2022-11-02 22:51
#3

1.插上固态,想办法对固态分区,用安装U盘进入安装系统,对ssd分一个efi分区,格式为fat32,和一个ext4分区

2.用 sudo blkid -s UUID 命令查看固态硬盘的efi分区和ext4分区UUID号,把他们记录下来。

3.拷贝老硬盘的efi分区数据到ssd固态硬盘efi分区。拷贝老硬盘/目录所有数据到ssd硬盘ext4分区根目录

4.更改ssd硬盘/etc/fstab文件里的UUID值为ssd分区的uuid,格式如下

UUID=B744-08F1 /boot/efi vfat umask=0077 0 2
UUID=d64e110b-ae9b-4e37-bbc1-864c43baa23a / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

tmpfs这行不用管,/boot/efi这行就是efi分区的uuid, 第二行就是挂载根目录的uuid,如果有你还有其他分区,一样的道理,分区,拷贝数据,记录uuid,fstab文件更改uuid,最后保存fstab文件,拔掉老硬盘,重启搞定。

Reply View the author
cz_tan
deepin
2022-11-02 23:13
#4

最省事的办法就是用ghost或者dd命令进行硬盘克隆,然后改/etc/fstab中的uuid

Reply View the author
叶子
deepin
2022-11-03 01:40
#5
cz_tan

最省事的办法就是用ghost或者dd命令进行硬盘克隆,然后改/etc/fstab中的uuid

我决定了,暂时不动了,,,感觉一不小心就要出问题,坚持能跑就不要动的原则,,,

Reply View the author
叶子
deepin
2022-11-03 01:41
#6

耗费两天时间搭建好的系统,不想再动了

Reply View the author
来自Ubuntu的某位用户
deepin
2022-11-03 02:06
#7

可以用“再生龙”先打包iso,然后安装到新机器上

Reply View the author
叶子
deepin
2022-11-03 02:10
#8
来自Ubuntu的某位用户

可以用“再生龙”先打包iso,然后安装到新机器上

抽时间试下

Reply View the author
来自Ubuntu的某位用户
deepin
2022-11-03 04:04
#9
叶子

抽时间试下

https://blog.csdn.net/weixin_44092851/article/details/124634434

阿里云内部也是这样迁移Linux操作系统的

Reply View the author
海水
deepin
2022-11-03 05:02
#10
It has been deleted!
叶子
deepin
2022-11-03 17:04
#11
来自Ubuntu的某位用户

https://blog.csdn.net/weixin_44092851/article/details/124634434

阿里云内部也是这样迁移Linux操作系统的

感谢分享,谢谢啦

Reply View the author
归暝
deepin
2022-11-08 19:05
#12

系统备份再重装呢

Reply View the author
叶子
deepin
2022-11-09 19:27
#13
归暝

系统备份再重装呢

已经重新安装系统了

Reply View the author