5 个免费的 Linux 分区管理器
分区

> 
> 以下是我们推荐的 Linux 分区工具。它们能让你删除、添加、调整或缩放 Linux 系统上的磁盘分区。
> 
> 
> 


通常，你在安装操作系统时决定磁盘分区。但是，如果你需要在安装后的某个时间修改分区，该怎么办？你无法回到系统安装阶段。因此，这就需要分区管理器（或准确地说是磁盘分区管理器）上场了。


在大多数情况下，你无需单独安装分区管理器，因为它已预先安装。此外，值得注意的是，你可以选择基于命令行或有 GUI 的分区管理器。


**注意！**



> 
> 磁盘分区是一项有风险的任务。除非绝对必要，否则不要这样做。
> 
> 
> 如果你使用的是基于命令行的分区工具，那么需要学习完成任务的命令。否则，你可能最终会擦除整个磁盘。
> 
> 
> 


### Linux 中的 5 个管理磁盘分区的工具


![](/data/attachment/album/201908/07/072136nuh0sjuwsvhtustm.jpg)


下面的列表没有特定的排名顺序。大多数分区工具应该存在于 Linux 发行版的仓库中。


#### GParted


![GParted](/data/attachment/album/201908/07/072137qjrg0rwigr4vwrmk.png)


这可能是 Linux 发行版中最流行的基于 GUI 的分区管理器。你可能已在某些发行版中预装它。如果还没有，只需在软件中心搜索它即可完成安装。


它会在启动时直接提示你以 root 用户进行身份验证。所以，你根本不需要在这里使用终端。身份验证后，它会分析设备，然后让你调整磁盘分区。如果发生数据丢失或意外删除文件，你还可以找到“尝试数据救援”的选项。


