Find the answer to your Linux question:
Results 1 to 2 of 2
To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Location
    USA
    Posts
    2

    Cloning with the dd command - possible bad sectors problem

    To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command.

    Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening?

    A typical dd command I use looks like:

    dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror.

    Is this the recommended command for cloning to a disk of equal size?

    Thank you for the help.
    Ken Bank

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Is there a possible problem with the source being copied onto bad sectors on the destination disk?
    Yes.
    If so is there a way to prevent this from happening?
    Replace the disk.


    The command depends on the use case.
    If you want to preserve a snapshot of the original disk,
    then partimage or partclone might be of interest.
    Both copy only used blocks and can compress the image, so that it takes less space.
    You must always face the curtain with a bow.

Posting Permissions

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