• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

Create copy disk

Good day!
OS: Solaris 9
On the server is placed the old disk with bad sectors.
I have bought for it a new disk.
How to make a copy of an old disk?
The old disk is not-bootable.(Oracle database).

BR, Maks Pro
0
MaksPro
Asked:
MaksPro
1 Solution
 
OtetelisanuCommented:
You can with:

1. cp -rp /olddisk/* /newdisk

2. cd fromdir; tar cf - .| (cd todir; tar xfBp -)

3. dd id=/dev/rdsk/olddisk /dev/rdsk/newdisk

4. ufsdump 0f - /dev/rdsk/oldisk | (cd /newdisk;ufsrestore xf -)

With dd you copy the bad sector from olddisk to newdisk.

With cp the owner from files is the cp start.

Normally,  tar   does not follow symbolic linhks.
With h Follow symbolic links as if they were normal files
or  directories.  
Normally,  tar   does not follow symbolic links.


dd and ufsdump is beter...

0
 
MaksProAuthor Commented:
Thank for the help.
I used ufsdump.

BR, MaksPro
0
 
liddlerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by  Otetelisanu

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now