LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2010, 09:17 AM   #1
gdanko
LQ Newbie
 
Registered: Feb 2007
Posts: 28

Rep: Reputation: 15
cloning a drive with dd


I have a Shuttle XPC with 3 drives. /dev/sda is a 320GB SATA drive with a basic installation. Two partitions, a swap and the rest is on /. The other two drives are 1.5TB SATA configured as a software mirror as /dev/md0.

I want to use dd to clone the 320GB boot/OS drive to a 750GB SATA I have at home. Last night I put the 750 in a USB enclosure and at about 6:00 PM fired off: dd if=/dev/sda of=/dev/sdd

It's now 7:16 AM and the dd is *STILL* going. Is this unusually long to clone the drive? Is there any way to check the progress or a way to launch dd with a progress indicator?
 
Old 01-20-2010, 10:46 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
First thing: you don't really want to overwrite a 750 like that.
Just dd the partition across. 2nd: use a sensible blocksize, by
default dd will try to write the copy byte by byte which makes no
sense on a block-device (bs=2048 or bs=4096 are a good starting
point). 3rd: read the dd man-page. It gives you an EXAMPLE on how
to find out what kind of progress it has made.


Cheers,
Tink
 
Old 01-20-2010, 11:23 AM   #3
gdanko
LQ Newbie
 
Registered: Feb 2007
Posts: 28

Original Poster
Rep: Reputation: 15
1) So I should partition the target disk first and then dd the partitions?
2) Check
3) Will do
 
Old 01-20-2010, 01:11 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by gdanko View Post
1) So I should partition the target disk first and then dd the partitions?
You could - that should save you the need to fix the
partition table afterwards. Make sure that the partition
on the new disk shares the same metrics.

Quote:
Originally Posted by gdanko View Post
3) Will do
Sweet :}


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cloning a sata drive bicolano53 Linux - Hardware 4 04-18-2007 08:00 AM
Cloning onto drive that already has data tredontho Linux - General 5 07-26-2006 04:17 AM
Need help in cloning drive raddad51x Fedora 1 05-16-2006 01:31 AM
Cloning a hard drive davcefai Debian 3 11-28-2005 05:36 PM
Cloning Hard Drive rls Linux - Software 3 08-23-2003 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration