How to move a folder to another disk partition
Hi,
On a RHEL production environment an installation error was made: a commercial third party software product was installed in /dev/mapper/rootvg-rootvol file system mounted on / We would like to move it to /data (/dev/mapper/datavg-datavol file system). Is a simple copy (move) enough to change the installation partition ? thanks |
Maybe the config file for the installation needs to be changed.
|
Hi,
yes in main configuration file of the product the complete absolute path for example /data/product_name is used, after move /data/product_name will be in a different file system but it should be i think transparent. Thanks |
see man cp, especially -a
|
Quote:
You also don't tell us what this app is, so there's no way we can guess as to what the ramifications will be of just copying/moving it to a different location. You could just do an "mv <directory> </new/location>", and it'll move everything at once, removing it from its current location. The "cp -R" statement will COPY that entire directory structure to wherever you tell it to. As far as it working afterwards...who knows? |
you can use
1. cp -ar /source /destination 2. mv |
All times are GMT -5. The time now is 05:21 PM. |