Vmware+linux changing disk quotas (using gparted LiveCd) utility!!!

Source: Internet
Author: User
Tags gparted

Reprint: http://blog.csdn.net/microad_liy/article/details/7667670

Reasons for writing this article:

Recently to the server CentOS on the Ruby version upgrade, because it is the first upgrade, not directly on the server to operate.

So I installed VMware on my WinXP and Centos5.2 in VMware.

With yum install some patch packs, the CentOS root directory space is not enough, the other operation will not go on.

This problem has plagued me for a week, many people on the Internet have encountered this problem, but in the sea as a reprint answer,

Some use the command line to increase the space, but it is too complicated for me, and after careful understanding and operation, there is no increase in success.

There are also references to using this software, but in the context of setting up Linux for the CD-ROM to boot and modify the Linux unlimited reboot to normal start "Linux single-user mode", not enough to say.

Hope that in the future we will encounter this problem can follow the detailed steps below, the correct and rapid resolution of the problem.

With the above feeling, I wrote this article.

Goal:

Vmware Linux adds root space (/DEV/SDA2)

Environment:

WINDOWXP is fitted with VMware player3.1.0, and VMware is loaded with Centos5.2

Using the Software:

GParted LiveCd (http://gparted.sourceforge.net/download.php) (Graphical interface partitioning tool)

Gparted-live-0.12.1-5.iso

Overview of Partitioning methods:

Step 1: Load the graphics partition software Gparted-live-0.12.1-5.iso into the optical drive

Step 2: Set Linux to boot for the CD drive

Step 3: Select the GParted boot system and enter the partition software interface

Step 4.gparted Partitioning software how to use

Step 5: Modify the Linux unlimited reboot to normal boot. (Id:6:initdefault: = = Id:5:initdefault:) [Linux single-user mode]

Partitioning method:

Step 1: Load the graphics partition software Gparted-live-0.12.1-5.iso into the optical drive

Step 2: Set Linux to boot for the CD drive

①.reboot Restart the system, press F2 to enter the BIOS setup screen
Press F2 effective time is very short, so set the system to restart repeatedly. (The 5th step is to restore the normal startup method)

Vi/etc/inittab
Id:5:initdefault:
Change 5 to 6.

②. With + adjust "CD-ROM drive" to the top, F10 save exit.

Step 3: Select the GParted boot system and enter the partition software interface

①. Select "GParted Live (Default settings)" and enter.

②. Select "Dont ' t touch keymap" and enter.

③. Input 33, enter.

④. Input 0, enter.

Step 4: How to use the partitioning software

I'm here to add space to the/DEV/SDA2, and the increased space needs to come from the neighboring/dev/sda3.

①. Make room from the/dev/sda3

Select/dev/sda3, click the Resize/move button

Use your mouse to hold the left arrow, and to the right to resize the space you want to expand, press the Resize/move button.

②. Add space from/dev/sda3 to/dev/sda2

With/dev/sda2 selected, press the Resize/move button.

Hold the right arrow to the right to the head. Press the Resize/move button.

Click the Apply button and the bottom screen appears. (Wait, can play a regular CS or interstellar)

Allocate Space Success Screen

Double click "Exit" button, select "Reboot", OK

Press ENTER

Step 5: Modify the Linux unlimited reboot to normal boot. (Id:6:initdefault: = = Id:5:initdefault:) [Linux single-user mode]

Before starting, press ESC to enter the bottom screen

Select "CentOS (2.6.18-92.EL5)" and press the E key to enter the bottom screen.

Select "Kernel/vmlinuz-2.6.18-92.el5 ro root=label=/rhgb quiet", press the E key, add a space 1 on the last side.

Press ENTER to return to the bottom screen

Press the B key to enter the bottom screen (single user mode)

sh-3.2# Rear Input Vi/etc/inittab

Modify Id:6:initdefault: = = Id:5:initdefault:, save

Enter reboot and you will be able to enter the Linux system normally.

Step 6. See if the root directory space is increased.

After allocation:

Before allocation:

*************************************************************************************************************** *******************************************

Welcome reprint, but please indicate the source.

*************************************************************************************************************** **********

Vmware+linux changing disk quotas (using gparted LiveCd) utility!!!

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.