Ubuntu8.04 partition adjustment steps

Source: Internet
Author: User
In the past, except for/boot AND/swap, the Ubuntu partition is/. Now, the/home in/is separated by the following steps: 1. start with the Ubuntu installation CD and enter the liveCD mode. All work is done in this mode. Then run the command line to start the partition tool Gparted. You must use the superuser: sudogparted2. in Gparted, you can easily adjust the partition size.

In the past Ubuntu 8.04 partition, except for/boot,/swap, that is,/, the/home in/is now separated by the following steps:

1. Use the Ubuntu installation CD to start and enter the liveCD mode. All work is done in this mode. Then use the command line to start the partition tool Gparted. You must use the superuser:

Sudo gparted

2. You can easily adjust the partition size in Gparted. It is best to back up the data in the/home partition to reduce the/capacity, and s makes the adjustment more flexible.

3. Reduce the/capacity and set the free space, including the file system format. After the adjustment, the application adjustment scheme will take a long time and you need to wait patiently.

4. after the adjustment is completed, Gparted stops working and exits. Execute sudo fdisk-l in the terminal, and you will find that there is one more disk, that is, the new one, for example, sda6.

5. Move all users in the/home directory to sda6. In liveCD mode, both/and sda6 are mounted to the/media directory, and the root user is used to complete user transfer.

6. Modify/etc/fstab, Mount sda6 to/home, and add the following line:

UUID = × ext3 relatime 0 2

The UUID of sda6 can be obtained through this command: sudo blkid

7. After restarting, the partition is adjusted.

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.