LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-26-2016, 01:18 AM   #1
Max_2802
LQ Newbie
 
Registered: Aug 2015
Posts: 8

Rep: Reputation: Disabled
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
 
Old 05-26-2016, 01:59 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Maybe the config file for the installation needs to be changed.
 
Old 05-26-2016, 02:34 AM   #3
Max_2802
LQ Newbie
 
Registered: Aug 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-26-2016, 07:17 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,837

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
see man cp, especially -a
 
1 members found this post helpful.
Old 05-26-2016, 09:10 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Max_2802 View Post
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 ?
Not to sound nasty here, but you're using a commercial application (which you probably paid for), on RHEL (which you ALSO pay for)....wouldn't support for that commercial, third-party package be the right people to call and ask?

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?
 
Old 05-26-2016, 11:36 AM   #6
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
you can use
1. cp -ar /source /destination
2. mv
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to move a file from folder to folder in Ubuntu get a message: Permissio Denied AlexBB Linux - Newbie 13 12-09-2014 07:42 PM
How to Move a Folder From one Partition to Another dmonking Linux - Newbie 4 03-12-2010 10:38 PM
Is it possible to move a folder to a new partition mazebane Slackware 3 06-27-2006 04:27 PM
move folder to new partition blizunt7 Fedora 11 10-13-2005 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration