This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13430|Reply: 0

[linux] Linux modifications mount to the new /date directory

[Copy link]
Posted on 7/28/2021 2:13:24 PM | | | |
Review:

Centos 7 Mounting Data Disk Tutorial
https://www.itsvse.com/thread-4891-1-1.html

The difference between Linux storage xfs and ext4
https://www.itsvse.com/thread-10010-1-1.html
Use the df -h command to display disk information as follows:



I can see that the disk /dev/mapper/centos-home has been mounted to the /home directory, how to modify the mount point? That is, mount /dev/mapper/centos-home under the /data directory?

Uninstall the hard drive with the following command:


Use the df -h command to re-view to see that the mount has been successfully uninstalled



Note:Do not execute under the /home directory command, otherwise the error will be as follows:

umount: /home: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
Create a new /data directory and mount the disk to the directory with the following command:



Set the boot mount and modify the vim /etc/fstab file configuration as follows:



Reboot the server using reboot.

(End)




Previous:The difference between Linux storage xfs and ext4
Next:CentOS 7 copies files to another server via commands
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com