LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-07-2005, 01:24 PM   #1
valnar
Member
 
Registered: May 2005
Posts: 66

Rep: Reputation: 15
Disk cloning question


OK, I've searched for this but couldn't find it specifically. This is not your typical "What's like Ghost, but free?" question. In this case, I don't mind if it cost money. I have a disk clone question but not related to disaster recovery.

I come from an all Windows world where the tools and procedures to clone desktop PC's are rather mature. If you want to cookie-cut a Windows XP installation for a company, you load Windows with your Corporate license, load all your apps and tweak it to your liking. Copying it to another identical PC involves:

* Ghosting it to another PC, or Acronis, or Drive Image, etc.
* Changing the SID
* Change the name of the PC
* Add to NT Domain/ADS
* Add appropriate user(s) to Administrator group if needed.


I'm still a Linux newbie, but I wanted to know what is the equivalent in the Linux world? Is there anything obtuse like the registry in Linux? Or is everything file based like the good 'ol DOS/Win3.1 days I loved so much? And if so, what files need to be edited and changed between identical hardware installations to differentiate them enough like the "SID/Name" change for Windows? Lastly, any tools for these procedures?

Thanks,
Robert
 
Old 06-07-2005, 01:48 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
well if the disks are identical you can just use dd to make an exact copy it's a basic unix tool and should be in any linux distro. no registry all the configs are in text files if the computers are identical you should only have to change the hostname and ip
 
Old 06-07-2005, 02:32 PM   #3
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
For ghosting there is ghost for unix (g4u) http://www.feyrer.de/g4u/ but depending on what distribution you use it may be easier to use kickstart (redhat, fedora, suse all do stuff like this) which will do an installation over the network via pxe boot.

All configuration is file based and the configuration files for nearly everything on your system are under the /etc/ directory.

You will need to regenerate your ssh keys and whatever other fingerprint keys your system might have on there. The hostname should be changed and network information if you are using static ip addresses should be changed.
 
Old 06-07-2005, 02:38 PM   #4
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
clone using a terminal or xterm (like bash), but since you cannot clone a running system (too much in flux) you'd need to boot with a live cd. at the terminal run [partimage] and it'll run you through a simple quasi-graphical program.

then you'd re-run that program on a new computer and, using the live cd, install a bootloader.

The "dos" filesystem... no. Its a UNiX-type fs *layout*, but yes, most settings are config file based. You'll still need to do this:
* Change the SID
* Change the name of the PC
* Add to NT Domain/ADS

Making said changes depends, somewhat, on your distribution of choice. Most have a GUI tool (graphical user interface) but some need to be done via the terminal (command line) (all can prob be done via command line, but each "branch" (i.e. Red Hat vs Debian vs Gobo vs etc) may be a bit different; GUI tools are usually easier. I'd post that question in the specific distro if you cannot find GUI tools).

This last one:
* Add appropriate user(s) to Administrator group if needed
is a bit different. Linux has a "root" user, i.e. Admin, but it has power to do EVERYTHING so you do NOT want to give that password/rights to really ANYONE but the system maintainer(s). You can make diff groups and give rights to file access/prog execution to those groups, but do NOT make them a part of the Root group!

Good luck, I hope this helped a bit!
 
Old 06-07-2005, 02:41 PM   #5
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
oops. Run [partimage] and then save the file to a disk/cd (might need to boot back into the regular install to do so). Then, using the live cd AND THE DISK WITH THE FILE THAT YOU CREATED AND COPIED, rerun [partimage] and use that prog to install the image.

An image can be created of any partition, not just the install partition, but that is what you were asking about.
 
  


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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
cloning disk using cp - no special devices for target disk vulture99 Linux - General 6 05-08-2005 05:36 PM
Cloning boot disk using DD vanibhat Linux - Hardware 3 12-01-2004 03:35 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
Disk Cloning sts_cat Linux - General 1 03-24-2003 11:30 PM


All times are GMT -5. The time now is 10:07 AM.

Main Menu
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