Results 1 to 6 of 6

Thread: cloning locally-- please help

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    2

    cloning locally-- please help

    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

  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    2
    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.

  3. #3
    Junior Member registered user
    Join Date
    Aug 2004
    Posts
    18
    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.

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    dd will only work well if the disks are same size, and i would use cp -a /dev... that would preserve permisions... better.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    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.

  6. #6
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    that would work. MC uses cp -a for that...

Similar Threads

  1. Cloning a hard disk
    By ferrel in forum General Support
    Replies: 2
    Last Post: 07-02-2005, 01:39 PM
  2. Disk Cloning?
    By eon in forum General Support
    Replies: 6
    Last Post: 04-02-2005, 11:14 AM
  3. cloning HD using Knoppix
    By drjawn in forum General Support
    Replies: 10
    Last Post: 01-17-2005, 12:23 PM
  4. Networked disk cloning HOWTO?
    By MethodMan in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 08-30-2004, 09:25 PM
  5. Cloning a harddisk
    By Balaam in forum General Support
    Replies: 15
    Last Post: 04-07-2004, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



DELL PowerEdge R730XD 24x 2.5

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 picture

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 picture

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 picture

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 picture

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 picture

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 picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R710 2.5

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 picture

1U Supermicro Server X10DRU-i+ 2x Xeon E5-2676 V3 12 Core 32GB 4x 10GBE-T 2PS

$249.00