范文健康探索娱乐情感热点
热点动态
科技财经
情感日志
励志美文
娱乐时尚
游戏搞笑
探索旅游
历史星座
健康养生
美丽育儿
范文作文
教案论文

IT之家学院rEFind引导使用教程

  感谢IT之家网友 RushB111 的线索投递!
  一、refind介绍
  首先,refind一般在UEFI启动环境下使用,他可以用来引导各类操作系统的启动(Windows 8+,Linux,Mac OS),不基于任何操作系统平台,总之,当refind被选为系统首选引导项的时候,可以实现如下的效果:
  二、rEFind的使用
  必须提醒的是:下面所述的所有关于rEFInd引导教程都必须要求电脑支持UEFI,传统的Legacy引导不可用!本部分可以基于两个系统平台来进行,首先是Linux平台,个人推荐Linux下进行,简单快捷。
  基于debian系的Linux平台的rEFInd安装:(建议选择此种安装方式) sudoapt-add-repositoryppa:rodsmith/refind  sudoapt-getupdate  sudoapt-getinstallrefind
  安装过程中会弹出来一个选择页面,选Yes就对了。
  或者手动安装,deb包下载链接:下载链接
  双击安装,或者命令行安装,命令行逼格高一点sudodpkg-irefind_0.11.4-1_amd64.deb  sudorefind-install
  到此,refind的安装已经完毕,比Windows不知道快到哪里去了。
  其实完成到这一步,电脑默认会首选rEFInd引导,反正我的电脑是。如果没有,可以自己去BIOS中设置一下,这个就不多说了,相信大家应该会,如果不会进BIOS的话,也可以在Windows平台通过easyUEFI软件进行处理,这一步等后面介绍Windows平台的使用再说。
  下面是rEFInd的编辑与使用:
  Refind所有的配置信息位于/boot/efi/EFI/refind/refind.conf。
  下面对这一文件用得到的相关参数说明一下:
  refind.conf文件的所有内容,很长,我只选了一部分,挑中文注释看就好了,你们编辑的时候选择对应的内容搜索就好了,以下的"#"代表注释的意思,没有执行的作用,若是去掉某一行的#,则代表执行这条指令。#  #refind.conf  #ConfigurationfilefortherEFIndbootmenu  #  #Timeoutinsecondsforthemainmenuscreen.Settingthetimeoutto0  #disablesautomaticbooting(i.e.,notimeout).Settingitto-1causes  #animmediateboottothedefaultOS*UNLESS*akeypressisinthebuffer  #whenrEFIndlaunches,inwhichcasethatkeypressisinterpretedasa  #shortcutkey.Ifnomatchingshortcutisfound,rEFInddisplaysits  #menuwithnotimeout.  #  #设置默认等待时间为5s  #timeout0代表无限等待timeout-1代表立即进入对应的系统  timeout5  #  #Setthescreen'svideoresolution.Passthisoptioneither:  #*twovalues,correspondingtotheXandYresolutions  #*onevalue,correspondingtoaGOP(UEFI)videomode  #Notethatnotallresolutionsaresupported.OnUEFIsystems,passing  #anincorrectvalueresultsinamessagebeingshownonthescreento  #thateffect,alongwithalistofsupportedmodes.OnEFI1.xsystems  #(e.g.,Macintoshes),settinganincorrectmodesilentlyfails.Onboth  #typesofsystems,settinganincorrectresolutionresultsinthedefault  #resolutionbeingused.Aresolutionof1024x768usuallyworks,buthigher  #valuesoftendon't.  #Defaultis"00"(usethesystemdefaultresolution,usually800x600).  #  #分辨率设置,我建立这里别动,上面注释中也说了。1024*768以上的分辨率并不支持,  #我是默认的,没动它,所以没事别自己搞个19201080  #resolution1024768  #resolution1440900  #resolution3  #  #DirectoriesthatshouldNOTbescannedforbootloaders.Bydefault,  #rEFInddoesn'tscanitsowndirectory,theEFI/toolsdirectory,the  #EFI/memtestdirectory,theEFI/memtest86directory,orthe  #com.apple.recovery.bootdirectory.Usingthedont_scan_dirsoption  #enablesyouto"blacklist"otherdirectories;butbesuretouse"+"  #asthefirstelementifyouwanttocontinueblacklistingexisting  #directories.YoumightusethistokentokeepEFI/boot/bootx64.efiout  #ofthemenuifthat'saduplicateofanotherbootloaderortoexclude  #adirectorythatholdsdriversornon-bootloaderutilitiesprovidedby  #ahardwaremanufacturer.Ifadirectoryislistedbothhereandin  #also_scan_dirs,dont_scan_dirstakesprecedence.Notethatthis  #blacklistappliestoALLthefilesystemsthatrEFIndscans,notjust  #theESP,unlessyouprecedethedirectorynamebyafilesystemnameor  #partitionuniqueGUID,asin"myvol:EFI/somedir"toexcludeEFI/somedir  #fromthescanonthemyvolvolumebutnotonothervolumes.  #  #这部分看注释的意思,应该是不扫描ESP分区的某些文件夹,我自己为了去除某些多余  #的启动项,于是设置了dont_scan_dirsESP:/EFI/ubuntu,但不知道为什么,没有用,  #启动项里仍会出现Ubuntu的引导项,所以我不建议在这部分选择屏蔽引导项.  #dont_scan_dirsESP:/EFI/boot,EFI/Dell,EFI/memtest86  #FilesthatshouldNOTbeincludedasEFIbootloaders(onthe  #firstlineofthedisplay).Ifyou'reusingabootloaderthat  #reliesonsupportprogramsordriversthatareinstalledalongside  #themainbinaryorifyouwantto"blacklist"certainloadersby  #nameratherthanlocation,usethisoption.Notethatthiswill  #NOTpreventcertainbinariesfromshowingupinthesecond-row  #setoftools.Mostnotably,variousSecureBootandrecovery  #toolsarepresentinthislist,butmayappearassecond-row  #items.  #Thefilemaybespecifiedasabarename(e.g.,"notme.efi"),as  #acompletepathname(e.g.,"/EFI/somedir/notme.efi"),orasa  #completepathnamewithvolume(e.g.,"SOMEDISK:/EFI/somedir/notme.efi"  #or2C17D5ED-850D-4F76-BA31-47A561740082:/EFI/somedir/notme.efi").  #OStagshiddenviatheDeleteor'-'keyintherEFIndmenuare  #addedtothislist,butstoredinNVRAM.  #Thedefaultisshim.efi,shim-fedora.efi,shimx64.efi,PreLoader.efi,  #TextMode.efi,ebounce.efi,GraphicsConsole.efi,MokManager.efi,HashTool.efi,  #HashTool-signed.efi,bootmgr.efi,fb{arch}.efi  #(where"{arch}"isthearchitecturecode,like"x64").  #  #这部分和上面那部分类似,都是屏蔽之用,区别在于上面部分是针对文件夹,这部分是针  #对具体文件,这部分在去除某些启动项有着极为关键的作用,我将详细展开叙述。  #dont_scan_filesshim.efi,MokManager.efi
  多余启动项的删除策略:
  首选,我们可以先看一下EFI分区的文件信息:(Linux系统中的位置:boot/efi/EFI)
  refind他针对某些.efi的文件会选择无脑的引导,因此我们为了简洁或者美观,需要屏蔽某些文件的引导,屏蔽不会修改原EFI分区中的系统引导文件,换言之,安全,针对我的Deepin,引导文件位于deepin/grubx64.efi(EFI分区的相对路径),以及我的Windows引导文件,位于Microsoft/Boot/bootmgfw.efi,而我们需要保留的就这两个,其他的一律屏蔽,屏蔽的命令:dont_scan_files/EFI/ubuntu/grubx64.efi,XXX,XXX
  (这代表屏蔽了ubuntu文件夹下的grubx64.efi引导文件,还需要屏蔽其他文件XXX,直接在上面的指令中以英文格式下的逗号分隔就好了,最后一项不需要逗号)
  #ScanforLinuxkernelsthatlacka".efi"filenameextension.Thisis  #usefulforbetterintegrationwithLinuxdistributionsthatprovide  #kernelswithEFIstubloadersbutthatdon'tgivethosekernelsfilenames  #thatendin".efi",particularlyifthekernelsarestoredona  #filesystemthattheEFIcanread.Whensetto"1","true",or"on",this  #optioncausesallfilesinscanneddirectorieswithnamesthatbeginwith  #"vmlinuz"or"bzImage"tobeincludedasloaders,eveniftheylack".efi"  #extensions.Passingthisoptiona"0","false",or"off"valuecauses  #kernelswithout".efi"extensionstoNOTbescanned.  #Defaultis"true"--toscanforkernelswithout".efi"extensions.  #  #此段为屏蔽扫描所有Linux内核,refind启动项包括了扫描的操作系统内核,其实通过  #扫描的内核启动操作系统更快,因为会直接跳过Linux系统的grub引导而直接启动对应  #的Linux系统,但是考虑到有时候需要系统修复什么的,建议还是通过grub引导的菜单  #启动吧,屏蔽内核检查的指令如下:  scan_all_linux_kernelsfalse
  在refind.conf文件的最后一行,需要加一行指令,这是涉及到refind的主题美化的方面,指令内容为:include<相对路径>/theme.config
  (相对路径是指你的主题配置文件theme.config在以refind目录为根目录的文件路径)
  比如我的theme文件位于refind目录下的themes/rEFInd-minimal处,所以我的指令是:includethemes/rEFInd-minimal/theme.config
  至此,关于refind.conf文件的介绍就完毕了,下面是关于theme文件的介绍
  首先,看refind文件夹结构(refind文件夹位于EFI分区目录)
  主题文件位于theme文件夹:
  这是我的主题,就用了这一个,打开:
  然后来介绍theme.conf文件,以下是我的文件内容,不长,看中文注释信息就好了:#Minimalrefindtheme  #Hideuserinterfaceelementsforpersonalpreferenceortoincrease  #security:  #banner-therEFIndtitlebanner(built-inorloadedvia"banner")  #label-bootoptiontextlabelinthemenu  #singleuser-removethesubmenuoptionstobootMacOSXinsingle-user  #orverbosemodes;affectsONLYMacOSX  #safemode-removethesubmenuoptiontobootMacOSXin"safemode"  #hwtest-thesubmenuoptiontorunApple'shardwaretest  #arrows-scrollarrowsontheOSselectiontagline  #hints-briefcommandsummaryinthemenu  #editor-theoptionseditor(+,F2,orInsertonbootoptionsmenu)  #all-alloftheabove  #Defaultisnoneofthese(allelementsactive)  #  hideuisingleuser,hints,arrows,label,badges  #Setthenameofasubdirectoryinwhichiconsarestored.Iconsmust  #havethesamenamestheyhaveinthestandarddirectory.Thedirectory  #nameisspecifiedrelativetothemainrEFIndbinary'sdirectory.If  #aniconcan'tbefoundinthespecifieddirectory,anattemptismade  #toloaditfromthedefaultdirectory;thus,youcanreplacejustsome  #iconsinyourowndirectoryandrelyonthedefaultforothers.  #Defaultis"icons".  #各种系统的启动图标  icons_dirthemes/rEFInd-minimal/icons  #UseacustomtitlebannerinsteadoftherEFIndiconandname.Thefile  #pathisrelativetothedirectorywhererefind.efiislocated.Thecolor  #inthetopleftcorneroftheimageisusedasthebackgroundcolor  #forthemenuscreens.CurrentlyuncompressedBMPimageswithcolor  #depthsof24,8,4or1bitsaresupported,aswellasPNGimages.  #这是启动界面背景图片路径,也是相对路径,且暂时似乎只支持png格式的图片  bannerthemes/rEFInd-minimal/background.png  #TellsrEFIndwhethertodisplaybannerimagespixel-for-pixel(noscale)  #ortoscalebannerimagestofillthescreen(fillscreen).Theformeris  #thedefault.  #默认全屏填充  banner_scalefillscreen  #Customimagesfortheselectionbackground.Thereisabigone(144x144)  #fortheOSicons,andasmallone(64x64)forthefunctioniconsinthe  #secondrow.Ifonlyasmallimageisgiven,thatoneisalsousedfor  #thebigiconsbystretchingitinthemiddle.Ifonlyabigoneisgiven,  #thebuilt-indefaultwillbeusedforthesmallicons.  #  #Likethebanneroptionabove,theseoptionstakeafilenameofan  #uncompressedBMPimagefilewithacolordepthof24,8,4,or1bits,  #oraPNGimage.ThePNGformatisrequiredifyouneedtransparency  #support(toletyou"seethrough"toafull-screenbanner).  #  selection_bigthemes/rEFInd-minimal/selection_big.png  selection_smallthemes/rEFInd-minimal/selection_small.png  #Whichnon-bootloadertoolstoshowonthetoolsline,andinwhat  #ordertodisplaythem:  #shell-theEFIshell(requiresexternalprogram;seerEFInd  #documentationfordetails)  #gptsync-the(dangerous)gptsync.efiutility(requiresexternal  #program;seerEFInddocumentationfordetails)  #apple_recovery-bootstheAppleRecoveryHDpartition,ifpresent  #mok_tool-makesavailabletheMachineOwnerKey(MOK)maintenance  #tool,MokManager.efi,usedonSecureBootsystems  #about-an"aboutthisprogram"option  #exit-atagtoexitfromrEFInd  #shutdown-shutsdownthecomputer(abugcausesthistoreboot  #EFIsystems)  #reboot-atagtorebootthecomputer  #firmware-atagtorebootthecomputerintothefirmware's  #userinterface(ignoredonoldercomputers)  #Defaultisshell,apple_recovery,mok_tool,about,shutdown,reboot,firmware  #  showtoolsshutdown
  文件中还有很多杂七杂八的东西,感兴趣的话可以Google一下,官方文档说得也十分详细,再有就是refind主题的下载链接,我放一下,来源于Github,分享只作学习交流之用。GitHub地址
  大家可以选择自己感兴趣的主题下载,安装的话,记得在refind.conf文件末尾改路径哦。
  以上针对的是对rEFInd比较感兴趣并且动手能力比较强的朋友们的一个介绍,你们完全可以自己去折腾rEFInd的配置,又不动EFI分区的其他系统文件,所以基本无风险,大不了在BIOS中改回原来的引导。
  再就是,懒人版!
  我自己用的主题以及自己配的rEFind文件:
  感兴趣的朋友可以把我的refind配置拿来用,UEFI机器通用。你可以用我的refind.conf文件替换官方的,也可以把我theme文件夹中的主题拿去用,也可以替换你EFI文件夹中的整个refind文件夹。下载链接(提取码: cmyj)
  记得解压出里面的refind文件夹,将refind文件夹放入EFI分区即可。而如何放入EFI分区呢,Linux操作系统很简单,直接取得root权限,将refind文件夹移动至boot/efi/EFI即可,命令行操作:sudocp-a****/refind/boot/efi/EFI/
  (****代表你的refind文件夹的路径)
  Windows下,需要将EFI分区单独搞出来
  三、Windows操作如下:
  访问EFI分区的操作步骤(点此进入):
  进行到这一步,refind的移动就算处理完毕了,最后就是在BIOS中添加rEFInd的引导项,并选为第一引导项,在Windows平台,我通过easyUEFI来进行(搜索查找即可下载)
  打开easyUEFI
  选择Linux或其他操作系统,描述自己取个名字,用英文吧。目标分区选中ESP分区,我这里是第二个。
  点击浏览
  点那个小加号,找到refind:
  选中refind_x64.efi,过一会儿,点击确定,会发现在最后一行出现你新建的项:
  上移,移动到第一个为止,到此,即已完成。以上便是整个教程了,赶快定制你喜欢的启动页面吧(主要是主题,背景也可单独更换)。

