分页: 1 / 1

ubuntu 可以实现windows的一键还原系统么???

发表于 : 2012-12-26 10:06
565856305
本人刚刚接触linux 求高手指导 硬盘分区 (hd0,1)ext4 ubuntu ,(hd0,2)ntfs windows xp , (hd0,4)ext4 系统还原分区, 扩展分区(swap ,ntfs)
用再生龙把(hd0,1)、(hd0,2)做成一个iso,放在(hd0,4)下,修改 /etc/grub.d/40_custom 代码如下
================================================
menuentry "进入...系统恢复" {
set root=(hd0,4)
set isofile="xthf.iso"
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}

================================================
然后执行 update-grub2 。重启机器
选择 进入...系统恢复 之后进去的是再生龙而不是还原系统
求高手指教是思路有问题还是什么问题,本人刚刚接触 linux 很多东西都不了解。