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 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS
$712.98
DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED
$299.99
H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W
$2812.18
Dell PowerEdge R7525 Server 24X2.5(8XNVME)+H745 2xEPYC 7302 CPU 128G RAM 2x2400W
$3350.00
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Dell PowerEdge R230 Single Intel Xeon E3-1220 v5 @3.00GHz 16GB RAM No HDD H330
$102.50
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
Dell PowerEdge R710 2.5" 2U Server 2x X5670 2.93GHZ 12-Core 128gb 2x 1TB SAS
$214.99
1U Supermicro Server X10DRU-i+ 2x Xeon E5-2676 V3 12 Core 32GB 4x 10GBE-T 2PS
$249.00