> For the complete documentation index, see [llms.txt](https://docs.parallels.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.cn/pdfm-19-ug-zh_cn/parallels-desktop-for-mac-19-users-guide/parallels-desktop-pian-hao-she-zhi-he-xu-ni-ji-she-zhi/tian-jia-yu-yi-chu-she-bei/chu-shi-hua-xin-tian-jia-de-ci-pan.md).

# 初始化新添加的磁盘

在您将新的空白虚拟硬盘添加到虚拟机配置中后，除非您初始化此硬盘，否则它将对虚拟机中安装的操作系统不可见。

### **在 Windows 11 中初始化新虚拟硬盘**

要在 Windows 11 中初始化新硬盘，您需要执行以下操作：

1. 单击 Windows 徽标以打开“开始”菜单，然后选择**设置**。
2. 在左侧选择**系统**，然后滚动到**存储**菜单项。
3. 在**存储管理**下，展开**高级存储**设置子菜单，然后选择**磁盘和卷**。<br>

   <figure><img src="/files/0iGUvrTMTon10wOltMFW" alt="" width="563"><figcaption></figcaption></figure>
4. 从列表中找到新的虚拟硬盘并单击**初始化**。

在旧版本的 Windows 中，您可以在控制面板中找到 "磁盘管理 "实用程序，启动 "初始化和转换磁盘 "向导来初始化新硬盘，然后在该磁盘上创建新卷。

### 初始化 Linux 中的新虚拟硬盘

在 Linux 访客操作系统中初始化新的虚拟硬盘分为两步：(1) 分配虚拟硬盘空间；(2) 将此磁盘挂载到访客操作系统中。

要分配空间，您需要使用 `fdisk` 实用工具在此虚拟硬盘上新建一个分区：

{% hint style="info" %}
**注意：**&#x8981;使用 `fdisk` 工具您需要有 `root` 权限。
{% endhint %}

1. 启动终端窗口。

2. 要列出虚拟机配置中的 IDE 磁盘设备，请输入：<br>

   ```
   fdisk /dev/hd*
   ```

   \
   [**注意：**&#x5982;果您添加 SCSI 磁盘到虚拟机配置，请使用 `fdisk /dev/sd*` 命令。](#user-content-fn-1)[^1]

3. 默认情况下，第二个虚拟硬盘显示为 Linux 虚拟机中的 `/dev/hdc`。要使用此设备，请输入：<br>

   ```
   fdisk /dev/hdc
   ```

   \
   [**注意：**&#x5982;果这是 SCSI 磁盘，请使用 `fdisk /dev/sdc` 命令。](#user-content-fn-1)[^1]

4. 要获取磁盘详细信息，请输入：<br>

   ```
   p
   ```

5. 要新建分区，请输入：<br>

   ```
   n
   ```

6. 要创建主分区，请输入：<br>

   ```
   p
   ```

7. 指定分区号。默认是 `1`。

8. 指定第一个磁柱。如果您想在此硬盘上创建一个分区，请使用默认值。

9. 指定最后一个磁柱。如果您想在此硬盘上创建一个分区，请使用默认值。

10. 要创建具有指定设置的分区，请输入：<br>

    ```
    w
    ```

当您在新添加的虚拟硬盘上分配空间时，您应在终端中输入以下命令，对其进行格式化：

```
mkfs -t <FileSystem> /dev/hdc1
```

{% hint style="info" %}
**注意：**`<FileSystem>` 是指您想在此磁盘上使用的文件系统。建议您使用 `ext3` 或 `ext2`。
{% endhint %}

对添加的虚拟硬盘进行格式化后，您可以将它挂载到访客操作系统中。

1. 要为新的虚拟硬盘创建挂载点，请输入：<br>

   ```
   mkdir /mnt/hdc1
   ```

   \
   [**注意：**&#x60A8;可以另外指定一个挂载点。](#user-content-fn-1)[^1]
2. 要将新的虚拟硬盘挂载到指定挂载点，请输入：<br>

   ```
   mount /dev/hdc1 /mnt/hdc1
   ```

挂载虚拟硬盘后，您便可以在虚拟机中使用它的空间。

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.parallels.cn/pdfm-19-ug-zh_cn/parallels-desktop-for-mac-19-users-guide/parallels-desktop-pian-hao-she-zhi-he-xu-ni-ji-she-zhi/tian-jia-yu-yi-chu-she-bei/chu-shi-hua-xin-tian-jia-de-ci-pan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
