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