Linux disk space adjustment

Source: Internet
Author: User
My environment is WinXP + VMware7.1 + Fedora13. When I installed Fedora13, the space was 5 Gb. At that time, I thought it should be enough. I didn't expect it to be long before, and the disk space was insufficient. Run df-lm to check whether it is 100% faster. As a result, when the software is installed, the xwindow restarts, and then the xwindow cannot be entered, the description and solution of this problem can be found in another note. Next, let's talk about how to resize. 1. First

My environment is Win XP + VMware 7.1 + Fedora 13

During the installation of Fedora 13, the space provided was 5 Gb. At that time, I thought it was enough. I didn't expect it to take long and the disk space was not enough. Run df-lm to check whether it is 100% faster. As a result, when the software is installed, x window is restarted, and then x window cannot be entered, the description and solution of this problem can be found in another note.

Next, let's talk about how to resize.

1. Go to the vmware interface and choose Virtual Machine> Settings. On the right side of the interface, click utilities in the downward triangle, select capacity extension, and adjust the size in the pop-up box. Because we are resizing, and of course we are making major adjustments. Adjust to the desired size and click expand. (I don't know which guy will turn to vmware 7.1 for Chinese characters and English ).

2. It takes some time to click expand. I added 1 GB and waited for about seven or eight minutes. Then we started Fedora. Run the command fdisk-l to view the capacity we just expanded and display/dev/sda3 on my machine.

3. Next, check the size and space occupied by the folders in the root directory and decide which folder to move the following content to my newly added partition. The command is du/-sm *. Because the capacity I expanded is 1 GB, I found a folder with a size smaller than 1 GB. my/var occupies more than six hundred MB, so that I can remove the content under/var.

4. First move the content to a temporary directory. For example, create a temporary folder named var_temp under/home.

Mv/var/*/home/var_temp. Maybe you don't have any disk space, so you should move it to the USB disk first.

5. mount the resized G to/var

Mount/dev/sda3/var

Note that sda3 represents the 1g partition on my own machine. Maybe your machine is not yours.

6. Move the content under/var that was previously backed up

Mv/home/var_temp/*/var

In this way, you can use df-lm to check whether your disk capacity has increased.

Related Article

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.