Replacing the usr Mount partition with CentOS, centosusr

Source: Internet
Author: User

Replacing the usr Mount partition with CentOS, centosusr

Since the partition space previously attached to the/usr directory is too small, more required software cannot be installed. Now, add a hard disk and re-mount it to the/usr directory, copy the contents (including permissions and connections) in the/usr directory to the/usr directory of the new disk partition.

Operating System: CentOS6.4

Procedure:

1. log on to the system as a root user

Omitted

2. New disk partition and format

Omitted

3. Original/usr directory backup

Cp-rp/usr temporary directory/(any directory with sufficient space)

4. view the UUID of the new disk partition and update the automatic mounting configuration file.

Ls-l/dev/disk/by-uuid

Vim/etc/fstab

5. restart the system, log on as the root user, recover/usr from the temporary directory, and delete the contents of the temporary directory.

Cp-rp temporary directory/usr/*/usr

Rm-rf temporary directory/usr

 

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.