Find the answer to your Linux question:
Results 1 to 5 of 5
I want to use the dd command from a Knoppix 5.1.1 CD to clone one SATA HDD to another, larger SATA HDD. The drives are detected as sda and sdb. ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    15

    Identifying drives



    I want to use the dd command from a Knoppix 5.1.1 CD to clone one SATA HDD to another, larger SATA HDD.
    The drives are detected as sda and sdb.
    How can I be sure which is which? I don't want to clone in the wrong direction and lose all data.
    The HDD I want to clone is damaged and no partitions can be found. The target HDD contains no partitions.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    17,779
    Welcome to the forums!

    The fdisk command should list the drives and their partitions when run from a terminal:

    Code:
    fdisk -l
    That's a lowercase letter L, and not a number one in the command.
    oz

    new users: read this first
    no private messages requesting computer support - post them on the forums!

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,945
    If you are cloning a drive, I'd think the target drive would be empty and easy to identify or am I missing something here?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this. and the Forum FAQS.

  4. #4
    Just Joined!
    Join Date
    Oct 2009
    Posts
    15
    Thank you for your prompt replies.

    The command fdisk -l is producing no output.

    The target drive is empty, and when I attempt to open it I get this message:
    Could not mount device. The reported error was: I could not determine the filesystem type, and none was specified

    The problem is that I get the same message when I try to open the source drive. I know it contains data, but it has been corrupted.

    I want to use TestDisk to recreate partitions, but it specifically says that the disk should be cloned first.

  5. #5
    Just Joined!
    Join Date
    Oct 2009
    Posts
    15
    OK, I figured it out.

    I have to put: sudo fdisk -l

    Then I get to see details of all drives, including the size in GBs. I still think I'd be stuck if I were cloning to a drive which was exactly the same size as my source drive.

    Is there a definite rule, eg: the drive attached to SATA 1 is always sda, etc?

Posting Permissions

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