微软Win10免费工具集PowerToysv0。37。2发布修复资源管理器崩溃问题IT之家5月12日消息微软名为PowerToys的免费系统实用工具套件从WindowsXP时代复活,并于2019年5月引入Windows10系统。可以用于高级用户调整和简化Wind微软Win10OneDrive64位版本5月中旬完全升级性能更好,加快备份和同步IT之家5月10日消息外媒WindowsLatest报道,今年4月,微软确认计划推出桌面版OneDrive64位,以改善Windows10的整体体验。根据管理中心发布的消息,One微软Win10ARM笔记本新增支持通用打印IT之家5月6日消息外媒报道,去年,微软宣布了UniversalPrint(通用打印),这是一个基于云的打印基础设施,将为用户提供简单丰富和安全的打印体验,并帮助减少IT部门的时间Win10DefenderBug导致C盘产生大量文件,微软已修复IT之家5月6日消息根据用户反馈和外媒的测试,WindowsDefender在Windows10中存在一个会生成大量文件的bug,一个有问题的WindowsDefender更新是造ISP微软XboxSeriesXS上市,更新和游戏下载流量暴涨打破纪录IT之家11月16日消息外媒gizmodo报道,近期XboxSeriesX和XboxSeriesS两款次世代游戏主机已经上市。微软表示,XboxSeriesXS发布会为公司创造了销微软文件确认Win10CloudPC云电脑升级至少包括中级重型高级三种配置IT之家1月3日消息外媒WindowsLatest报道,此前有消息称,微软正在秘密研发Windows10CloudPC,这是一项新服务,将允许用户在几分钟内从任何设备访问桌面应用。WindowsPhone开发遗留问题,微软Win10应用商店下架OfficeLensIT之家1月3日消息外媒Alumia报道,去年10月,我们曾报道过微软将停止支持Windows10的OfficeLens应用,该应用于2021年1月1日从微软商店中移除。如今这一天爆料微软Win102021年版本将迎来重大UI界面更新,代号太阳谷IT之家10月28日消息外媒WindowsCentral报道,2021年的Windows10系统将迎来UI大更新,该项目代号为SunValley太阳谷。预计将对文件资源管理器开始菜微软Win10更新将永久删除AdobeFlashPlayerIT之家1月3日消息外媒WindowsLatest报道,从2020年12月31日开始,Adobe将彻底杀死FlashPlayer,现在建议用户从Windows10和网页浏览器中卸载微软Win10星期二补丁更新将在7月完全删除FlashPlayerIT之家5月4日消息外媒WindowsLatest报道,微软正在缓慢地从Windows10的所有版本中删除FlashPlayer。移除FlashPlayer的可选更新自今年2月起可InstagramWin10版已升级为EdgePWA应用,还不能发布照片IT之家5月4日消息外媒WindowsLatest报道,Windows10应用商店仍然被顶尖公司所忽视,当某个科技巨头决定为他们的应用程序发布新的更新时,这往往会成为新闻。与Ube
谷歌YoutubeWin10应用现身微软商店列表,未来即将上线IT之家10月2日消息据Windowslatest报道,根据泄露的MicrosoftStore列表显示,YouTubeWin10App正在准备中。IT之家了解到,这个新的YouTu微软发布Win10KB4577063可选更新,修复Linux的Windows子系统问题IT之家10月2日消息据Windowslatest报道,微软近日发布了Win10KB4577063可选更新,包含多项重大修复。Windows10KB4577063是可选更新,未经用微软Win1020H2Beta发布预览版19042。541推送感谢IT之家网友白色窗帘的线索投递!IT之家9月23日消息微软今天面向运行2020Windows10更新十月版的Beta测试版和发布预览版渠道用户推送了Windows1020H2B微软发布SurfaceLaptopGo针对入门用户,约3734元起IT之家10月1日消息微软今天推出了新的SurfaceLaptopGo笔记本,针对入门级用户,是目前价格最低的Surface设备之一,仅为549美元起。在微软的产品线中,只有399微软暗示还会有Office2022永久授权版本感谢IT之家网友踏遍轮回遇见你的线索投递!IT之家9月24日消息外媒Computerworld报道,下一个永久版Office将于2021年亮相。事实证明,Office2019并不是微软Win10Dev预览版Build20221发布(附更新内容大全)IT之家9月24日消息微软今天在Dev开发频道发布了Windows10预览版Build20221,带来了两个新功能,另外还有一些错误修复和性能改进。安装了最新的WindowsIns微软承诺将重新关注Windows10发展IT之家9月24日消息据Windowslatest报道,微软在Windows10的新开始菜单上花费了很长时间,用户可以在今年晚些时候试用它了。同时,微软还承诺将重新关注Window宏碁Swift5Swift3笔记本电脑发布搭载第11代英特尔酷睿处理器IT之家9月3日消息宏碁宣布对其轻薄笔记本电脑系列Swift5和Swift3进行更新,搭载英特尔最新推出的第11代酷睿移动处理器与IrisXe图形显卡,Swift5还将成为首批符合荣耀与微软签署全球PC合作协议Win10成荣耀笔记本电脑官方操作系统IT之家12月24日消息今日,荣耀宣布与微软签署全球合作协议。荣耀将在全球范围内采用微软Windows10作为荣耀笔记本电脑官方操作系统。荣耀CEO赵明先生表示荣耀很高兴与微软达成开发者自制驱动令Win1021H1手机版重启蜂窝数据支持IT之家9月27日消息据Windowslatest报道,微软已经停止了Windows10Mobile和Andromeda项目的开发,但是仍然有一些技能娴熟的开发人员没有放弃。独立开微软商城国庆大促认证翻新SurfacePro7上新低至5409元IT之家9月26日消息微软中国官方商城将于9月27日10月7日开启翻新机大促,认证翻新SurfacePro7全新上架i5款低至5409元,SurfaceLaptop上架m3款机型,