> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 附录三：安装 GRUB 启动加载器

**附录III：** 安装GRUB引导加载程序 本文描述了安装和配置GRUB引导加载程序到基于软件的RAID1阵列的必要步骤。

---

### **执行摘要**

**所需时间：** *5分钟*

**描述：** *配置并安装GRUB引导加载程序到基于软件的RAID阵列。本指南假设您已选择最简单的RAID1设置。*

### **安装GRUB引导加载程序**

|| 注意：
|| Debian操作系统安装程序默认仅将GRUB引导加载程序安装到基于软件的RAID阵列中的主硬盘。最好是将引导加载程序安装到RAID1阵列中的所有磁盘，以防发生以下情况：(1) 驱动器故障发生，您需要从辅助驱动器启动，或 (2) 由于在机箱中物理交换硬盘连接，另一个驱动器成为主驱动器。

1. 通过直接键盘/鼠标/显示器连接到服务器、SSH或通过Debian控制面板访问服务器控制台。

   ![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195008.png?version=1&modificationDate=1747079412289&cacheVersion=1&api=v2)
2. 使用root用户或系统上的其他管理用户登录。这是在"[**设置用户和密码**](https://app.hubspot.com/knowledge/8226353/edit/57366064194#SetupUsersandPasswords)"部分的"[**在您的服务器上安装Debian操作系统**](https://help.ggcircuit.com/knowledge/install-the-debian-10-os-on-your-server)"指南中设置的密码。

   ![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195035.png?version=1&modificationDate=1747079439578&cacheVersion=1&api=v2)
3. 启动GRUB引导加载程序的安装过程。根据您的服务器BIOS配置，您需要执行以下命令之一：

### 如果您的服务器BIOS配置为传统启动模式

在终端中输入以下命令：

```
dpkg-reconfigure grub-pc
```

按"**Enter**"键

### 如果您的服务器BIOS配置为UEFI启动模式

在终端中输入以下命令：

```
dpkg-reconfigure grub-efi-amd64
```

按"**Enter**"键

4. 从"**Configuring grub-pc**"（或如果是UEFI则为"**configuring grub-efi-amd64**"）屏幕中，将"**linux command line:**"文本字段保留为**空白**，然后按"**Enter**"键。

   ![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195215.png?version=1&modificationDate=1747079539769&cacheVersion=1&api=v2)
5. 从"**Configuring grub-pc**"（或如果是UEFI则为"**configuring grub-efi-amd64**"）屏幕中，在"**linux default command line:**"文本字段中输入"**quiet**"，然后按"**Enter**"键。

   ![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195307.png?version=1&modificationDate=1747079590702&cacheVersion=1&api=v2)
6. 从"**Configuring grub-pc**"（或如果是UEFI则为"**configuring grub-efi-amd64**"）屏幕中，[***选择您在将操作系统安装到RAID阵列时添加到RAID1阵列中的每个物理驱动器***](https://help.ggcircuit.com/knowledge/appendix-ii-debian-os-installation-to-a-software-raid-array)，然后按"**Enter**"键。

   ![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195323.png?version=1&modificationDate=1747079607031&cacheVersion=1&api=v2)
7. 使用以下命令重启ggRock服务器：

```
   shutdown -r now
```

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15862651/image-20250512-195351.png?version=1&modificationDate=1747079634398&cacheVersion=1&api=v2)

### 您现在可以继续按照"[**在您的服务器上安装Debian操作系统**](https://help.ggcircuit.com/knowledge/install-the-debian-10-os-on-your-server#Step17)"指南的第17步继续安装Debian操作系统。