openSUSE-Leap相遇旧UEFI固件的引导问题

最近想在自己的联想M8300t上体验一下openSUSE-Leap-42.2,因为已经装了win10(UEFI+GPT),所以想着可以弄个双系统,刚好把剩余的70G固态硬盘空间分配给openSUSE。

但是,几乎近10来次的安装,也未能成功。即使固态硬盘全部格式化,只安装openSUSE,引导也失败了。

安装快结束时可能会提示: 

**Warning**Boot000c is not UEFI Spec compliant(lowercase hex in name)。

即使安装过程中不提示,也会开机引导失败

如果用光盘或U盘引导,选择其他里的从Linux启动,可以进入安装好的系统。

在终端输入grub2-install /dev/sda或者sda2(efi分区),或者/boot/efi,都会提示以下错误:

Installing for x86_efi platform.

**Warning** : Boot000c is not UEFI Spec compliant(lowercase hex in name)

**Warning** : Boot000c is not UEFI Spec compliant(lowercase hex in name)

**Warning** : Please recreate these using efibootmgr to remove this warning.

Could not prepare Boot variable: No space left on device

Installation finished.No error reported.

看到了吗,没有错误,但就是装了也没用

Goolge找答案,终于看到了看到了一点结果

https://askubuntu.com/questions/632573/how-to-change-lowercase-hex-to-uppercase-with-efibootmgr

“Another point about this is that the names of the boot options with lowercase hexadecimal numbers suggests that they were created by your firmware. Thus,even if you were to delete those boot options,they or other options with lowercase hexadecimal numbers might be(re-)created by the firmware in the future. The warning says that the values are not compliant with EFI 1.10,but most modern computers ship with EFI 2.x(aka UEFI). Thus,the warningshouldmatter only on these older EFIs.”

总的意思来说就是主板的UEFI固件版本太旧。

既然这样,就得想办法找一个程序接管系统引导。因为在苹果上有过数次安装Linux的经历,所以我对refind工具还是稍微熟悉点,看了下官方的页面,win下也可以安装。

1、Locate Command Prompt in the Start menu,right-click it,and select Run as Administrator. This action opens a Command Prompt window with administrative privileges.

用管理员权限运行cmd

2、Typemountvol S: /Sin the Administrator Command Prompt window. This makes the ESP accessible as drive S: from that window.(You can use a drive identifier other than S: if you like.)

输入mountvol S: /S,将efi分区挂载到S

3、Change into the main rEFInd package directory,so that the refind subdirectory is visible when you typedir.

进入到解压后refind根目录,进入后确保能看到里面的refind子目录

4、Typexcopy /E refind S:\EFI\refind\to copy the refind directory tree to the ESP's EFI directory. If you omit the trailing backslash from this command,xcopy will ask if you want to create the refind directory. Tell it to do so.

输入xcopy /E refind S:\EFI\refind\,复制必要的文件

5、TypeS:to change to the ESP.进入S盘

6、Typecd EFI\refindto change into the refind subdirectory

进入refind目录,cd EFI\refind

7、You may want to selectively delete some of the drivers in the drivers_x64,drivers_ia32,or drivers_aa64 directory,depending on your architecture and needs. Unnecessary drivers will slow the rEFInd start process,and can even cause the drivers you need to not work or cause a system crash. See thepage on driversfor more on this topic.

你可以删除多余的驱动文件,这样可以使系统启动快一点,不做也没关系,免得删错了麻烦

8、Typerename refind.conf-sample refind.confto rename rEFInd's configuration file.

重命名refind.conf-samplerefind.conf

9、Note:I've heard from a couple of Windows 10 users that the bcdedit commands described here don't work. I don't yet know if this is a coincidence or if Microsoft has changed bcdedit in such a way that these instructions no longer apply. If you run into this problem,either try using EasyUEFI or use another installation method,such as theLinux methodfrom a Linux emergency boot disc.

如果win10用户使用bcdedit命令出错,那么可以试试EasyUEFI。

10、Typebcdedit /set {bootmgr} path \EFI\refind\refind_x64.efito set rEFInd as the default EFI boot program. Note that {bootmgr} is entered as such;that's not a notation for a variable. Also,change refind_x64.efi to refind_ia32.efi on systems with 32-bit EFIs. Such computers are rare,and most of them are tablets. Check your Windows bit depth to determine which binary you should use.

运行bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi,将refind设置为默认的引导管理程序。

11、If you like,typebcdedit /set {bootmgr} description "rEFInd description"to set a description(changerEFInd descriptionas you see fit).

如果你想修改refind的描述也是可以的。


接下来就是安装openSUSE的大致步骤了

网上说btrfs文件系统会频繁建立快照,太伤SSD,所以我使用了传统的ext4文件系统,/home目录也是ext4,因为不确定efi不挂载是否会导致安装程序出错,所以我仍然在分区方案里将/dev/sda2挂载到了/boot/efi。

等到了最后确定步骤,设置不安装任何引导程序,不用理会系统的提示。

安装完成后,重启,终于看到了win1和openSUSE启动项。选择运行,一切OK。


备注:

openSUSE42.2(KDE)默认安装好,右下网络管理器是没有运行的

解决办法:

systemctl enable NetworkManager

systemctl start NetworkManager

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 195,898评论 5 462
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,401评论 2 373
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 143,058评论 0 325
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,539评论 1 267
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,382评论 5 358
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,319评论 1 273
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,706评论 3 386
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,370评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,664评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,715评论 2 312
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,476评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,326评论 3 313
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,730评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,003评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,275评论 1 251
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,683评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,877评论 2 335

推荐阅读更多精彩内容