
5

grub2 引导 openSUSE 安装镜像
source link: https://blog.lilydjwg.me/2013/7/10/boot-from-opensuse-iso-image-with-grub2.39924.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

grub2 引导 openSUSE 安装镜像
本文来自依云's Blog,转载请注明。
想安装 openSUSE 12.2,但是目标机器没有光驱,亦没有可用的能够容纳下 DVD 镜像的 U 盘。尝试 dd 镜像到 U 盘,报告找不到光驱还是什么的,启动失败,自动重启。 官方 Wiki 上 http://en.opensuse.org/Installation_without_CD 这个页面已经被删除。其它页面只有如何将 ISO 镜像弄到 U 盘上的说明,没有说明如何正确启动之。grub2 带内核参数install=hd:$isofile
失败。这个据说只对 DVD 镜像有效。
最终,像很早之前那样阅读init
脚本后,终于得出正确的启动方法:
menuentry
"openSUSE 12.2 KDE LiveCD x86_64"
{
set
isofile=
"/images/openSUSE-12.2-KDE-LiveCD-x86_64.iso"
echo
"Setup loop device..."
loopback loop $isofile
echo
"Loading kernel..."
linux (loop)
/boot/x86_64/loader/linux
isofrom=
/dev/disk/by-label/4lin
:$isofile
echo
"Loading initrd..."
initrd (loop)
/boot/x86_64/loader/initrd
}
其中,isofrom
指定 ISO 文件所在的设备和路径,以冒号分隔。如果没有写对的话,将得到Failed to find MBR identifier !
错误。
2013年12月22日更新:对于 openSUSE 13.1,其引导命令应该这么写:
menuentry
"openSUSE 13.1 KDE Live x86_64 (zh_CN)"
{
set
isofile=
"/images/openSUSE-13.1-KDE-Live-x86_64.iso"
echo
"Setup loop device..."
loopback loop $isofile
echo
"Loading kernel..."
linux (loop)
/boot/x86_64/loader/linux
isofrom_device=
/dev/disk/by-label/4lin
isofrom_system=$isofile LANG=zh_CN.UTF-8
echo
"Loading initrd..."
initrd (loop)
/boot/x86_64/loader/initrd
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK