I found a solution so I thought I would share it. A friend suggested that I use this:
cp /dev/hda /dev/hdb
And to adjust for the correct device name.
To anyone whom may be able to help:
I just recieved my replacement Maxtor drive, which will be replacing one that is failing evey few days. Reading through the faq did not answer my question, so I am posting it here.
I have two drives installed on my system. One is brand-new and has not been used (not even formatted) while the other is my old Debian Linux drive. Both drives are of the same make and where produced by the same company. With my Knoppix v3.4 live cd running, how do I copy the old drive's image onto the new drive? My goal is to have an exact copy of the old drive, before it becomes un-usable.
Please note that so far I have only found instructions on how to do this over a network, which is problematic, because I need to do this locally.
Thank you for your time,
-Xeoron
I found a solution so I thought I would share it. A friend suggested that I use this:
cp /dev/hda /dev/hdb
And to adjust for the correct device name.
You may want to try this instead. From a root shell type:
dd if=/dev/hda of=/dev/hdb
If you just use "cp" it will only copy over the data(I'm pretty sure anyway), if you use "dd" you will get an exact bit for bit copy of it, including your partition tables and everything.
dd will only work well if the disks are same size, and i would use cp -a /dev... that would preserve permisions... better.
I would mark all directories with mc, and copy (preserving attributes).
Then I would modify lilo.conf, and rerun lilo for booting from the new drive.
Assuming you have only one partition and use the lilo - bootloader.
that would work. MC uses cp -a for that...

Supermicro MicroBlade MBE-314E-420 3U Enclosure 14x Dual Xeon Blades Untested
$1199.00
Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR
$140.00
Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working
$149.99
Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric
$174.99
Supermicro 4U 32x 3.5 Bays 4-Nodes | 8x E5-2660 v3 2.6Ghz | 64gb RAM | 9207-8i
$699.99
NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER
$1499.97
Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis
$274.99
Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Empty Chassis XJ6VP
$149.99
NEW Cisco UCSB-5108-AC2 Blade Server Chassis 8 Slot 6RU Chassis 4 X PSU - DW
$599.40
Supermicro 938-16 16-LFF MicroCloud SuperServer 5038ML-H8TRF *No Blade Servers*
$134.99