Okay: 1. Boot from a Redhat rescue disk or Mandrake rescue disk or some other kind of bootable CD or floppy that has mount, tar, mkfs for your filesystem, fdisk etc. 2. Mount both disk drives (I assume the new drive is partitioned and formatted) 3. CD to the original drive 4. Run the tar command from below 5. Chroot to the new drive 6. Run /sbin/lilo or whatever you need to run to rebuild the boot record on the drive 7. Test it before you announce that it's good.
Enjoy -- Arik -----Original Message----- From: Amir Spivak [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 1:47 PM To: Arik Baratz Subject: Re: Hard Disk mirroring i want to copy all the contents of the old HD into the newly mounted drive, so in the case of failure of the old one i can just install the newly mounted one and everything will work. ----- Original Message ----- From: "Arik Baratz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 1:30 PM Subject: RE: Hard Disk mirroring It really depends on what you're trying to do. If you want a logical copy, you can use the ol' tar trick: tar --preserve --one-file-system -cf - | (cd /mountpoint ; tar --preserve -xf -) If you want a physical copy, you can do: mount /mountpoint-of-old-disk -oremount,ro dd if=/dev/old-disk-dev of=/dev/new-disk-dev This will probably mess up your patrition table on the new disk, you'll have a partitioning scheme the same as the old drive, but it's good for backup. If you are worried about a disk failure, you can leave both disks in the machine and run them in RAID-1 mode using raidtoold or mdadm. There's a procedure to be followed for adding another disk to an existing one and creating a mirrored pair without destroying your current copy, at: http://linas.org/linux/Software-RAID/Software-RAID-3.html (read Q 10 and the reply) http://unthought.net/Software-RAID.HOWTO/Software-RAID.HOWTO-4.html#ss4.14 - older but still true The mdadm tools are better and newer. Some of the stuff I have linked to refers to raidtools which are older. -- Arik -----Original Message----- From: Amir Spivak [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: Hard Disk mirroring Hi, I have a server which i want to copy in case of a HD failure, the way i want to do it is just copying all its contents to a new HD that i will mount on the server, after mounting, i want a utility that will mirror entire HD to it in the simplest way possible, thx. ********************************************************************** This email and attachments have been scanned for potential proprietary or sensitive information leakage. PortAuthority(TM) Server Keeping Information Inside Vidius, Inc. www.vidius.com ********************************************************************** ====================== To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] ********************************************************************** This email and attachments have been scanned for potential proprietary or sensitive information leakage. PortAuthority(TM) Server Keeping Information Inside Vidius, Inc. www.vidius.com ********************************************************************** ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]