我使用Grub2Win,并在"grub.cfg“文件中手动定义它,以便从”3.0LinuxLite“和”UbuntuMate16.0“ISO文件启动,并且工作正常。
但是当我尝试使用"SemiCode OS“ISO做同样的操作时,它就不起作用了。
当我运行时,它看起来就像是一个启动屏幕,直到它运行了一些脚本(不记得名字),并给出了这个错误:
"init: Error line 3 "dev/sr0" medium not Found"
我不知道用以下方法手动设置根的问题是什么:
set root='hd0,gpt3'
其中gpt3是国际标准化组织所在的分区,但它仍然给我同样的错误。
以下是“grub.cfg”中的"Semicode OS“启动代码:
menuentry 'Try SemiCode OS Beta without installing' --class isoboot --class icon-linux --class custom_004 {
set gfxpayload=keep
clear
set root='hd0,gpt3'
set gfxpayload=keep
set isopath='/Linux/SemiCode[coding]/SemiCodeOS-dist.iso'
set kernelpath='/casper/vmlinuz'
set bootparms='/preseed/custom.seed boot=casper iso-scan/filename=${iso_path} quiet splash --'
set initrdpath='/casper/initrd.gz'
#
g2wisoboot # Run the g2wisoboot function
#
# end-custom-code
}
所有的路径都是正确的,我检查过了!但它还是给了我同样的错误:
"init: Error line 3 "dev/sr0" medium not Found"
我不知道为什么会这样。
我使用的是Win7与SP1 Intel i3 CPU,m.b:华硕8GB内存
发布于 2017-07-30 20:56:41
您必须在grub中使用循环函数加载iso。
检查你有的关于menuentry伙伴16的菜单。
我想你可以找到如何加载iso循环的建议。
https://unix.stackexchange.com/questions/372963
复制相似问题