The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
grep running total/ final total across multiple files MrAd UNIX for Dummies Questions & Answers 5 05-08-2007 02:03 PM
folder replication between windows and unix systemsb UNIX for Dummies Questions & Answers 0 03-27-2007 10:41 PM
How should I know the total RAM available on UNIX skull123 HP-UX 7 02-28-2007 01:50 AM
HP Unix replication solution ufo_999 HP-UX 3 05-03-2006 07:14 PM
is this the UNIX operating system board? TOTAL NEWBIE leohutt UNIX for Dummies Questions & Answers 2 04-06-2001 12:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-02-2000
nuraman nuraman is offline
Registered User
  
 

Join Date: Nov 2000
Posts: 2
Angry

Is there any way to totally replicate a unix system from one hardisk to another? And be able to swap the hardisk and restart the system without any error?
TQ
  #2 (permalink)  
Old 11-03-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,784
Yes, of course. The dd() command. Disk-to-disk copy.
  #3 (permalink)  
Old 11-03-2000
nuraman nuraman is offline
Registered User
  
 

Join Date: Nov 2000
Posts: 2
Tq Neo, for the reply, but i think that would not solve my problem. I want to be able to duplicate the hardisk, say for backup purposes, and when the system actually crash or got corrupted, i can just change the hardisk to my backup and restart the computer without any hassle at all. Any ideas?
*tried dd() command, could not run system with copied hardisk.*
  #4 (permalink)  
Old 11-03-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,784
We have used dd many times and it works fine. Many linux vendors also use dd to duplicate entire disk sets for linux boxes they are selling. That is how they can get a lot of linux boxes out the door quickly. If they had to do the standard install on each platform, it would take forever!

When you run dd between hard disks with the same geometry, the two disks have a mirror copy of each other. If you mount the copied disk in place of the original disk, it will work fine. If I'm not mistaken dd also copies all the boot sector and MBR boot information as well. Here is plain example:

(not counting blocks, other flags, etc.)

dd if=/dev/hda of=/dev/hdb

where /dev/hda is the original and /dev/hdb is the new one. Of course, your hard drives might be on different device drivers depending on your configuration, boot sequence, etc.

Then you must replace /dev/hda with /dev/hdb.

This should work. But I've not done if for some time, so please check the man pages for dd.

[Edited by Neo on 11-03-2000 at 09:51 PM]
  #5 (permalink)  
Old 04-27-2001
claudio claudio is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 1
Angry Attempted Mirroring with dd: failed

Dear Neo & Nuraman,

we had the same problem and wanted to mirror our boot disk
to a backup one. So we tried to use dd as suggested by Neo.
Our boot disk is partitioned in eight... partitions.
Our backup disk is exactly the same as the boot one (same
model, size) and has been partitioned in the same way as the boot one.
So we tried to dd each partition on the boot disk to the
corresponding partition on the backup

Example: dd if=/dev/dsk/c0t0d0s0 of=/dev/dsk/c0t2d0s0

At the end, we took a look at the backup disk: it was
empty, no file which was on the boot disk was found on the
backup.
We even tried to swap disks, but the server does not boot
anymore, a message is shown saying: Boot failed, loaded
file is not executable.

Did we dd'ed the correct devices ?
On our system there are the same partitions listed as
/dev/rdsk/c0t...
May be we must dd those devices instead ?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0