[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Disk Cloning

Posted on 2001-08-08
11
Medium Priority
?
866 Views
Last Modified: 2008-02-26
I have a machine running unix which the hard drive crashed.  I have the data on another hard drive, but must clone the drive.  Does anyone know of any software to clone unix drives?
0
Comment
Question by:shageman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +1
11 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 6366997
Hi shageman,

    Which version of UNIX are you running?

    I believe that you don't need the by a software to clone the HD (most
of the HD clone software on the market is not for UNIX anyway). IF you want to clone a UNIX disk, first you need to find an identical HD (same made, same model, same size). the use the UNIX "dd" command to do it.

   If you cann't find an identical HD, you can copy the contains of the data HD to a new.  eg mount the HDs on the same machine,  or use NFS to mount the data HD on different machine to copy it.


   Cheers!

yuzh
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6367055
dd works always, independent of made, model, size
Never use NFS (or mount) to make a "identical copy", just dd.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6367564
What I mean is that in case you cann't find an indentical HD, you can use the backup command eg: cpio to copy the file systems accross to the new HD, don't use tar if you have to copy some like device files accross, but cpio can do the job for you.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:shageman
ID: 6370319
Forgive my ignorance here....but is there a unix command similar to DOS scandisk??
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6370849
In Solaris UNIX, you can use "format" command to do it. In SCO UNIX,
"badtrk" is the one to be used. You have not give us the info about you
OS.

But if you only want to check your file system, "fsck" command will do
it for you.
0
 
LVL 1

Author Comment

by:shageman
ID: 6370889
I am sorry, it is SCO unix....not sure which version
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6371271
With SCO UNIX, you can boot up the system from FDs, and use "badtrk"
to ckeck your HD.
0
 

Accepted Solution

by:
NGrigoriev earned 200 total points
ID: 6444099
1. Connect your new hard drive to your working system
2. Partition your new hard drive as you want
3. Mount your new empty volumes somewhere.
4. Copy files  using tar, for example.

mount new-volume /mnt/export1
cd /export1
tar cpf - * | ( cd /mnt/export1 ; tar xpf - )

5. Install system boot loader. This is most difficult task because it depends on what kind of UNIX you have. In case of Linux or BSD it is simple.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6444620
Hi NGrigoriev,

   tar can not copy spcicial files like device files. The SCO version of cpio can copy any file on the harddisk to other harddisk or tape drive, so you comment is likely not
the answer for this question.
0
 

Expert Comment

by:NGrigoriev
ID: 6450012
Hi, yuzh

     Tar does copy device files. At least if they was created by mknod. I copied several Linux filesystems using tar. Also, it is
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question