VMware Linux increases the root directory space (using the graphical partitioning tool gparted LiveCd). __linux

Source: Internet
Author: User
Tags gparted

The reason for writing this article:

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

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

With yum install pack some patches, the CentOS root directory space is not enough, other operations will not go on.

This problem has plagued me for a week, and many people on the Internet have encountered this problem, but in the Sea of the reprinted answer,

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

There is also mention of using this software, but in terms of setting Linux for the optical drive to start and modify Linux Unlimited restart for the normal launch of "Linux Single-user mode", said not thin.

Hope that you will encounter this problem in accordance with the following detailed procedures to solve the problem correctly and quickly.

With that in mind, I wrote this article.


Target:

Vmware Linux adds root directory space (/DEV/SDA2)



Environment:

WINDOWXP has VMware (VMware player3.1.0) and VMware has Centos5.2


Using 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 graphical 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 Zoning Software usage method

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


Partitioning method:

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



Step 2, set Linux to boot for the CD drive
When ①.reboot reboot the system, press F2 to enter the BIOS setup screen
Press F2 effective time is very short, so set the system for repeated reboot. (The 5th step is to restore the normal boot 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)", enter.


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

③. Enter 33, carriage return.


④. Enter 0, carriage return.




Step 4: How to use the zoning software

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

①. Make room from the/dev/sda3

Select/dev/sda3, click Resize/move button


With the mouse to hold the left arrow, to the right you want to expand the size of the space, press the Resize/move button.

②. Add the space vacated in the/dev/sda3 to the/dev/sda2

Select/dev/sda2 and press the Resize/move button.


Hold the right ARROW and hold the head to the right. Press the Resize/move button.

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


Allocate Space Success Screen


Double-click the "Exit" button and select "Reboot", OK


Press ENTER



Step 5: Modify the Linux unlimited reboot to normal startup. (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)", press e key, enter the bottom screen


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


Press ENTER, return to bottom screen


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


sh-3.2#, enter vi/etc/inittab behind.


Modify Id:6:initdefault: => id:5:initdefault:, saving


Enter the reboot, you can enter the Linux system normally.



Step 6. See if the root space is increasing.

After assignment:


Before assignment:



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

Welcome reprint, but please indicate the source.

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


See the original: http://blog.csdn.net/microad_liy/article/details/7667670

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.