Home » Infrastructure » Unix » How to copy one mount point /u01 to another /u02 (RHEL 5)
How to copy one mount point /u01 to another /u02 [message #534805] Fri, 09 December 2011 05:19 Go to next message
kamran0931
Messages: 17
Registered: December 2011
Junior Member
Hello
I want to copy /u01 to /u02 using tar cvf command.
when i do it

tar cvf /dev/sda2 /dev/sdb1

it gives this error;
tar: Removing leading `/' from member names
/dev/sdb1



Help
Re: How to copy one mount point /u01 to another /u02 [message #534806 is a reply to message #534805] Fri, 09 December 2011 05:29 Go to previous messageGo to next message
ThomasG
Messages: 3211
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
"tar" is a program do archive files, not to copy devices.

"dd" is a program to copy files and devices.

Although that will only work in your case if /dev/sda2 and /dev/sdb1 are *exactly* the same size, since you will be doing the copy "below" the file system level.

It might be a good idea to try to learn some basics before trying to do more complicated stuff with Oracle.

[Updated on: Fri, 09 December 2011 05:30]

Report message to a moderator

Re: How to copy one mount point /u01 to another /u02 [message #534811 is a reply to message #534805] Fri, 09 December 2011 06:21 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Previous Topic: DBCA cannot be started
Next Topic: user not connecting from xmanager
Goto Forum:
  


Current Time: Fri Mar 29 05:58:29 CDT 2024