There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Cloning (Ghosting) a Linux Drive


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
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 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
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 133 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,515 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.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
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,515 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 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
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.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:18 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.