配置refind config以去除不必要的选项 您所在的位置:网站首页 deepin启动项无法删除 配置refind config以去除不必要的选项

配置refind config以去除不必要的选项

2024-02-04 03:31| 来源: 网络整理| 查看: 265

前言

在上文中,我们已经完成了refind的安装及使用,可能有人发现怎么有许许多多没见过的引导选项出现了。本文就此情况我将进一步作出解释并讲述如何屏蔽一些不必要的选项。

先给大家看一下笔者默认配置下的引导界面,接下来开始修改配置 这里写图片描述

开始修改

首先先告诉大家如何修改配置文件 打开终端输入diskutil list并定位efi分区 /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 这里efi分区在/dev/disk0s1,找到并挂载它方便修改 mkdir /Volumes/efi sudo mount -t msdos /dev/disk0s1 /Volumes/efi/ 打开Finder,左侧找到EFI目录,进去并找到refind目录,refind.conf即是我们接下来要修改的配置文件 觉得refind等标题字样不好看? # Hide user interface elements for personal preference or to increase # security: #refind标识图和字样 # banner - the rEFInd title banner (built-in or loaded via "banner") #标签文字描述和倒数计时 # label - boot option text label in the menu #os x系统子菜单单用户或者啰嗦模式 # singleuser - remove the submenu options to boot Mac OS X in single-user # or verbose modes; affects ONLY MacOS X #os x系统子菜单安全模式 # safemode - remove the submenu option to boot Mac OS X in "safe mode" #apple硬件测试 # hwtest - the submenu option to run Apple's hardware test #标签左右剪头 # arrows - scroll arrows on the OS selection tag line #最底部按键说明 # hints - brief command summary in the menu #编辑菜单 # editor - the options editor (+, F2, or Insert on boot options menu) #设备类型徽章(不太理解这个) # badges - device-type badges for boot options # all - all of the above # Default is none of these (all elements active) # #hideui singleuser hideui all #上面是配置文件大意解析,这里我直接设置为hideui all #以屏蔽所有文本字样等

开机等待时间过长? # Timeout in seconds for the main menu screen. Setting the timeout to 0 # disables automatic booting (i.e., no timeout). Setting it to -1 causes # an immediate boot to the default OS *UNLESS* a keypress is in the buffer # when rEFInd launches, in which case that keypress is interpreted as a # shortcut key. If no matching shortcut is found, rEFInd displays its # menu with no timeout. # timeout 5 #设置默认等待时间为5 #0 : 无限期等待 #-1: 立即进入默认的系统

怎么有两个ubuntu启动项?

这里写图片描述

笔者发现左边的ubuntu标志是启动了efi分区的引导文件,右边的是直接启动了ubuntu内核,那么就将右边的屏蔽了吧

# Scan for Linux kernels that lack a ".efi" filename extension. This is # useful for better integration with Linux distributions that provide # kernels with EFI stub loaders but that don't give those kernels filenames # that end in ".efi", particularly if the kernels are stored on a # filesystem that the EFI can read. When set to "1", "true", or "on", this # option causes all files in scanned directories with names that begin with # "vmlinuz" or "bzImage" to be included as loaders, even if they lack ".efi" # extensions. Passing this option a "0", "false", or "off" value causes # kernels without ".efi" extensions to NOT be scanned. # Default is "true" -- to scan for kernels without ".efi" extensions. # scan_all_linux_kernels false #设置为false以屏蔽检查所有linux内核

操作系统图标下面一排小图标是干嘛的? # Which non-bootloader tools to show on the tools line, and in what # order to display them: # efi 命令行 # shell - the EFI shell (requires external program; see rEFInd # documentation for details) # 内存测试 # memtest - the memtest86 program, in EFI/tools, EFI/memtest86, # EFI/memtest, EFI/tools/memtest86, or EFI/tools/memtest # gpt同步工具 # gptsync - the (dangerous) gptsync.efi utility (requires external # program; see rEFInd documentation for details) # gdisk磁盘管理 # gdisk - the gdisk partitioning program # 苹果恢复模式 # apple_recovery - boots the Apple Recovery HD partition, if present # 微软恢复模式 # windows_recovery - boots an OEM Windows recovery tool, if present # (see also the windows_recovery_files option) # MokManager 管理工具 # mok_tool - makes available the Machine Owner Key (MOK) maintenance # tool, MokManager.efi, used on Secure Boot systems # csr_rotate - adjusts Apple System Integrity Protection (SIP) # policy. Requires "csr_values" to be set. # 关于refind # about - an "about this program" option # 退出 # exit - a tag to exit from rEFInd # 关机 # shutdown - shuts down the computer (a bug causes this to reboot # many UEFI systems) # 重启 # reboot - a tag to reboot the computer # 重启到firmware # firmware - a tag to reboot the computer into the firmware's # user interface (ignored on older computers) # firmware升级模式 # fwupdate - a tag to update the firmware; launches the fwupx64.efi # (or similar) program # netboot - launch the ipxe.efi tool for network (PXE) booting # Default is shell,memtest,gdisk,apple_recovery,windows_recovery,mok_tool,about,shutdown,reboot,firmware,fwupdate # showtools apple_recovery, windows_recovery, about, shutdown, reboot #个人只留下了恢复模式,关于refind,关机,重启。大家自行抉择

最后效果图

这里写图片描述 参考文献

http://blog.csdn.net/bleachswh/article/details/51713567



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有