配置refind config以去除不必要的选项
来源:互联网 发布:住户部门贷款数据 编辑:程序博客网 时间:2024/04/29 13:26
前言
在上文中,我们已经完成了refind的安装及使用,可能有人发现怎么有许许多多没见过的引导选项出现了。本文就此情况我将进一步作出解释并讲述如何屏蔽一些不必要的选项。
先给大家看一下笔者默认配置下的引导界面,接下来开始修改配置
开始修改
首先先告诉大家如何修改配置文件
- 打开终端输入
diskutil list
并定位efi分区
/dev/disk0 (internal, physical):#: TYPE NAME SIZE IDENTIFIER0: GUID_partition_scheme *251.0 GB disk01: EFI EFI 209.7 MB disk0s1
- 这里efi分区在
/dev/disk0s1
,找到并挂载它方便修改
mkdir /Volumes/efisudo 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 singleuserhideui 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
0 0
- 配置refind config以去除不必要的选项
- 去除不必要选项 加快IE 7页面浏览速度
- C++去除不必要的编译警告
- 大型程序的结构(二)【配置选项config.py】
- 使用正则表达式去除数据中不必要的0
- wordpress优化提速:去除不必要的元素标签
- 去除PreferenceScreen的菜单选项
- udev依赖的config选项
- ubuntu15.10 下refind的安装
- 如何自定义kindeditor编辑器的工具栏items即去除不必要的工具栏或者保留部分工具栏
- 如何自定义kindeditor编辑器的工具栏items即去除不必要的工具栏或者保留部分工具栏
- 如何自定义kindeditor编辑器的工具栏items即去除不必要的工具栏或者保留部分工具栏
- Kernel中bluetooth相关的config选项
- Kernel中bluetooth相关的config选项
- thinkphp的config.php配置文件选项
- Kernel中bluetooth相关的config选项
- 在Jboss修改Web 访问路径或去除不必要的上下文空间
- web.config的配置
- 深入解析Java编程中方法的参数传递
- HTML——表格标记
- 阅读笔记1
- 剑指Offer面试题8:寻找旋转数组的最小元素
- servlet生命周期
- 配置refind config以去除不必要的选项
- 単例模式
- 定时器的合并和变速
- Android闹钟设置的解决方案
- 使用jdk1.7与spring 2.5 jar包冲突的解决
- 以太坊平台评估 私有链和联盟链的机会与挑战
- 【杭电2002】计算球体积
- RGB游戏解析
- ART世界探险(5) - 计算指令