Find the answer to your Linux question:
Results 1 to 7 of 7
Please forgive me for this seemingly petty question. I googled around and have done some reading. I just want to make sure I understand this thing correctly and I feel ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229

    dd command confirmation please

    Please forgive me for this seemingly petty question.

    I googled around and have done some reading. I just want to make sure I understand this thing correctly and I feel there is no better way to confirm than to hear it from the people who taught me.

    Code:
    dd if=/dev/sda of=/dev/sdb
    If I am cloning my whole Hard Disk /dev/sda with its partitions, to another Hard disk of the same capacity, /dev/sdb. I would be getting a perfect clone of my /dev/sda, meaning, I get all data; my partitions are preserved; and get to use exactly the same distros including XP.

    Is that correct please?

    Thanks in advance!
    nujinini
    Linux User #489667

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Quote Originally Posted by nujinini View Post
    I googled around and have done some reading. I just want to make sure I understand this thing correctly and I feel there is no better way to confirm than to hear it from the people who taught me.

    Code:
    dd if=/dev/sda of=/dev/sdb
    If I am cloning my whole Hard Disk /dev/sda with its partitions, to another Hard disk of the same capacity, /dev/sdb. I would be getting a perfect clone of my /dev/sda, meaning, I get all data; my partitions are preserved; and get to use exactly the same distros including XP.
    Yes, that should do it:

    Code:
    dd if=/dev/sda of=/dev/sdb
    You can find more options for use of the dd command by running man dd from the terminal.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Thanks for putting the right title and putting the post in the right place Oz!
    nujinini
    Linux User #489667

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    After cloning a disk, and as a safety precaution, I always like to test the new drive to make sure all is working properly before reformatting or deleting the contents of the previous drive.

    It's just something that you might want to consider doing.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Quote Originally Posted by ozar View Post
    After cloning a disk, and as a safety precaution, I always like to test the new drive to make sure all is working properly before reformatting or deleting the contents of the previous drive.

    It's just something that you might want to consider doing.
    Yeah I agree! Thanks again!
    nujinini
    Linux User #489667

  6. #6
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    351
    My take a look at
    Learn the DD command

  7. #7
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Quote Originally Posted by Lostfarmer View Post
    My take a look at
    Learn the DD command
    Bookmarked! Thanks
    nujinini
    Linux User #489667

Posting Permissions

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