你这事我经常干。我经常换电脑,从台式机换笔记本,还有两台台式机轮着换。
换台式机时,SSD 直接拔过去,就能在另外一台台式机跑起来。linux 这点很方便,驱动啥都不需要。
换笔记本不想拆机,我就找块 linux 的 U 盘,进 rescue system 后用命令行:
# dd if=/dev/nvme0n1 bs=65536 status=progress | ssh remotehost "dd of=/dev/nvme0n1"
这里的难点是配网络和启动 ssh. 我自己一直用的 openSUSE 的安装 U 盘。在两台电脑上面配网络用命令:
# ip addr add 192.168.1.200/24 dev eth0
# ip link set eth0 up
两台电脑 IP 各换一下就行。在 remotehost 启动 ssh 用:
# systemctl start sshd
# passwd
【 在 smart 的大作中提到: 】
: 请教有便捷的方法吗?
--
修改:hgoldfish FROM 120.37.22.*
FROM 120.37.22.*