我已经克隆了具有以下分区的计算机:
Device Type Label
/dev/sda
/dev/sda1 Ext4 boot
/dev/sda2 Linux LVM
/dev/system/ LV system
/dev/system/home LV home
/dev/system/root LV root
/dev/system/swap LV swap
这些在标签中被引用
/ etc / fstab:
LABEL=root / ext4
LABEL=boot /boot ext4
LABEL=home /home ext4
LABEL=swap /swap swap
和grub.cfg:
menuentry 'openSUSE, with linux <version>' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-<version>-simple-<UUID>' {
insmod ext2
set root='hd0,msdos1'
linux /vmlinuz-<version> root=/dev/mapper/system-root resume=/dev/disk/by-label/swap <other options>
initrd /initrd-<version>
}
我正在尝试将此克隆安装在另一台相同的计算机上。安装成功,但是在grub提示将我转储到以下设备时,如果不执行以下操作,我将无法启动计算机:
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz-<version> root=/dev/sda1
grub> initrd /boot/initrd.img-<version>
grub> boot
我非常希望获得不需要这些步骤的图像,但是我不确定问题出在哪里(grub config,其他系统文件,clonezilla)。到目前为止我尝试过的事情:
GRUB_DISABLE_LINUX_UUID=true
'search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}
以防止在生成grub.cfg时添加它们grub.cfg
)我还能尝试其他方法吗?
我确实注意到该/boot/grub2/device.map
列表为hd0列出了“ sda1”,但是在安装克隆时另一台计算机的HD被检测为sda1,因此我认为这可能不是罪魁祸首。
(我不确定这是否是超级用户还是超级用户,我很高兴可以适当地迁移它。)
最后,我通过获取原始计算机的启动分区的分区克隆并将其安装在其他计算机上的方法来解决此问题,并从高级选项中选择了“ -j1”。
稍微烦恼要执行额外的步骤,但是至少还原启动分区的克隆仅需要几秒钟。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句