LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2002, 10:06 AM   #1
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31
hd image RH 7.3


Ok here is the deal: I just got a good dual MP server running RH 7.3, Apache, PHP.....etc and I would like to make a Hard Drive image of everything done to it, so that I can put in a better HD (this one seems flakey) It is imparative that I get an bootable image so that I can just plug in the new HD and get everything to work. Any suggestions or links?
 
Old 08-21-2002, 04:41 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
I presume that the new harddisk is NOT exactly the same model as the old one (that is, doesn't have the same disk size and geometry, heads, cylinders,...). If it is, and only then, the easiest is to make a true image dump, that is, a block-by-block copy of the whole thing.

dd if=/dev/hda of=/dev/hdb bs=16K

would do the trick. That'll take a night or so. I use that on occasion for new machines with the same disk. Since it's a low-level block by block copy, the result is bootable again.

But usually the disks are not the same (you buy two Maxtors two months apart, and they are different). In that case, get a bootable CD (e.g. from my very own http://www.phenix.bnl.gov/~purschke/RescueCD/ project, which outlines a task like yours in rough stitches. It has all the utils you need).

Make the NEW disk /dev/hda (or whatever it will be later when it boots), important. Boot from the CD. Make partitions and file systems matching the ones on the old disk. Mount the matching partitons one by one, and tar or cp -a the contents over. It's a good moment to review the space allocations of the partitions and give, say, a bit more to /usr if you need. After this, you have a (not yet bootable) copy of your old disk.

Now mount the partition that has the /etc/ and /boot directory (to get at the kernel and lilo.conf), say the mount point is /ndisk, then do

lilo -r /ndisk

and you are done. In order for that to work, the disk must already have its eventual identity (usual as /dev/hda). Before you reboot, don't forget to umount the mounted partitions.

Though a bit more complicated, it's actually a lot faster than the dd method (if you could use it in the first place) since you only copy the actual data and not the whole disk, block by block.

This is also the way I make full system backups; I tar all partitions to a backup. In case of a disaster, I redo the disk with the same method except that the source is not the existing disk but the tar files.

Good luck,
Martin
 
Old 08-21-2002, 04:54 PM   #3
fool_inteligent
Member
 
Registered: Jun 2002
Posts: 91

Rep: Reputation: 15
use norton ghost .
just a suggestion.
 
Old 08-21-2002, 06:18 PM   #4
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Original Poster
Rep: Reputation: 31
Thanks alot man I glad that you took that much time to help me, I will try all of this out and let you know what heppened.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
convert DVD image to CD image vibhory2j General 2 11-22-2005 10:31 AM
Kernel-image renamed to linux-image? powadha Debian 2 08-02-2005 05:07 AM
Can I Convert DVD image to CD image? bnchakraborty Linux - Software 1 07-22-2005 01:17 AM
Setting X boot image, and loading image untwisted Linux - General 2 03-09-2004 07:40 PM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:22 AM.

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