我发现这个方便的网站可以展示如何将驱动器克隆到 img 文件:
https://www.maketecheasier.com/clone-entire-hard-drive-linux/
看起来不错的选项是 partimage,所以我想让它在我们非常老旧、很少更新的系统上运行(更新会破坏他们所拥有的非常老旧的科学硬件)。
sudo yum install partimage
Loaded plugins: kernel-module
http://ftp.scientificlinux.org/linux/scientific/54/i386/SL/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp1.scientificlinux.org/linux/scientific/54/i386/SL/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp2.scientificlinux.org/linux/scientific/54/i386/SL/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
ftp://ftp.scientificlinux.org/linux/scientific/54/i386/SL/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
http://ftp.scientificlinux.org/linux/scientific/54/i386/updates/security/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp1.scientificlinux.org/linux/scientific/54/i386/updates/security/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp2.scientificlinux.org/linux/scientific/54/i386/updates/security/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
ftp://ftp.scientificlinux.org/linux/scientific/54/i386/updates/security/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Setting up Install Process
No package partimage available.
Nothing to do
Linux的版本是:
cat /etc/*-release
Scientific Linux SL release 5.4 (Boron)
uname -r
2.6.18-164.15.1.el5PAE
我这样做是不是运气不好?哪种方式是备份这些系统的好方法。我们使用 Veeam,但对于这些旧机器,它们根本不受支持,我无法在其上安装它们的代理。
我最好的办法就是使用这里建议的方法
https://evpo.net/wiki/backup-and-restore-your-linux-system-disk.html
基本上就是对操作系统进行 gzip 压缩。我不知道这是否可行,而且我真的不想知道。
partimage 选项看起来不错,可以克隆驱动器,而无需实际添加要克隆的驱动器。我似乎仍然无法安装它。