A brief tutorial on Lossless Linux partition capacity adjustment

Source: Internet
Author: User
Article Title: a brief tutorial on Lossless Linux partition capacity adjustment. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

If you have any questions and no one can answer them, I will first release some of the content in the "quick building multimedia office platform detailed instruction manual" that I am writing:

It is easier to adjust partitions in Linux. It is more complicated to adjust partitions in dual systems, especially to add or delete partitions.

Gparted-LiveCD is recommended for adjustment.

  I. Preparation

1. download the latest gparted image file: http://sourceforge.net/project/showfiles.php? Group_id = 115843 & package_id = 173828

2. Burn the gparted image file into a CD or press it on a USB flash drive to make it a LiveUSB

3. Although it is a non-destructive adjustment, but to ensure safety (in case of a power outage ?), We recommend that you back up important data to the mobile hard disk.

4. In BIOS, set the boot sequence to first enable the optical drive (if LiveUSB is used, it should be set to USB-HDD)

  Ii. Adjust partitions

1. Add the CD to the optical drive (if LiveUSB is used, plug in the USB flash drive) and restart the computer.

2. Go to the gparted startup interface and select Defalt settings.

3. Press enter on the second page.

4. Select the language and enter "26" and press enter (Simplified Chinese, though incomplete in Chinese)

5. Enter the X-Windows interface and press Enter.

6. When you enter gparted, you will find the interface similar to the ending PQ. The actual operation is the same, and the adjustment to the ending partition is also supported.

7. Click the partition where you want to free up the space. Right-click the partition and choose "Resize/Move" from the shortcut menu"

8. Use a mouse hold or a number to precisely adjust the size of the space to be released. To release the control bar on the left side of the partition header (enter the value of the first line ), to release the right control bar at the end of the partition (enter the value of the third line), click "change size/move ".

9. Click the partition to expand the capacity. Right-click the partition and choose "Resize/Move" from the shortcut menu"

10. follow Step 1 to increase the partition capacity.

11. Click the "Edit" menu and select "Apply All Operations"

12. After you confirm that you want to adjust the partition capacity, gparted starts to adjust the partition, and then click "Close ".

13. Click "gparted", select "Quit" to close the gparted window, and double-click "Exit" in the upper left corner to Exit the gparted system.

14. Select "Reboot" in the pop-up window to restart the computer. When you exit, the system will prompt you to remove the disc.

  Iii. Possible Problems

Swap partition may be lost. You can run the "free-m" command on the terminal to check whether the swap partition is activated (whether the capacity is displayed). If not, activate the "sudo mkswap/dev/sdaX" command (X is the number of the swap partition, replace the activated UUID with the UUID code of the original swap partition in the "/etc/fstab" file (administrator privilege required). After restart, the mount will be automatically activated.

For more information, see the Ubuntu official forum.

Warning exercise caution when activating swap partitions and modifying fstab files. Check the modified values carefully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.