如何在 Windows 和 Linux 上确定系统使用的是 MBR 还是 GPT 分区
分区 GPT MBR
![](/data/attachment/album/202108/28/165508gqjyigp3yz3gy6yy.jpg)


在你安装 Linux 或任何其他系统的时候，了解你的磁盘的正确分区方案是非常关键的。


目前有两种流行的分区方案，老一点的 MBR 和新一些的 GPT。现在大多数的电脑使用 GPT。


在制作临场镜像或可启动 USB 设备时，一些工具（比如 [Rufus](https://rufus.ie/en_US/)）会问你在用的磁盘分区情况。如果你在 MBR 分区的磁盘上选择 GPT 方案的话，制作出来的可启动 USB 设备可能会不起作用。


在这个教程里，我会展示若干方法，来在 Windows 和 Linux 系统上检查磁盘分区方案。


### 在 Windows 上检查系统使用的是 MBR 还是 GPT


尽管在 Windows 上包括命令行在内有不少方法可以检查磁盘分区方案，这里我还是使用图形界面的方式查看。


按下 Windows 按键然后搜索“disk”，然后点击“**创建并格式化硬盘分区**”。


![](/data/attachment/album/202108/28/165518h4ijiwe7hih2gwk2.png)


在这里，**右键点击**你想要检查分区方案的磁盘。在右键菜单里**选择属性**。


![右键点击磁盘并选择属性](/data/attachment/album/202108/28/165518b6z4ica3ic8y3ozj.png)


在属性窗口，切换到**卷**标签页，寻找**磁盘分区形式**属性。


![在卷标签页寻找磁盘分区形式属性](/data/attachment/album/202108/28/165519zlaamo5afjo8lf8f.png)


正如你在上面截图所看到的，磁盘正在使用 GPT 分区方案。对于一些其他系统，它可能显示的是 MBR 或 MSDOS 分区方案。


现在你知道如何在 Windows 下检查磁盘分区方案了。在下一部分，你会学到如何在 Linux 下进行检查。


### 在 Linux 上检查系统使用的是 MBR 还是 GPT


在 Linux 上也有不少方法可以检查磁盘分区方案使用的是 MBR 还是 GPT。既有命令行方法也有图形界面工具。


让我先给你演示一下命令行方法，然后再看看一些图形界面的方法。


#### 在 Linux 使用命令行检查磁盘分区方案


命令行的方法应该在所有 Linux 发行版上都有效。


打开终端并使用 `sudo` 运行下列命令：



```
sudo parted -l

```

上述命令实际上是一个基于命令行的 [Linux 分区管理器](https://itsfoss.com/partition-managers-linux/)。命令参数 `-l` 会列出系统中的所有磁盘以及它们的详情，里面包含了分区方案信息。


在命令输出中，寻找以 **Partition Table**（分区表）开头的行：


![](/data/attachment/album/202108/28/165519orwrjy28y7ag88qa.png)


在上面的截图中，磁盘使用的是 GPT 分区方案。如果是 **MBR**，它会显示为 **msdos**。


你已经学会了命令行的方式。但如果你不习惯使用终端，你还可以使用图形界面工具。


#### 使用 GNOME Disks 工具检查磁盘信息


Ubuntu 和一些其它基于 GNOME 的发行版内置了叫做 Disks 的图形工具，你可以用它管理系统中的磁盘。


你也可以使用它来获取磁盘的分区类型。


![](/data/attachment/album/202108/28/165519en3dc4pp90opjs4m.png)


#### 使用 Gparted 图形工具检查磁盘信息


如果你没办法使用 GNOME Disks 工具，别担心，还有其它工具可以使用。


其中一款流行的工具是 Gparted。你应该可以在大多数 Linux 发行版的软件源中找到它。如果系统中没有安装的话，使用你的发行版的软件中心或 [包管理器](https://itsfoss.com/package-manager/) 来 [安装 Gparted](https://itsfoss.com/gparted/)。


在 Gparted 中，通过菜单选择 **View->Device Information**（查看—>设备信息）。它会在左下区域显示磁盘信息，这些信息中包含分区方案信息。


![](/data/attachment/album/202108/28/165520y1o4x6rfx858cw18.jpg)


看吧，也不是太复杂，对吗？现在你了解了好几种途径来确认你的系统使用的是 GPT 还是 MBR 分区方案。


同时我还要提一下，有时候磁盘还会有 [混合分区方案](https://www.rodsbooks.com/gdisk/hybrid.html)。这不是很常见，大多数时候分区不是 MBR 就是 GPT。


有任何问题或建议，请在下方留下评论。




---


via: <https://itsfoss.com/check-mbr-or-gpt/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[alim0x](https://github.com/alim0x) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Knowing the correct partitioning scheme of your disk could be crucial when you are installing Linux or any other operating system.

There are two popular partitioning schemes; the older MBR and the newer GPT. Most computers use GPT these days.

While creating the live or bootable USB, some tools (like [Rufus](https://rufus.ie/en_US/?ref=itsfoss.com)) ask you the type of disk partitioning in use. If you choose GPT with an MBR disk, the bootable USB might not work.

In this tutorial, I’ll show various methods to check the disk partitioning scheme on Windows and Linux systems.

## Check whether your system uses MBR or GPT on Windows systems

While there are several ways to check the disk partitioning scheme in Windows including command line ones, I’ll stick with the GUI methods.

Press the Windows button and search for ‘disk’ and then click on “**Create and format disk partitions**“.

![disc management windows](https://itsfoss.com/content/images/wordpress/2021/03/disc-management-windows-800x561.png)

In here, **right-click on the disk** for which you want to check the partitioning scheme. In the right-click context menu, **select Properties**.

![Check disk partitioning scheme in Windows](https://itsfoss.com/content/images/wordpress/2021/07/gpt-check-windows-1-800x603.png)

In the Properties, go to **Volumes** tab and look for **Partition style**.

![Check if disk uses MBR or GPT in Windows](https://itsfoss.com/content/images/wordpress/2021/07/gpt-check-windows-2-1-800x600.png)

As you can see in the screenshot above, the disk is using GPT partitioning scheme. For some other systems, it could show MBR or MSDOS partitioning scheme.

Now you know how to check disk partitioning scheme in Windows. In the next section, you’ll learn to do the same in Linux.

## Check whether your system uses MBR or GPT on Linux

There are several ways to check whether a disk uses MBR or GPT partitioning scheme in Linux as well. This includes commands and GUI tools.

Let me first show the command line method and then I’ll show a couple of GUI methods.

### Check disk partitioning scheme in Linux command line

The command line method should work on all Linux distributions.

Open a terminal and use the following command with sudo:

`sudo parted -l`


The above command is actually a CLI-based [partitioning manager in Linux](https://itsfoss.com/partition-managers-linux/). With the option -l, it lists the disks on your system along with the details about those disks. It includes partitioning scheme information.

In the output, look for the line starting with **Partition Table**:

![check if mbr or gpt in linux](https://itsfoss.com/content/images/wordpress/2021/07/check-if-mbr-or-gpt-in-Linux-800x446.png)

In the above screenshot, the disk has GPT partitioning scheme. For **MBR**, it would show **msdos**.

You learned the command line way. But if you are not comfortable with the terminal, you can use graphical tools as well.

### Checking disk information with GNOME Disks tool

Ubuntu and many other GNOME-based distributions have a built-in graphical tool called Disks that lets you handle the disks in your system.

You can use the same tool for getting the partition type of the disk as well.

![Check if MBR or GPT in Linux GUI](https://itsfoss.com/content/images/wordpress/2021/07/check-if-mbr-or-gpt-in-Linux-gui-800x548.png)

### Checking disk information with Gparted graphical tool

If you don’t have the option to use GNOME Disks tool, no worries. There are other tools available.

One such popular tool is Gparted. You should find it in the repositories of most Linux distributions. If not installed already, [install Gparted](https://itsfoss.com/gparted/) using your distribution’s software center or [package manager](https://itsfoss.com/package-manager/).

In Gparted, select the disk and from the menu select **View->Device** Information. It will start showing the disk information in the bottom-left area and this information includes the partitioning scheme.

![check disk partitioning scheme linux gparted](https://itsfoss.com/content/images/wordpress/2021/07/check-disk-partitioning-scheme-linux-gparted-800x555.jpg)

See, not too complicated, was it? Now you know multiple ways of figuring our whether the disks in your system use GPT or MBR partitioning scheme.

On the same note, I would also like to mention that sometimes disks also have a [hybrid partitioning scheme](http://www.rodsbooks.com/gdisk/hybrid.html?ref=itsfoss.com). This is not common and most of the time it is either MBR or GPT.

Questions? Suggestions? Please leave a comment below.