* [GParted](https://gparted.org/)


#### GNOME Disks


![Gnome Disks](/data/attachment/album/201908/07/072138ikfzztd1u33emt2t.png)


一个基于 GUI 的分区管理器，随 Ubuntu 或任何基于 Ubuntu 的发行版（如 Zorin OS）一起出现。


它能让你删除、添加、缩放和微调分区。如果你遇到故障，它甚至可以[在 Ubuntu 中格式化 USB](https://itsfoss.com/format-usb-drive-sd-card-ubuntu/) 来帮助你救援机器。


你甚至可以借助此工具尝试修复分区。它的选项还包括编辑文件系统、创建分区镜像、还原镜像以及对分区进行基准测试。


* [GNOME Disks](https://wiki.gnome.org/Apps/Disks)


#### KDE Partition Manager


![Kde Partition Manager](/data/attachment/album/201908/07/072139f17xi2724w7wmm44.jpg)


KDE Partition Manager 应该已经预装在基于 KDE 的 Linux 发行版上了。但是，如果没有，你可以在软件中心搜索并轻松安装它。


如果你不是预装的，那么可能会在尝试启动时通知你没有管理权限。没有管理员权限，你无法做任何事情。因此，在这种情况下，请输入以下命令：



```
sudo partitionmanager
```

它将扫描你的设备，然后你就可以创建、移动、复制、删除和缩放分区。你还可以导入/导出分区表及使用其他许多调整选项。


* [KDE Partition Manager](https://kde.org/applications/system/org.kde.partitionmanager)


#### Fdisk（命令行）


![Fdisk](/data/attachment/album/201908/07/072140hnwjkbbnwmp69szr.jpg)


[fdisk](https://en.wikipedia.org/wiki/Fdisk) 是一个命令行程序，它在每个类 Unix 的系统中都有。不要担心，即使它需要你启动终端并输入命令，但这并不是很困难。但是，如果你在使用基于文本的程序时感到困惑，那么你应该继续使用上面提到的 GUI 程序。它们都做同样的事情。


要启动 `fdisk`，你必须是 root 用户并指定管理分区的设备。以下是该命令的示例：



```
sudo fdisk /dev/sdc
```

你可以参考 [Linux 文档项目的维基页面](https://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html)以获取命令列表以及有关其工作原理的更多详细信息。


#### GNU Parted（命令行）


![Gnu Parted](/data/attachment/album/201908/07/072144he26tzptktkp4dll.png)


这是在你 Linux 发行版上预安装的另一个命令行程序。你需要输入下面的命令启动：



```
sudo parted
```

### 总结


我不会忘了说 [QtParted](http://qtparted.sourceforge.net/) 是分区管理器的替代品之一。但它已经几年没有维护，因此我不建议使用它。


你如何看待这里提到的分区管理器？我有错过你最喜欢的吗？让我知道，我将根据你的建议更新这个 Linux 分区管理器列表。




---


via: <https://itsfoss.com/partition-managers-linux/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


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


OK
*Here’s our recommended list of partitioning tools for Linux distributions. These tools let you delete, add, tweak or resize the disk partitioning on your Linux system.*

Usually, you decide the disk partitions while installing the OS. But, what if you need to modify the partitions sometime after the installation. You just can’t go back to the setup screen in any way. So, that is where partition managers (or accurately disk partition managers) come in handy.

In most of the cases, you do not need to separately install the partition manager because it comes pre-installed. Also, it is worth noting that you can either opt for a command-line based partition manager or something with a GUI.

Attention!

Playing with disk partitioning is a risky task. Don’t do it unless it’s absolutely necessary.

If you are using a command line based partitioning tool, you need to learn the commands to get the job done. Or else, you might just end up wiping the entire disk.

## 5 Tools To Manage Disk Partitions in Linux

![Disk Partitioning Tools Linux](https://itsfoss.com/content/images/wordpress/2019/07/disk-partitioning-tools-linux-800x450.jpg)

The list below is in no particular order of ranking. Most of these partitioning tools should be available in your Linux distribution’s repository.

### GParted

![G Parted](https://itsfoss.com/content/images/wordpress/2019/07/g-parted.png)

[GParted](https://itsfoss.com/gparted/) could perhaps be the most popular GUI-based partition manager available for Linux distributions. You might have it pre-installed in some distributions. If you don’t, simply search for it in the software center to get it installed.

It directly prompts you to authenticate as the root user when you launch it. So, you don’t have to utilize the terminal here – at all. After authentication, it analyzes the devices and then lets you tweak the disk partitions. You will also find an option to “Attempt Data Rescue” in case of data loss or accidental deletion of files.

### GNOME Disks

![Gnome Disks](https://itsfoss.com/content/images/wordpress/2019/07/gnome-disks.png)

A GUI-based partition manager that comes baked in with Ubuntu or any Ubuntu-based distros like Zorin OS.

It lets you delete, add, resize and tweak the partition. It even helps you in [formatting the USB in Ubuntu](https://itsfoss.com/format-usb-drive-sd-card-ubuntu/) if there is any problem.

You can even attempt to repair a partition with the help of this tool. The options also include editing filesystem, creating a partition image, restoring the image, and benchmarking the partition.

### KDE Partition Manager

![Kde Partition Manager](https://itsfoss.com/content/images/wordpress/2019/07/kde-partition-manager-800x404.jpg)

KDE Partition Manager should probably come pre-installed on KDE-based Linux distros. But, if it isn’t there – you can search for it on the software center to easily get it installed.

If you didn’t have it pre-installed, you might get the notice that you do not have administrative privileges when you try launching it. Without admin privileges, you cannot do anything. So, in that case, type in the following command to get started:

`sudo partitionmanager`


It will scan your devices and then you will be able to create, move, copy, delete, and resize partitions. You can also import/export partition tables along with a lot of other options available to tweak.

### Fdisk [Command Line]

![Fdisk](https://itsfoss.com/content/images/wordpress/2019/07/fdisk.jpg?fit=800%2C496&ssl=1)

[Fdisk](https://en.wikipedia.org/wiki/Fdisk) is a command line utility that comes baked in with every unix-like OS. Fret not, even though it requires you to launch a terminal and enter commands – it isn’t very difficult. However, if you are too confused while using a text-based utility, you should stick to the GUI applications mentioned above. They all do the same thing.

To launch fdisk, you will have to be the root user and specify the device to manage partitions. Here’s an example for the command to start with:

sudo fdisk /dev/sdc

You can refer to [The Linux Documentation Project’s wiki page](https://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html) for the list of commands and more details on how it works.

### GNU Parted [Command Line]

![Gnu Parted](https://itsfoss.com/content/images/wordpress/2019/07/gnu-parted.png?fit=800%2C559&ssl=1)

Yet another command-line utility that you can find pre-installed on your Linux distro. You just need to enter the following command to get started:

`sudo parted`


**Wrapping Up**

I wouldn’t forget to mention [QtParted](http://qtparted.sourceforge.net/) as one of the alternatives to the list of partition managers. However, it has not been maintained for years now – so I do not recommend using it.

What do you think about the partition managers mentioned here? Did I miss any of your favorites? Let me know and I’ll update this list of partition manager for Linux with your suggestion.