「GRUB」- 安装 @20210210

在多数通常下,我们不需要安装 GRUB 程序(因为 Linux 发行版会自带),反而升级场景较多。

但是仍有小部分场景需要我们安装,因此本笔记将记录如何安装 GRUB 引导加载程序。

Kali GNU/Linux Rolling

# 仅安装 GRUB 程序
apt-get install grub-common grub-pc grub-pc-bin grub2 grub2-common

# 安装文档包,包含了grub的相关文档
apt-get install grub-doc grub-legacy-doc

方法二、源码编译安装

参考LFS/GRUB-2.02~beta3

安装的程序列表

grub-bios-setup
Is a helper program for grub-install

grub-editenv
A tool to edit the environment block

grub-file
Checks if FILE is of the specified type.

grub-fstest
Tool to debug the filesystem driver

grub-glue-efi
Processes ia32 and amd64 EFI images and glues them according to Apple format.

grub-install
Install GRUB on your drive

grub-kbdcomp
Script that converts an xkb layout into one recognized by GRUB

grub-macbless
Mac-style bless on HFS or HFS+ files

grub-menulst2cfg
Converts a GRUB Legacy menu.lst into a grub.cfg for use with GRUB 2

grub-mkconfig
Generate a grub config file

grub-mkimage
Make a bootable image of GRUB

grub-mklayout
Generates a GRUB keyboard layout file

grub-mknetdir
Prepares a GRUB netboot directory

grub-mkpasswd-pbkdf2
Generates an encrypted PBKDF2 password for use in the boot menu

grub-mkrelpath
Makes a system pathname relative to its root

grub-mkrescue
Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD

grub-mkstandalone
Generates a standalone image

grub-ofpathname
Is a helper program that prints the path of a GRUB device

grub-probe
Probe device information for a given path or device

grub-reboot
Sets the default boot entry for GRUB for the next boot only

grub-render-label
Render Apple .disk_label for Apple Macs

grub-script-check
Checks GRUB configuration script for syntax errors

grub-set-default
Sets the default boot entry for GRUB

grub-sparc64-setup
Is a helper program for grub-setup

grub-syslinux2cfg
Transform a syslinux config file into grub.cfg format

相关文章

「Grub」- 手动引导启动
「GRUB」- 在BIOS系统上的GRUB引导

参考文献

LFS / GRUB-2.02~beta3


posted @ 2021-02-10 16:20  研究林纳斯写的  阅读(205)  评论(0编辑  收藏  举报