Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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

  3. #3
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    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.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  4. $spacer_open
    $spacer_close
  5. #4
    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.

  6. #5
    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
  •