uefi固件是否可以跳过额外的启动加载器,直接启动linux?
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
uefi固件是否可以跳过额外的启动加载器,直接启动linux?
uefi固件可以直接启动windows,GRUB2,但是,不知道是否可以直接启动linux。
我试过efistub,但是没有成功。
我试过efistub,但是没有成功。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
可以把 Linux 啟動選項 啟動順序設定為預設或最優先不知道是否可以直接启动linux
1. 使用 efibootmgr 參見
search.php?keywords=efibootmgr&terms=al ... C%E5%B0%8B
2. 使用 startup.nsh 參見
search.php?keywords=startup.nsh&terms=a ... C%E5%B0%8B
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
可以。
可参考arch wiki上的内容,把EFI那个fat32分区挂到/boot,然后用bootctl -> https://wiki.archlinux.org/index.php/Be ... UEFI.2FGPT
可参考arch wiki上的内容,把EFI那个fat32分区挂到/boot,然后用bootctl -> https://wiki.archlinux.org/index.php/Be ... UEFI.2FGPT
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
lainme 写了:可以。
可参考arch wiki上的内容,把EFI那个fat32分区挂到/boot,然后用bootctl -> https://wiki.archlinux.org/index.php/Be ... UEFI.2FGPT
这个我以前想试一试来着,但是,它systemd 220-2以后才有的功能,我的fedora 22的systemd 219。
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
可以把 Linux 啟動選項 啟動順序設定為預設或最優先poloshiao 写了:不知道是否可以直接启动linux
1. 使用 efibootmgr 參見
search.php?keywords=efibootmgr&terms=al ... C%E5%B0%8B
efibootmgr 改变的是UEFI启动项的顺序,不能跳过GRUB2吧?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
Grub2 是 ubuntu 的 boot loaderefibootmgr 改变的是UEFI启动项的顺序,不能跳过GRUB2吧?
可以更換別的 boot loader 但是 不一定比 Grub2 好用
http://askubuntu.com/tags/bootloader/info
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
如果你只是不希望 出現 grub 2 開機選單 參閱不能跳过GRUB2吧?
http://askubuntu.com/questions/346463/h ... grub2-menu
http://askubuntu.com/questions/117525/h ... his-happen
http://ubuntuhandbook.org/index.php/201 ... grub-menu/
不同版本 也許設定方法會稍為不同
有問題 歡迎再貼文
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
poloshiao 写了:Grub2 是 ubuntu 的 boot loaderefibootmgr 改变的是UEFI启动项的顺序,不能跳过GRUB2吧?
可以更換別的 boot loader 但是 不一定比 Grub2 好用
http://askubuntu.com/tags/bootloader/info
我想知道是否可以跳过boot loader,直接启动linux。
就像uefi固件直接启动windows一样。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
設定 只要一次
設定好了
開機 就自動進入預設的 Linux 發行版
有必要例外時 才須再手動
所謂手動 通常有只有按下 esc / shift / 向上 / 向下 / Enter
跟 執行 但是不必讓它顯示在螢幕上
是不同的觀念
你要說清楚 你要的是哪一樣
設定好了
開機 就自動進入預設的 Linux 發行版
有必要例外時 才須再手動
所謂手動 通常有只有按下 esc / shift / 向上 / 向下 / Enter
跳過 某個程序 不執行我想知道是否可以跳过boot loader
跟 執行 但是不必讓它顯示在螢幕上
是不同的觀念
你要說清楚 你要的是哪一樣
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
poloshiao 写了:設定 只要一次
設定好了
開機 就自動進入預設的 Linux 發行版
有必要例外時 才須再手動
所謂手動 通常有只有按下 esc / shift / 向上 / 向下 / Enter跳過 某個程序 不執行我想知道是否可以跳过boot loader
跟 執行 但是不必讓它顯示在螢幕上
是不同的觀念
你要說清楚 你要的是哪一樣
在uefi系统下,系统可以不使用任何boot loader来启动windows;
我的意思是,系统是否可以不通过boot loader来启动linux内核。
不使用任何boot loader,直接加载linux内核。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
能否舉例一下 提供網頁連結也行在uefi系统下,系统可以不使用任何boot loader来启动windows;
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
poloshiao 写了:能否舉例一下 提供網頁連結也行在uefi系统下,系统可以不使用任何boot loader来启动windows;
在我的电脑上有三个系统;efiboot -v的输出:
BootCurrent: 0008
Timeout: 0 seconds
BootOrder: 0005,0008,0001,0006,2001,0002
Boot0000* EFI USB Device (ADATA USB Flash Drive) PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(0,0)/HD(1,GPT,a65c5d09-f11b-4d6f-bd28-bebc9b5a71f8,0x22,0x1ce7fbd)RC
Boot0001* Ubuntu HD(2,GPT,65ad4c61-6433-476a-a3b6-67506ac186d3,0x1f4800,0x82000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0002* Lenovo Recovery System HD(3,GPT,3009100c-ac1f-40b5-a79a-8babd8b863e1,0x276800,0x1f4000)/File(\EFI\Microsoft\Boot\LrsBootMgr.efi)RC
Boot0003* EFI Network 0 for IPv4 (20-89-84-××-××-××) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(208984××××××,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC
Boot0004* EFI Network 0 for IPv6 (20-89-84-××-××-××) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(208984××××××,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0005* efi_shell HD(2,GPT,65ad4c61-6433-476a-a3b6-67506ac186d3,0x1f4800,0x82000)/File(\EFI\shellx64\Shell.efi)
Boot0006* Windows Boot Manager HD(2,GPT,65ad4c61-6433-476a-a3b6-67506ac186d3,0x1f4800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0008* Fedora HD(2,GPT,65ad4c61-6433-476a-a3b6-67506ac186d3,0x1f4800,0x82000)/File(\EFI\fedora\shim.efi)
Boot2001* EFI USB Device RC
在我设置0001或0008为最先启动时,我发现那两个efi文件(ubuntu下的grubx64.efi,fedora下的shim.efi)都是直接或间接启动的都是grub2,而且是两个grub2。
当我设置0006作为最先启动时,我发现windows是直接启动的,不通过grub2。
所以我想,为什么linux下的系统没有一个直接用来启动内核的efi文件。
这样的话,不是省去了很多麻烦吗?
我参考这篇文章:http://www.rodsbooks.com/efi-bootloaders/efistub.html
想使用这种方法尝试一下,但是没有成功。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
1. Linux :(ubuntu下的grubx64.efi,fedora下的shim.efi)
shim.efi 使用在 Secure Boot enabled 情況 然後再自動引導 grubx64.efi
grubx64.efi 使用在 Secure Boot disabled 情況 (使用 shim.efi 也會自動引導 grubx64.efi)
然後 導引到 同一個分割區的 grub.cfg
然後 導引到 /boot/grub/grub.cfg 出現開機選單
如此安排 主要為了 跟 Legacy Bios 的 /boot/grub/grub.cfg 前後版本 相容
1-1. 如果是 32 bit grubx64.efi 改為 grubx32.efi
在不是使用 grub 2 的 Linux 版本
grubx64.efi 改為 bootx64.efi
grubx32.efi 改為 bootx32.efi
1-2. 新手 暫時不建議你使用 32 bit 的 grubx32.efi 或 bootx32.efi 因為還不是那麼成熟
2. windows:
無論是 Secure Boot enabled / disabled 無論是 32 bit / 64 bit
就是同一個檔案名稱 bootmgfw.efi
但是 bootmgfw.efi 也不是直接啟動開機 它也是再去啟動 boot loader
2-1. 參閱
https://technet.microsoft.com/en-us/lib ... 36950.aspx
On UEFI systems, this includes settings for the following boot applications:
Windows Boot Manager
Windows Boot Loader
Windows Resume from Hibernate
Windows Memory Tester
3. 進一步參閱
3-1. http://askubuntu.com/questions/519175/w ... -it-reside
What is the Ubuntu os loader and where does it reside?
3-2. https://zh.wikipedia.org/wiki/%E5%90%AF ... 4%E8%BE%83
啟動管理程式比較
3-3. https://en.wikipedia.org/wiki/Compariso ... ot_loaders
Comparison of boot loaders
4. Managing EFI Boot Loaders for Linux我参考这篇文章:http://www.rodsbooks.com/efi-bootloaders/efistub.html
想使用这种方法尝试一下,但是没有成功。
http://www.rodsbooks.com/efi-bootloaders/index.html
這一篇作者是許多 boot loaders 的研發者
對於各種適用於 Linux 的 Boot Loaders 有精闢的介紹
你如果有興趣 可以參考
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
1. 不用氣餒 這還是 發展中的 Loaderhttp://www.rodsbooks.com/efi-bootloaders/efistub.html
When to Use the Kernel's EFI Stub Loader
想使用这种方法尝试一下,但是没有成功。
1-1. Because the kernel's EFI stub loader is not currently supported by most distributions, you're on your own when it comes to maintenance.
1-2. The EFI stub loader works best in conjunction with the rEFInd or gummiboot boot manager, which can specify the extra options that the Linux kernel requires when booted in this way, thus eliminating the awkwardness of having to type options every time you boot.
2. 因為 Ubuntu 15.04 / 15.10 / ... 已經轉進 systemd
systemd 220 以後的版本 將自帶 boot loader SD-Boot
2-1. 意思是 Ubuntu 15.10 / 16.04 / ... 都將自帶 systemd SD-Boot
參考資料會越來越多 你可以直接專攻 systemd SD-Boot
3. 進 一步參閱
3-1. http://news.softpedia.com/news/systemd- ... 1945.shtml
The Gummiboot EFI bootloader was integrated with systemd
3-2. http://www.phoronix.com/scan.php?page=n ... t-EFI-Boot
systemd Lands SD-Boot
3-3. http://packages.ubuntu.com/search?suite ... chon=names
3-4. https://github.com/systemd/systemd/tree ... c/boot/efi
3-5. https://wiki.archlinux.org/index.php/Systemd-boot
3-6. viewtopic.php?p=3146582#p3146582
3-7. viewtopic.php?p=3146612#p3146612
4. 歡迎常來帶動大家研討 systemd SD-Boot
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: uefi固件是否可以跳过额外的启动加载器,直接启动linux?
poloshiao 写了:1. 不用氣餒 這還是 發展中的 Loaderhttp://www.rodsbooks.com/efi-bootloaders/efistub.html
When to Use the Kernel's EFI Stub Loader
想使用这种方法尝试一下,但是没有成功。
1-1. Because the kernel's EFI stub loader is not currently supported by most distributions, you're on your own when it comes to maintenance.
1-2. The EFI stub loader works best in conjunction with the rEFInd or gummiboot boot manager, which can specify the extra options that the Linux kernel requires when booted in this way, thus eliminating the awkwardness of having to type options every time you boot.
2. 因為 Ubuntu 15.04 / 15.10 / ... 已經轉進 systemd
systemd 220 以後的版本 將自帶 boot loader SD-Boot
2-1. 意思是 Ubuntu 15.10 / 16.04 / ... 都將自帶 systemd SD-Boot
參考資料會越來越多 你可以直接專攻 systemd SD-Boot
3. 進 一步參閱
3-1. http://news.softpedia.com/news/systemd- ... 1945.shtml
The Gummiboot EFI bootloader was integrated with systemd
3-2. http://www.phoronix.com/scan.php?page=n ... t-EFI-Boot
systemd Lands SD-Boot
3-3. http://packages.ubuntu.com/search?suite ... chon=names
3-4. https://github.com/systemd/systemd/tree ... c/boot/efi
3-5. https://wiki.archlinux.org/index.php/Systemd-boot
3-6. viewtopic.php?p=3146582#p3146582
3-7. viewtopic.php?p=3146612#p3146612
4. 歡迎常來帶動大家研討 systemd SD-Boot
arch里用的是不是systemd-boot?
我的fedora22用的是systemd 219,不包含systemd-boot,不知道23会不会升级。