JJ *_*ila 5 grub2 clonezilla 14.04
我想使用最新的 Clonezilla iso 文件来备份包含 Ubuntu 操作系统的分区,该操作系统存储在我的计算机硬盘驱动器的分区之一上,并且我希望能够从 Grub2 菜单启动 iso 文件。
我该如何设置?
将 Clonezilla ISO 文件放入根/目录中。
打开终端并运行:
\n\nsudo nano /etc/grub.d/40_custom\nRun Code Online (Sandbox Code Playgroud)在文件末尾插入以下文本:
\n\nmenuentry "Clonezilla Live" {\n set isofile="/clonezilla-live-2.2.3-10-amd64.iso"\nloopback loop (hd0,1)$isofile\nlinux (loop)/live/vmlinuz boot=live live-config nolocales edd=on nomodeset\nocs_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\ninitrd (loop)/live/initrd.img\n}\nRun Code Online (Sandbox Code Playgroud)保存文件,退出并打开 GRUB\ 的配置文件:
\n\nsudo nano /etc/default/grub\nRun Code Online (Sandbox Code Playgroud)注释掉该行GRUB_HIDDEN_TIMEOUT=0,使其看起来像:
#GRUB_HIDDEN_TIMEOUT=0\nRun Code Online (Sandbox Code Playgroud)\n\n确保该行GRUB_TIMEOUT=[some number]的数字 >0,例如 10
保存文件并退出并运行
\n\nsudo update-grub2\nRun Code Online (Sandbox Code Playgroud)补充笔记:
\n\n\xe2\xa0\x80- /clonezilla-live-2.2.3.10-amd64.iso-- 更改 iso 文件的名称以匹配您的名称。
\xe2\xa0\x80-(hd0,1)对您来说可能会有所不同,具体取决于您安装 Ubuntu 的方式。
\n\n\n(hdX,Y) X = 硬盘驱动器编号,Y = 分区。
\n
\xe2\xa0\x80您还可以观看我的 YouTube 视频来了解上述过程:从 Grub2 菜单启动 Clonezilla ISO。
\n我尝试了JJ Avila提供的解决方案,但修改/etc/grub.d/40_custom对我不起作用。这就是我所做的。
将clonezilla iso复制到/(根)目录
sudo cp /path/to/your_clonezilla_iso /
sudo gedit /etc/grub.d/40_custom编辑:
menuentry "Clonezilla live" {
set isofile="/clonezilla-live-20160503-xenial-i386.iso"
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset nodmraid ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
Run Code Online (Sandbox Code Playgroud)
保存并退出。
sudo update-grub2注意: iso位于根目录中,这就是原因
set isofile="/clonezilla-live-20160503-xenial-i386.iso"
Run Code Online (Sandbox Code Playgroud)
(这里更改你的iso的名称)
| 归档时间: |
|
| 查看次数: |
7438 次 |
| 最近记录: |