The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ftp from hard drive to unix server dummy_needhelp Shell Programming and Scripting 6 11-01-2007 12:35 PM
RAM Drive in UNIX? joshivaibhav UNIX for Advanced & Expert Users 7 09-20-2006 08:11 AM
Tape Drive on Unix 7.1.1 a4tech UNIX for Dummies Questions & Answers 4 09-10-2002 10:48 PM
unix on a small drive? silverraindog UNIX for Dummies Questions & Answers 4 07-31-2002 12:19 PM
Unix backup to tape drive Cute Security 3 12-21-2001 06:34 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2002
Registered User
 

Join Date: Feb 2002
Location: Terre Haute, IN
Posts: 1
Stumble this Post!
How to duplicate a drive in Unix?

I have a drive that I need to make a sector-by-sector or exact image copy of. In Windows, I use a program call Ghost by Symantec, but the version I have does not support Unix.

Does anyone know of a good product for Unix?

Thanks,

Brett Gibson
Gibson Teldata, Inc.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-07-2002
Registered User
 

Join Date: Jan 2002
Posts: 10
Stumble this Post!
You can use dd for that. Lets say you want to create an image file of hda you would use : dd if=/dev/hda of=/tmp/hdaimage.

If you got 2 identical disks you could mirror them like this :
dd if=/dev/hda of=/dev/hdb
Reply With Quote
  #3 (permalink)  
Old 02-07-2002
Registered User
 

Join Date: Jan 2002
Location: Georgia and Florida
Posts: 64
Stumble this Post!
Upgrade your version of Ghost. We have it and it works well. However.. let me caution you on something... When you make exact duplicates of hard drives, I assume that you are changing the liscensing information on the duplicated drive... Right?? Right??? Right???? =)
__________________
:D
Reply With Quote
  #4 (permalink)  
Old 02-08-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Stumble this Post!
Maybe he's setting up a homebrew MirrorDisk

# crontab -l

* * * * * dd if=/dec/hdc of=/dev/hdd >/dev/null 2>&1
Reply With Quote
  #5 (permalink)  
Old 02-26-2002
Registered User
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
Stumble this Post!
One guy reportedly did this with cat:

# cat /dev/hda >/dev/hdb

The disks were 100% identical, important for such things as sector sizes, etc.

The paranoid way would be to make filesystem, mount the second disk, and use cp -r.

This is what I do when I add one disk and, fx. move the /usr or /home tree to the new disk

Atle
__________________
PS
All of the above is to be read as '... unless I am wrong'
ENDPS
Reply With Quote
  #6 (permalink)  
Old 02-26-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Stumble this Post!
It's OK to do it with cat as well... I think people use dd because you have a little more control (blocksize, count size, etc...) than with cat.
I think it's the FreeBSD Install manual that says: to create the floppy boot image, simply cat boot.flp > /dev/fd0
Reply With Quote
  #7 (permalink)  
Old 02-27-2002
Registered User
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
Stumble this Post!
A not-so-known thing about FreeBSD:
I wanted to duplicate a disk, but couldn't for the life of me get it to work - how the H#&& do I get the SCSI-emulator to work, grrrr!!
Then I found burncd, worked right off the IDE, just like I would have done it.
".. just like I would have ... hmm, lets try .."

# cat /dev/acd0 >file.iso

YES! That is the way to duplicate a disk under FreeBSD:

You cat the CD and pipe it to the CD-R!

I became a _dedicated_ BSD fan after that :-)

Atle
__________________
PS
All of the above is to be read as '... unless I am wrong'
ENDPS
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio, linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0