LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-13-2006, 06:53 AM   #1
knichel
LQ Newbie
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
So what is the Correct way to clone a HD in a LAB setting?


I have been trying to clone a HD in my computer lab to avoid installing separately and configuring all of my machines. I built a working "Perfect" machine. I have tried several methods of cloning the disk. I am using Ubuntu 6.0.6 and all of my computers are identical.

1) Norton Ghost 2003 : After cloning and installing the new disk, I booted and attempted to change the hostname in network-admin -> general tab along with the ip information for the adapters. This resulted in some computers taking the change ok and working and some not taking the change and not working. I have had problems changing the hostname. Is there a different way to change it? I have a machine that I know has correct ip info on adapters and it will not connect to the wireless routers (oh yeah, we use wireless nic's).

2) Ghost for Unix : The cloning never actually worked, so configuring is a mute issue. The network connection kept dropping during the transfer of the image to the ftp server. Me thinks that the version of BSD on the boot disk does not like wirless adapters all that much.

3) DD : I finally got dd to work. It took 3 hours to clone a 160 GB HD. Man that sucks, but if it works, then fine. However, it did not work. The clone worked, but when configuring, I had issues. I changed the hostname (I think) and the ip information, but now some programs take way tooooooooo long to open and sometimes do not open at all. Closing is the same way. Took over 20 minutes for the terminal window to close after typing exit at the prompt. Should be less than 10 seconds. The machine seems to work ok for a while and then the entire system hangs for a minute or two.

At this point, I feel that the cloning is working, it must be with the setup afterwords. I have used Ghost 2003 in the past to do just what I want to do now and it worked like a charm. That was with Ubuntu 5.10. We have introduced NIS into the equation so we can have roaming logins and server based /home folders. I cannot see why that would pose a problem with the imaging. NIS is not hostname or ip dependant except for the name of the server (which *should* be the same for all machines).

Any suggestions would be greatly appreciated. I really need to get my computer lab up and running.

--
Mike
 
Old 09-14-2006, 12:49 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
The "correct way" is the way that works. Some techniques work better/faster than others.

Here are links to good reading on the subject. Two methods, using different utilities, to accomplish the same end.

http://www.rajeevnet.com/hacks_hints...s_cloning.html

http://www.linuxfocus.org/English/Ma...ticle370.shtml
 
Old 09-14-2006, 06:47 AM   #3
knichel
LQ Newbie
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
I have tried dd and it worked (at least it cloned the drive). The problem is that it took 3 hours to clone a 160 GB HD. SO, it seems that my problem is related to the configuration. I decided to re-clone the drives (used Norton Ghost this time and it takes about 15 minutes per drive) and that worked. I made sure that when I booted the new drive, the source was off so I did not have IP conflicts or hostname conflicts. I am thinking that these are two confilcts I want to avoid. So when the dest drive finally booted, I logged in (ctrl-alt-f2) as root and edited the following files to reflect the info for this computer (hostname, ip addresses, mac addresses)

/etc/hostname
/etc/hosts
/etc/iftab
/etc/network/interfaces

Rebooted and logged in using the admin acount I created to verify/change any settings in the network-admin control pannel.

This *seems* to have worked. Have I overlooked something critical?

--
Mike
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a correct Window System. hgb Debian 9 06-17-2006 05:53 AM
correct DISPLAY setting mathfeel Linux - Software 2 05-26-2006 03:15 PM
setting up a server for a lab network installation scottie4442 Fedora 1 11-02-2004 08:03 PM
Setting correct permissions for my ~/ ShadyCharacter Linux - General 2 04-15-2004 12:06 AM
How to setting the correct value in BIOS about CPU speed? explorer1979 General 1 09-09-2001 06:35 AM


All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration