每次安装Linux时,您都可以选择对硬盘进行分区。这是必要的,因为在大多数情况下,Linux需要自己的分区才能运行。
对硬盘进行分区基本上是将硬盘分成单独的、谨慎的部分,每个部分都被计算机视为一个单独的硬盘。分区允许 Windows 说“这是我的磁盘”,Linux说“这是我的磁盘”,由于每个操作系统都需要自己的文件系统,问题就解决了。
但是,有时您可能需要在不安装时对硬盘进行分区。也许您购买了一个外部硬盘驱动器并准备安装它,或者您只需将一些未使用的空间转换为可用空间。对于KDE用户,一个名为KDE Parition Manager的程序是一个不错的选择。
关于硬盘(Hard)分区的一些注意事项
在谈论KDE 分区管理器(KDE Partition Manager)之前,有几件关于分区的事情要记住。 首先(First)是你不能修改一个活动分区,所以如果你需要修改一个分区,一定要先卸载它。如果要修改引导分区上的某些内容,则需要使用闪存驱动器或 Live CD 引导计算机。
其次,分区可能会损坏您的文件,有时是意外,但有时是由于用户错误。例如,将分区从Ext3转换为NTFS将有效地擦除您的硬盘。所有这些文件? 噗(Poof)。 走了(Gone)。因此,请务必在开始之前备份您的驱动器。
安装 KDE 分区管理器
尽管它的名字,KDE 分区管理器(KDE Partition Manager)可以在任何种类的Linux上使用,所以无论你使用GNOME、KDE、xfce还是任何其他桌面环境,只要KDE库区域可用,KDE 分区管理器(KDE Partition Manager)都可以工作。在Ubuntu中,KDE 分区管理器(KDE Partition Manager)是通过“partitionmanager”命令启动的,因此安装它同样简单。 首先(First),打开一个终端:
然后键入以下命令:
sudo apt-get install partitionmanager
如果您正在运行一个以KDE为中心的发行版,那么除了实际的(KDE)KDE Partition Manager之外,您可能不需要安装太多东西,但是如果您使用的是Ubuntu(使用GNOME)或Xubuntu(使用 xfce),那么您'可能需要获取一些KDE库——它们将自动安装——以便KDE 分区管理器(KDE Partition Manager)正常工作)。这是在Ubuntu中安装时引入的内容:
安装后,KDE 分区管理器(KDE Partition Manager)将位于系统工具(System Tools)菜单下(在GNOME中)。在KDE中,它将位于系统(System)菜单中。在任一环境中,都可以通过在终端(Terminal)窗口中键入“partitionmanager”来启动它。
使用 KDE 分区管理器
KDE分区管理器(Partition Manager)能做什么?它可用于删除分区、移动分区、调整分区大小和转换分区。
再次,确保在进行任何工作之前卸载任何活动分区。
删除分区是您所期望的。在开始之前,您有一个分区,上面有数据,完成后,分区(和数据)就消失了,只剩下未使用的空间。
出于几个不同的原因,可以移动或调整分区大小。也许您刚刚删除了一个分区,并想用您现有的分区之一填充现在的空白空间。
或者,也许您有一个大的、大部分为空的分区,您想缩小它以为另一个分区腾出空间。在这种情况下,您将调整分区的大小。 当您要编辑的分区突出显示时,只需(Simply)从菜单中选择Resize/Move
现在只需选择是否要在分区之前或之后有可用空间,以及分区的新大小。
KDE 分区管理(KDE Partition Manager)器会在任何操作之前扫描您的驱动器,因此如果您的驱动器上的数据多于您调整大小的驱动器的容量,则该操作将不会成功并且不会被允许继续。
将分区从一个文件系统转换到另一个文件系统基本上是合二为一的。计算机中使用了许多不同类型的文件系统。 Windows使用NTFS,Mac(Macs)使用HFS+,大多数Linux发行版使用扩展文件系统之一:Ext2、Ext3或Ext4(还有许多其他可用的,例如XFS和ReiserFS)。
当您从一个转换到另一个时,您将丢失分区上的所有数据,因此转换文件系统通常意味着您希望保留一个分区,但希望以不同的方式使用它。要访问此工具,请突出显示要更改的分区,然后单击工具栏中的“属性(Properties)”按钮。
您也可以右键单击要修改的分区,然后从出现的菜单中选择“属性”选项。(Properties)
这将打开一个大的属性(Properties)窗口,它提供了更改分区标签、文件系统、查看分区信息(例如挂载点、UUID、大小和扇区)以及更改标志的能力。
进行更改并单击 OK 按钮,这将弹出一个警告对话框,如下所示:
KDE 分区编辑器(KDE Partition Editor)允许您执行所有这些以及更多操作。您可以使用它在本地硬盘驱动器或便携式驱动器上工作。它可以进行更改以及检查驱动器是否存在错误。
每个步骤都会要求您验证是否要执行操作,并且KDE 分区管理器(KDE Partition Manager)为每个进程提供分步操作列表,因此如果出现问题,您可以查看错误发生的位置.
同样,分区管理器不适合胆小的人。许多人永远不会使用一种,或者即使有需要也不会感到舒服。但这没关系……分区不是每天都会做的事情。
但是KDE 分区管理器(KDE Partition Manager)就在那里,它是一个很好的软件。如果您使用KDE作为您的桌面环境并且需要一些东西来帮助管理和修改系统的分区,那么KDE 分区(KDE Partition Manger)管理器是一个不错的选择。
Editing Partitions with KDE Partition Manager
Everу time you install Linux, you’re given the oрtion to pаrtition your hard drive. This is necessary because – in most cases – Linux needs its own partition tо operate.
Partitioning a hard drive is basically slicing the hard drive into separate, discreet sections, each of which is viewed by the computer as an individual hard drive. Partitioning allows Windows to say “this is my disk,” and Linux to say “this is my disk” and since each operating system needs its own file system, problem solved.
Sometimes, however, you may need to partition your hard drive during times when you’re not installing. Maybe you purchased an external hard drive and you’re getting it ready for installation, or maybe you just need to convert some unused space to something usable. For KDE users, a program called KDE Parition Manager, is a fantastic option.
A Few Notes About Partitioning Hard Drives
Before talking about KDE Partition Manager, there are a couple things to keep in mind regarding partitioning. First is that you can’t modify an active partition, so if you need to modify a partition, be sure and unmount it first. If you want to modify something on your boot partition, you’ll need to boot your computer using a flash drive or Live CD.
Second, partitioning can cause damage to your files, sometimes accidentally, but other times because of user error. Converting a partition from Ext3 to NTFS, for instance, will effectively erase your hard drive. All those files? Poof. Gone. So be sure to have a backup of your drive before you begin.
Installing KDE Partition Manager
In spite of its name, KDE Partition Manager can be used on any variety of Linux, so whether you use GNOME, KDE, xfce or any other desktop environment, as long as the KDE libraries area available, KDE Partition Manager will work. In Ubuntu, KDE Partition Manager is launched by the “partitionmanager” command, so intalling it is just as easy. First, open up a Terminal:
Then type the following command:
sudo apt-get install partitionmanager
If you’re running a KDE-centric distro, you probably won’t need to install much other than the actual KDE Partition Manager, but if you’re using Ubuntu (which uses GNOME) or Xubuntu (which uses xfce), you’ll likely need to grab a few KDE libraries – which will be installed automatically – in order for KDE Partition Manager to work properly). This is what gets pulled in when installing in Ubuntu:
Once installed, the KDE Partition Manager will be found under the System Tools menu (in GNOME). In KDE, it will be in the System menu. In either environment, it can be launched by typing “partitionmanager” in a Terminal window.
Using KDE Partition Manager
What can KDE Partition Manager do? It can be used to delete partitions, move partitions, resize partitions, and convert partitions.
Once again, be sure to unmount any active partition before doing any work.
Deleting partitions is what you’d expect it to be. Before you start, you have a partition with data on it and when you’re finished, the partition (and data) is gone, leaving only unused space.
Moving or resizing partitions can be done for a couple different reasons. Maybe you just deleted a partition and want to fill the now empty space with one of your existing partitions.
Or maybe you have a large, mostly-empty partition that you want to shrink to make room for another. In this case, you would resize the partition. Simply choose the Resize/Move option from the menu when the partition you want to edit is highlighted.
Now simply choose whether you want to have free space before or after your partition, and the new size the partition should be.
KDE Partition Manager scans your drives before any operations, so if you have more data on your drive than would fit on your resized drive, the operation won’t succeed and wouldn’t be allowed to proceed.
Converting partitions from one file system to another is basically two steps in one. There are many different types of file systems used in computers. Windows uses NTFS, Macs use HFS+, and most Linux distributions use one of the extended file systems: Ext2, Ext3 or Ext4 (and there are many others available, such as XFS and ReiserFS).
When you convert from one to the other, you’ll lose all the data on the partition, so converting file systems generally means you want to keep a partition in place, but want to use it differently. To access this tool, highlight the partition you want to change, then click the Properties button in the toolbar.
You can also right-click the partition you want to modify, and choose the Properties option from the menu that appears.
This will bring up a large Properties window, which offers the ability to change your partition’s label, file system, view partition information (such as mount point, UUID, size and sectors), and to change flags.
Make your changes and click the OK button, which will bring up a warning dialog like this:
The KDE Partition Editor allows you to do all this and more. You can use it to work on your local hard drives or portable drives. It can make changes as well as check your drives for errors.
You’ll be asked with every step to verify that you want to do an action, and the KDE Partition Manager provides a step-by-step list of actions for each process, so if something does go wrong you can see where the error happened.
Again, partition managers aren’t for the faint of heart. Many people will never use one, or won’t feel comfortable using one even if the need is there. But that’s okay… partitioning isn’t something that’s done on a daily basis.
But the KDE Partition Manager is there, and it’s a good piece of software. If you’re using KDE as your desktop environment and need something to help manage and modify your system’s partitions, the KDE Partition Manger is a great choice.