Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to partition disk to linux system with GParted

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use GParted to partition the disk of the linux system. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

GParted is a very useful disk partitioning tool for linux systems, so how does GParted partition linux systems? Today, in our computer tutorial, we are going to share with you the solution to this problem. Let's learn how to use an Linux emergency boot disk to implement your changes. After the disk is booted, you can run GParted, just as you would from a regular system, using point-and-click operations to tell the software what you want to do.

GParted runs an emergency disk

There are many Linux emergency disks (emergency discs), such as PartedMagic and SystemRescueCd (see Resources). You can also use your Linux installation media, and many versions include a rescue mode (rescue mode) that supports access to GParted or similar utilities. To illustrate, I will introduce the use of PartedMagic 4.11; however, other tools are similar in general terms. However, you need to start GParted in a different way.

Most emergency disks come in the form of x86 (32-bit), but these disks work well on x86-64 (64-bit) computers, even if the system is running a 64-bit version of Linux. The file system data structure is not affected by the central processing unit (CPU) architecture. If you want to run on other machines, other than standard personal computers (PC), such as Macintosh, you need to check that your emergency disk works with your hardware.

In general, you must boot an emergency disk, just as you boot a Linux installation disk. On some systems, insert the disk and reboot the computer to perform the task. On some systems, you must press a function key to select the boot device, or adjust a basic input / output system (BIOS) option to boot from the CD drive instead of the hard drive. The details of how to do this depend on the system, and you need to refer to the man page for more information.

When you boot PartedMagic, a boot menu appears. Select Default settings (ns from RAM) to boot to the standard system. When the system boots, you can see a desktop with icons for common tools, including a Partition Editor that starts GParted. Double-click the icon to start resizing your partition.

Inform GParted of your changes

To adjust a partition, right-click it and select Resize/Move from the drop-down menu. The result is the dialog box shown in figure 2. You can use the graphics slider or the text input field to resize and position the partition.

GParted provides a point-and-point interface to resize partitions

The first figure shows the resized / dev/sdb7. Move its starting point to the right to make room for the extension of / dev/sdb5. To finish resizing the partition in the figure, you also need to move the swap partition (/ dev/sdb5) to the right before resizing / dev/sdb6. Alternatively, you can delete and recreate the swap partition; however, this may require modifying the UUID reference to swap the space in / etc/fstab, and when the swap space is moved, you can extend / dev/sdb5.

Note the Align to field. This is a new feature in the recent version of GParted that allows you to align partitions to cylindrical boundaries, to mebibyte (MiB) boundaries, or to both. Old disks are usually partitioned to align according to cylindrical boundaries, but MiB alignment is usually used for Windows Vista or newer disk partitions. Linux supports these two alignment modes. If your system dual boot Windows XP, column alignment is required. If your system is dual-booted Windows Vista or later, or if your system uses a new 4096-byte sector, MiB alignment is required.

If you want to make room for the primary partition from the logical partition, you must explicitly adjust the extended partition around the logical partition and vice versa. You can do this as you would any other partition; however, you will find it easier to click on its list entries than to click on the entries in the chart of the partition list above.

GParted does not allow you to adjust partitions that are in use. For example, there is a lock icon next to the entry in the partition. You can right-click the partition and select Unmount to uninstall it. Note that if any of the partitions contained in the extended partition (including swap space) are in use, it is locked in this way.

Implement your changes in GParted

After you notify GParted of your change, you must implement it by selecting the Edit > > Apply All Operations menu item or clicking the Apply icon. The result is a progress dialog that outlines everything the program is executing. If you decide to undo the operation, you can use GParted's undo feature or exit from the program without applying your changes, and there will be no change to your disk.

Partition adjustment operations take a certain amount of time to complete, ranging from one second to several hours, depending on the nature of the change and how much data is moved. Under no circumstances can you interrupt a running operation! Doing so will destroy the file system and make the data unrecoverable.

On how to use GParted to linux system disk partition to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report