Ubuntu- easyefi 硬盘安装Ubuntu

迷南。 2022-05-31 08:56 1056阅读 0赞

现在新的电脑都是UEFI的启动方式了,EasyBCD就变得不好用了。在网上找到了easyefi的工具。

安装ubuntu后,我想删除window的启动项

  1. ~$ efibootmgr
  2. BootCurrent: 0001
  3. Timeout: 1 seconds
  4. BootOrder: 0001,000E,000C,000D,0000
  5. Boot0000* Windows Boot Manager
  6. Boot0001* ubuntu
  7. Boot000C* UEFI : LAN : IP4 Intel(R) Ethernet Connection (H) I219-LM
  8. Boot000D* UEFI : LAN : IP6 Intel(R) Ethernet Connection (H) I219-LM
  9. Boot000E* UEFI : HP SSD EX900 250GB : PART 4 : OS Bootloader
  10. ~$ sudo efibootmgr -b 0 -B
  11. BootCurrent: 0001
  12. Timeout: 1 seconds
  13. BootOrder: 0001,000E,000C,000D
  14. Boot0001* ubuntu
  15. Boot000C* UEFI : LAN : IP4 Intel(R) Ethernet Connection (H) I219-LM
  16. Boot000D* UEFI : LAN : IP6 Intel(R) Ethernet Connection (H) I219-LM
  17. Boot000E* UEFI : HP SSD EX900 250GB : PART 4 : OS Bootloader

-——-引用文章————————————————-

用 EasyUEFI 在 Win8/10 中硬盘安装 Ubuntu
作者:TeliuTe 来源:基础教程网

 1、准备Ubuntu安装文件
 1)下载带amd的64位 Ubuntu 桌面版光盘镜像文件,如 ubuntu-16.04.2-desktop-amd64.iso:http://releases.ubuntu.com/16.04/
 其他下载地址可以参阅前面的课程;

 2)分出一个5G左右的分区,格式化为FAT32,将下载的光盘镜像解压到里面;
 c1fat32.png

 3)再分出40G空间,作为安装Ubuntu系统的空间,不用格式化,记住分区大小和位置;
 c2part.png

 4)Win8/10要关闭快速启动、关闭安全启动,参考第2条安装常见问题:=http://teliute.org/fw/win8insu2.html

 2、安装 EasyUEFI,添加启动项
 1)EasyUEFI个人版是免费的,可以在官网或友链下载: http://www.easyuefi.com/index-cn.html,下载完后双击运行安装,

 2)在出来的安装对话框中,一路点“继续、确定、完成”,一般默认选中了简体中文;
 安装完自动运行,或双击桌面上图标运行,进入主窗口,再点“管理EFI启动项”
 b1win.png

 3)在出来程序窗口中间栏,点击第二个绿色加号图标的“添加新项目”;
 b2add.png

 4)在出来的面板上边类型里选择Linux,右边文本框里输入名称“Ubuntu”,然后在中间的分区图表中,选中后边的FAT32分区,上边有个圆点;
 b3option.png

 5)再点右下角的“浏览文件”按钮,在面板中依次点开加号,找到“\EFI\BOOT\grubx64.efi”,点“确定”;
 b4grub.png

 6)点“确定”返回主窗口,在左边的启动列表里,选中“Ubuntu”,点中间第一个绿色向上箭头,调到第一位,点击返回主窗口;
 b5up.png
 7)关闭所有窗口,重启计算机,可以按“win键+R”调出运行框,输入 shutdown.exe -f -r -t 0

 3、安装Ubuntu系统
 1)重新启动后,出现Ubuntu安装菜单,按回车键进入第一个试用Ubuntu(Try Ubuntu);

 a1grub.png

