Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Cloning (Ghosting) a Linux Drive

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
snorkythewea's Avatar
Computer Specs
Junior Member with 11 posts.
 
Join Date: Mar 2006
Location: Great Northwet
Experience: Einstein
29-Aug-2006, 06:12 PM #1
Cloning (Ghosting) a Linux Drive
I need to "ghost" a Linux drive located on server "A". The idea is to be able to drop the clone drive into another Linux box and start working with it.

The drive to be cloned uses only 4GB. it's running SQUID with SQUIDGUARD filters - an excellent proxy/content filter for children. Server "A" has lots of bandwidth.

I have a linux machine - server "B" - which I can use to burn the clone. Server "B" will probably be the new home for the cloned drive. Server "B" is not part of the 1Gb network, although I can arrange to connect if necessary.

Available is a linux FTP server - server "C" with plenty of disk space and a big pipe.

I also have a good assortment of Windows POSs - XP and server 2003 - with good bandwidth. And a DVD burner.

Assuming that I don't have much money ( I'm doing this for a cash-poor non-profit group), what is the best approach to this?

Last edited by snorkythewea : 29-Aug-2006 06:23 PM.
Squashman's Avatar
Distinguished Member with 14,988 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
29-Aug-2006, 07:45 PM #2
You can use the Builtin utilities in Linux to image the drive.
http://www.pccitizen.com/driveimage.htm

Or if you want to image the drive to a server, you could use Ghost 4 Unix.
http://www.feyrer.de/g4u/
snorkytheweasel's Avatar
Computer Specs
Senior Member with 188 posts.
 
Join Date: May 2006
Experience: UNIX/VMS:Elder Geek; DOS/Windows:Fossil
29-Aug-2006, 09:19 PM #3
Thanks. Those look very promising.
saikee's Avatar
Distinguished Member with 2,835 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
30-Aug-2006, 05:39 AM #4
It is perfect job for the dd command

To clone disk a source hda to a target hdb
Code:
dd if=/dev/hda of=/dev/hdb bs=32768
Partition hda1 to partition hdb7
Code:
dd if=/dev/hda1 of=/dev/hdb7 bs=32768
The block size is for speeding up the process as without it dd defaults to 512 byte in each transfer. The 32768 =512 times 64 or one complete track at a time

The only rule needs to remember in using dd command is that it is a sector-by-sector cloning and so the target should be larger than the source if not matching exactly. Normally an exact match is preferred for trouble free operation. dd will break down if the target cannot accept all the source data (smaller in size).

Also dd clone boot sector too, as against cloning a filing system, and so the target will boot as the source. It is a complete 100% mirror image.

It pays to remember the first parameter if (=input file) is always the source data. A mix up with the source with the target will lead to loss of data!!! I always shout at the top of my voice when reading the command line before hitting the return key.

My experience with dd is that it is faster, more reliable but slightly less flexible than the commercially available Ghost.

Had clone 300Gb disks with 60 distros and used the target disks on different computers.

Target disk will work immediately if the hardware is the same. Even if totally different hardware were use as in my case Linux can be edited to suit the new computer.
snorkythewea's Avatar
Computer Specs
Junior Member with 11 posts.
 
Join Date: Mar 2006
Location: Great Northwet
Experience: Einstein
30-Aug-2006, 11:17 AM #5
Something that I didn't make clear (my bad!) is that I can't add a drive to the server whose disk is to be cloned. In other words, a disk-to-disk clone in the same computer is not possible in this case.

The cloning will have to occur over the fat pipe network or the internet.

STOP THE PRESSES! I just had a hot flash or a flash or something.

I could use a USB external drive on the original server and clone to the disk that is in the USB drive. Actually that's a question (the question mark is in a hidden share). Is that feasible?

Last edited by snorkythewea : 30-Aug-2006 11:23 AM.
saikee's Avatar
Distinguished Member with 2,835 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
30-Aug-2006, 02:11 PM #6
Yep

You USB disk will be seen as sda or sdb (could be also hde or hdg).

The cloning speed will be slowed down as USB port is a bottle neck.
Squashman's Avatar
Distinguished Member with 14,988 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
31-Aug-2006, 10:48 AM #7
Quote:
Originally Posted by snorkythewea
The cloning will have to occur over the fat pipe network or the internet.
Then use Ghost 4 Unix. That is what it was designed for.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:42 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.