自动引导
操作
步骤一 查看CPU型号
步骤二 下载对应的 你所需要的linux 发行版本
备注 IA32 (i386) 32位U 支持UEFI 启动的LINUX 发行版有 debian 等 我用的是
debian-live-9.1.0-i386-kde.iso
而各大主流的 LINUX 64位发行版基本都支持 UEFI 启动
3.分区 我使用的是WIN系统自带的 位置位于 控制面板->系统和安全->创建并格式化硬盘分区 或者使用 DiskGenius 进行分区
4.使用 rufus-2.16p 或者 软通碟 将你需要的系统写入U盘
5.进入 BIOS 关闭快速启动 和 secure boot
6.插入U盘 看到启动画面按快捷键进入启动项选择(各个 厂家的启动项按键不一样)
相关工具
系统刻录:软通碟, rufus-2.16p ,EasyUEFI_Free(添加UEFI 到启动项)
分区以及备份: win 自带的分区工具 控制面板->系统和安全->创建并格式化硬盘分区,DiskGenius ,mintools(磁盘复制)
手动引导操作
相关概念
1. MBR分区表:Master Boot Record,即硬盘主引导记录分区表,只支持容量在 2.1TB 以下的硬盘,超过2.1TB的硬盘只能管理2.1TB,最多只支持4个主分区或三个主分区和一个扩展分区,扩展分区下可以有多个逻辑分区。
2. GPT分区表:GPT,全局唯一标识分区表(GUID Partition Table),与MBR最大4个分区表项的限制相比,GPT对分区数量没有限制,但Windows最大仅支持128个GPT分区,GPT可管理硬盘大小达到了18EB。只有基于UEFI平台的主板才支持GPT 分区引导启动。
3. ESP分区:EFI system partition,该分区用于采用了EFI BIOS的电脑系统,用来启动操作系统。分区内存放引导管理程序、 驱动程序、系统维护工具等。如果电脑采用了EFI系统,或当前磁盘用于在EFI平台上启动操作系统,则应建议ESP分区。
4. MSR分区:即微软保留分区,是GPT磁盘上用于保留空间以备用的分区,例如在将磁盘转换为动态磁盘时需要使用这些 分区空间。
5. SECURE BOOT功能:Windows 8中增加了一个新的安全功能,Secure Boot内置于UEFI BIOS中,用来对抗感染MBR、BIOS的恶意软件, Windows 8 缺省将使用Secure Boot,在启动过程中,任何要加载的模块必须签名(强制的),UEFI固件会进行验证, 没有签名或者无法验证的,将不会加载。
Windows环境下挂在EFI分区 挂载后可通过资源管理器 打开
Windows环境下挂在EFI分区。接下来说明如何直接挂载分区,不使用第三方软件。
按快捷键 Win + X,在左下角弹出的菜单中选择 命令提示符(管理员)然后分别输入以下指令:
diskpart
sel disk 0
list part
sel part x (x为EFI分区分区号)
assign letter=x (x为分配的盘符)
说明
介绍一下常用的几个命令的功能:
diskpart //运行Diskpart工具
list disk //列举出所有磁盘
sel disk 0 //选中磁盘0
list part //列举所有分区(在所有分区中找到EFI分区,类型为“系统”)
sel part 1 //以我的为例,我的分区1是EFI分区,选择分区1
assign letter=x //将上边选中的分区挂载,盘符为 x
标准的 UEFI 引导文件目录
系统文件根目录
├─boot
│ └─grub
└─EFI
└─BOOT
手动引导 UEFI
重启,进入BIOS 选择重启进入 UEFI SHELL (这玩意能直接修改 BIOS)
执行
shell>map: //查看已有硬盘分区
shell>fs1:回车执行后,会切换到你的FAT32格式的U盘,里面装的有操作系统文件我们需要找UEFI的引导器文件bootia32.efi,。
shell>cd \EFI\boot [回车] //进入引导目录
shell>bootia32.efi [回车] //手动引导
cp 是复制文件的命令
ls 命令来查看硬盘上有哪些文件及文件夹
map 查看硬盘
EFI SHELL COMMANDS UEFI 命令行参数
Shell Boot Commands
==================================================
autoboot -- View or set autoboot timeout variable
bcfg -- Displays/modifies the driver/boot configuration
boottest -- Set/View BootTest bits
clearlogs -- Clears FPL and SEL logs
dblk -- Displays the contents of blocks from a block device
lanboot -- Performs boot over lan from EFI Shell
mount -- Mounts a file system on a block device
reset -- Resets the system
tftp -- Tftp to a bootp/dhcp enabled unix boot server
vol -- Displays volume information of the file system
Shell Configuration Commands
==================================================
cpuconfig -- Deconfigure or reconfigure cpus
date -- Displays the current date or sets the systemdate
err -- Displays or changes the error level
esiproc -- Make an ESI call
errdump -- View/Clear logs
info -- Display hardware information
monarch -- View or set the monarch processor
palproc -- Make a PAL call
salproc -- Make a SAL call
time -- Displays the current time or sets the system time
ver -- Displays the version information
Shell Device Commands
=================================================
baud -- Set serial port com settings
connect -- Binds an EFI driver to a device and starts the driver
devices -- Displays the devices being managed by EFI drivers
devtree -- Displays the tree of devices of the EFI Driver Model
disconnect -- Disconnects one or more drivers from a device
dh -- Displays the handles in the EFI environment
drivers -- Displays the list of drivers of the EFI Driver Model
drvcfg -- Invokes the Driver Configuration Protocol
drvdiag -- Invokes the Driver Diagnostics Protocol
guid -- Displays all the GUIDs in the EFI environment
lanaddress -- Display LAN MAC addresses
load -- Loads and optionally connected EFI drivers
loadpcirom -- Loads a PCI Option ROM
map -- Displays or defines mappings
openinfo -- Displays the protocols on a handle and the agents
optload -- Lists all optional ROM-based efi drivers and apps
pci -- Displays PCI devices or PCI function config space
reconnect -- Reconnects one or more drivers from a device
unload -- Unloads a protocol image
Shell Memory Commands
=================================================
default -- Sets, Resets, or Clears default NVM values
dmpstore -- Displays all NVRAM variables
dmem -- Displays the contents of memory
memmap -- Displays the memory map
mm -- Displays or modifies MEM/IO/PCI
pdt -- View or set page deallocation table
Generic Shell Commands
===================================================
alias -- Displays, creates, or deletes aliases in the EFI shell
attrib -- Displays or changes the attributes of files or directories
cd -- Displays or changes the current directory
cls -- Clears the standard output with an optional background color
comp -- Compares the contents of two files
cp -- Copies one or more files/directories to another location
edit -- Edits an ASCII or UNICODE file in full screen
eficompress -- Compress a file
efidecompress -- Compress a file
exit -- Exits the EFI Shell
help -- Displays help menus, command list, or verbose help of a command
hexedit -- Edits with hex mode in full screen
ls -- Displays a list of files and subdirectories in a directory
mkdir -- Creates one or more directories
mode -- Displays or changes the mode of the console output device
mv -- Moves one or more files/directories to destination
rm -- Deletes one or more files or directories
set -- Displays, creates, changes or deletes
EFI environment variables
==================================================
setsize -- Sets the size of the file
touch -- Updates time with current time
type -- Displays the contents of a file
xchar -- Turn on/off extended character features
Shell Script Commands
====================================================
echo -- Displays messages or turns command echoing on or off for/endfor -- Executes commands for each item in a set of items
goto -- Makes batch file execution jump to another location if/endif -- Executes commands in specified conditions
pause -- Prints a message and suspends for keyboard input
stall -- Stalls the processor for some microseconds
参考