原文 http://linux.dell.com/efibootmgr/efibootmgr.txt

  1. This is efibootmgr, a Linux user-space application to modify the Intel
  2. Extensible Firmware Interface (EFI) Boot Manager. This application
  3. can create and destroy boot entries, change the boot order, change
  4. the next running boot option, and more.
  5. Details on the EFI Boot Manager are available from the EFI
  6. Specification, v1.02 or above, available from http://developer.intel.com.
  7. Note: efibootmgr requires that the kernel module efivars be loaded
  8. prior to use. 'modprobe efivars' should do the trick.
  9. usage: efibootmgr [options]
  10. -a | --active sets bootnum active
  11. -A | --inactive sets bootnum inactive
  12. -b | --bootnum XXXX modify BootXXXX (hex)
  13. -B | --delete-bootnum delete bootnum (hex)
  14. -c | --create create new variable bootnum and add to bootorder
  15. -d | --disk disk (defaults to /dev/sda) containing loader
  16. -e | --edd [1|3|-1] force EDD 1.0 or 3.0 creation variables, or guess
  17. -E | --device num EDD 1.0 device number (defaults to 0x80)
  18. -g | --gpt force disk w/ invalid PMBR to be treated as GPT
  19. -H | --acpi_hid XXXX set the ACPI HID (used with -i)
  20. -i | --iface name create a netboot entry for the named interface
  21. -l | --loader name (defaults to \elilo.efi)
  22. -L | --label label Boot manager display label (defaults to "Linux")
  23. -n | --bootnext XXXX set BootNext to XXXX (hex)
  24. -N | --delete-bootnext delete BootNext
  25. -o | --bootorder XXXX,YYYY,ZZZZ,... explicitly set BootOrder (hex)
  26. -O | --delete-bootorder delete BootOrder
  27. -p | --part part (defaults to 1) containing loader
  28. -q | --quiet be quiet
  29. --test filename don't write to NVRAM, write to filename
  30. -t | --timeout seconds Boot manager timeout
  31. -T | --delete-timeout delete Timeout value
  32. -u | --unicode | --UCS-2 pass extra args as UCS-2 (default is ASCII)
  33. -U | --acpi_uid XXXX set the ACPI UID (used with -i)
  34. -v | --verbose print additional information
  35. -V | --version return version and exit
  36. -w | --write-signature write unique sig to MBR if needed
  37. Typical usage:
  38. 1) Root can use it to display the current Boot Manager settings.
  39. [root@localhost ~]# efibootmgr
  40. BootCurrent: 0004
  41. BootNext: 0003
  42. BootOrder: 0004,0000,0001,0002,0003
  43. Timeout: 30 seconds
  44. Boot0000* Diskette Drive(device:0)
  45. Boot0001* CD-ROM Drive(device:FF)
  46. Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)
  47. Boot0003* PXE Boot: MAC(00D0B7C15D91)
  48. Boot0004* Linux
  49. This shows:
  50. BootCurrent - the boot entry used to start the currently running
  51. system.
  52. BootOrder - the boot order as would appear in the boot manager. The
  53. boot manager tries to boot the first active entry on this list. If
  54. unsuccessful, it tries the next entry, and so on.
  55. BootNext - the boot entry which is scheduled to be run on next boot.
  56. This superceeds BootOrder for one boot only, and is deleted by the
  57. boot manager after first use. This allows you to change the next boot
  58. behavior without changing BootOrder.
  59. Timeout - the time in seconds between when the boot manager appears
  60. on the screen until when it automatically chooses the startup value
  61. from BootNext or BootOrder.
  62. Five boot entries (0000 - 0004), the active/inactive flag (* means
  63. active), and the name displayed on the screen.
  64. 2) An OS installer would call 'efibootmgr -c'. This assumes that
  65. /boot/efi is your EFI System Partition, and is mounted at /dev/sda1.
  66. This creates a new boot option, called "Linux", and puts it at the top
  67. of the boot order list. Options may be passed to modify the
  68. default behavior. The default OS Loader is elilo.efi.
  69. 3) A system administrator wants to change the boot order. She would
  70. call 'efibootmgr -o 3,4' to specify PXE boot first, then Linux
  71. boot.
  72. 4) A system administrator wants to change the boot order for the next
  73. boot only. She would call 'efibootmgr -n 4' to specify that the
  74. Linux entry be taken on next boot.
  75. 5) A system administrator wants to delete the Linux boot option from
  76. the menu. 'efibootmgr -b 4 -B' deletes entry 4 and removes it
  77. from BootOrder.
  78. 6) A system administrator wants to create a boot option to network
  79. boot (PXE). Unfortunately, this requires knowing a little more
  80. information about your system than can be easily found by
  81. efibootmgr, so you've got to pass additional information - the ACPI
  82. HID and UID values. These can generally be found by using the EFI
  83. Boot Manager (in the EFI environment) to create a network boot
  84. entry, then using efibootmgr to print it verbosely. Here's one example:
  85. Boot003* Acpi(PNP0A03,0)/PCI(5|0)/Mac(00D0B7F9F510) \
  86. ACPI(a0341d0,0)PCI(0,5)MAC(00d0b7f9f510,0)
  87. In this case, the ACPI HID is "0A0341d0" and the UID is "0".
  88. For the zx2000 gigE, the HID is "222F" and the UID is "500".
  89. For the rx2000 gigE, the HID is "0002" and the UID is "100".
  90. You create the boot entry with:
  91. 'efibootmgr -c -i eth0 -H 222F -U 500 -L netboot'
  92. Many other uses may be found.
  93. Please direct any bugs, features, patches, etc. to Matt Domsch
  94. .

发表评论

表情:
评论列表 (有 0 条评论,1056人围观)

还没有评论,来说两句吧...

相关阅读

    相关 硬盘安装Ubuntu

    前段时间看到有kylinUbuntu,心血来潮想装一个。但无论是硬盘安装还是u盘安装最终卡在log界面就不动了。后来折腾了很久换了个centos,结果还没玩电脑就坏了,这事就这