Solved

How best to copy a boot hard drive?

Posted on 1998-11-11
3
241 Views
Last Modified: 2013-12-16
I am using solaris 2.5.1 x86 and would like to make a mirror copy of my main hard drive (it has /, /usr,/tmp,etc., on it).

I would like to know how best to make a copy of this drive, so that if the one running the system crashes, I can jsut throw the copied drive in there and fire the machine up again.  These are SCSI drives in a Dell 4200.

I don't want to use 'ufsdump' because it requires the drive to be unmounted, and these sytems can't be taken down for long periods of time - do maybe 'dd' would work?

Anyway, a detailed response would be appreciated, including how to make the drive bootable, and what order I need to take to get the os to recognize the blank drive, do I need to format it if its going to be an exact duplicate of the drive I want to copy, etc...

Thanks in advance,

racy
0
Comment
Question by:racy
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 1812316
dd bs=1024 count=xxx if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2

where xxx is the disksize in kbytes.
Don't forget to adjust the device names ;-)
0
 

Author Comment

by:racy
ID: 1812317
So just a couple more questions on this and I'll be done with it...I am assuming that 'dd' can be used while the machine is running and not screw anything up?  Also, I have used 'dd' before and seem to recall that the permissions on the copied drive where strange...is there a way that I can prevent this?

And, lastly is ther a way to get the OS to recognize the disk without having to do a boot -r or b -r and shutdown the computer?

Thanks again
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812318
dd just copies bytes, nothing more or less.
So it does not know anything about permissions, nor files or directories (in the data). You just need access to source and destination (wether they are devices and/or files).

To mount disks without rebooting (cold start !) is somehow unsupported. This is not a problem of the OS, but the hardware part. If you have a SCSI bus which allows "hot-plugging", then it's not a problem. Check your manuals.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

810 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