LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-08-2006, 07:22 PM   #1
knichel
LQ Newbie
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
Please, Please,Please help with HD Cloning...


I have a lab with several Identical computers. I installed and configured 1 computer and set everything just the way I wanted. My plan was to clone it to the rest of the HD's using Norton Ghost and then change the hostname and ethernet adapter info and start using them. The clone seemed to go ok (fast if nothing else). When I installed the hard drives into the other computers and booted them up all seemed fine. I started to change the hostname and ip info, but it didn't work. The hostname would not change. It kept reverting back to the name of the source drive. I ended up su'ing and changin it in /etc/hosts and /etc/hostname. This seemed to work on a few of them but not on others. The prompt in terminal still shows admin@WS6 (which is the hostname of the source drive I used for cloning) even though /etc/hostname shows WS3 and similar is true for /etc/hosts.

The other major problem I am having is that on a few of the computers, I cannot seem to get the network to ... well, work. I have Linksys wireless routers and nic's. I have the settings set identically and the network is working on one machine but not another. I have checked the routing table and the routes are identical and the ip config on the cards is identical.

Another strange (not life threatening) problem is that the wireless adapters on the source drive were labeled ra0 and ra1. When I cloned the drive, then adapters are labeled ra2 and ra3. What is up with that?

Many peopel on #linuxhelp and #ubuntu have given suggestions about which program to use to clone. I have used ghost in the past (last year) and it worked fine. I was able to change what I needed to change and all worked ok.

I read about several programs (dd, g4u, g4l, and others), but have had some glitch with them as well. My HD's are SATA and that seems to have caused me some problems itself (some programs not recognizing the drive when I boot from the cd. Can't clone a drive I can't see.)

Please, please, please somebody help me. I need to get my classroom up and running asap.

--
Mike
 
Old 09-08-2006, 07:31 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
try using kickstart method, that way you wouldnt face much difficulty in setting up all this.
https://help.ubuntu.com/community/Ki...tCompatibility

Last edited by w3bd3vil; 09-08-2006 at 07:39 PM.
 
Old 09-08-2006, 07:37 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
dd clones hard disk partitions in linux as well as many other things. It's a low level bit for bit copier. Search this forum for the guide on using dd. I think the author is AwesomeMonster.
 
Old 09-08-2006, 07:41 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
The hostname setting can be in various places depending on your distro. What distro are you using?

A fairly thorough way to find where the hostname is in your config files is this:

Code:
# find /etc -type f -print0 |xargs -0 fgrep -li $(hostname)
It may or may not be a good idea to modify all the file you find manually. I'm not sure.

The network adapters, while they may be the same model, will not have exactly the same MAC address (and they should not!). The change is likely due to that. On Ubuntu, the MAC addresses of network devices is stored in /etc/iftab (this may or may not be the same in other distros!). I would imagine getting rid of this file and then doing network configuration again would help:

Code:
# mv /etc/iftab /etc/iftab.old
(then run the network configuration again).
 
Old 09-12-2006, 05:54 AM   #5
knichel
LQ Newbie
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Still trying to create HD Image...

Thanks to all that have posted. I have looked at kickstart and do not understand what preseeding is all about. I have tried to use dd, but when I boot from the live CD, I only see one of the SATA drives so that does not work. I have tried to use G4U, but the wireless network connection keeps failing during the upload (at different points). Sometimes it comes back up and continues, but eventually it times out and fails. I have tried to use Norton Ghost 2003 and that is what started this mess. I have used Ghost 2003 in the past and it worked flawlessly. I am beginning to wonder if there is something in the latest release of Ubuntu that is causing the problem. I tried to remove the iftab file and recreate, but no luck. The iftab file shows the 2 wireless network adapters as ra0 and ra1, however, they show in netowork-admin as ra2 and ra3. Besides that I am unable to get 2 computers to talk to the network. I teach Cisco Networking, so I know the ip address and netmask etc. are all correct, but they just do not communicate with the router. I cannot get G4U to use the built in ethernet adapter. I think it does not like the vendor. I do not know what to do now. I do not wish to spend the 2-3 days per machine to install and configure everything. I am not sure I remember everything I did to set it up.

On a side note, does it matter if I have the network adapters turned on and working before the image? Also, I am using nis as a way to create accounts on a server so they can switch computers if necessary and still access their documents. Could this cause problems?

--
Mike
 
Old 09-12-2006, 06:48 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by knichel
Thanks to all that have posted. I have looked at kickstart and do not understand what preseeding is all about. I have tried to use dd, but when I boot from the live CD, I only see one of the SATA drives so that does not work. I have tried to use G4U, but the wireless network connection keeps failing during the upload (at different points). Sometimes it comes back up and continues, but eventually it times out and fails. I have tried to use Norton Ghost 2003 and that is what started this mess. I have used Ghost 2003 in the past and it worked flawlessly. I am beginning to wonder if there is something in the latest release of Ubuntu that is causing the problem. I tried to remove the iftab file and recreate, but no luck. The iftab file shows the 2 wireless network adapters as ra0 and ra1, however, they show in netowork-admin as ra2 and ra3. Besides that I am unable to get 2 computers to talk to the network. I teach Cisco Networking, so I know the ip address and netmask etc. are all correct, but they just do not communicate with the router. I cannot get G4U to use the built in ethernet adapter. I think it does not like the vendor. I do not know what to do now. I do not wish to spend the 2-3 days per machine to install and configure everything. I am not sure I remember everything I did to set it up.

On a side note, does it matter if I have the network adapters turned on and working before the image? Also, I am using nis as a way to create accounts on a server so they can switch computers if necessary and still access their documents. Could this cause problems?

--
Mike
Maybe the kernel isn't loading the correct modules for the hardware (or it isn't supported).

you could find out what modules are required for each nic and run
Code:
modprobe <module>
on the machines. Ubuntu does have great HW detection though (from my experience)
 
Old 09-12-2006, 10:07 AM   #7
knichel
LQ Newbie
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks. The computers all have identical hardware with one exception. 2 Machines have an additional firewire card. Other than that, they are identical.

--
Mike
 
Old 09-16-2006, 10:19 PM   #8
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
If you have some funky hardware, try Suse. If you have some old hardware, try syslinux.
 
  


Reply



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
Cloning a DVD J_K9 Linux - General 5 12-30-2005 06:47 PM
Mepis cloning? lefty.crupps MEPIS 7 06-07-2005 01:35 PM
cloning cpvjagadeesh Linux - Software 1 04-11-2005 05:09 AM
Cloning OS madetheswitch Linux - Software 4 01-03-2005 03:09 PM
cloning with DD and NC scoob8000 Linux - Software 3 11-12-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 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
Open Source Consulting | Domain Registration