Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-26-2009, 08:37 PM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Rep:
|
Strange DD Speed Problem
I am often creating clones of hard drives and I have come across something I don't understand. If I DD to a hard drive that has been previously used, the DD takes about 35 minutes. If I clone to a completely brand new drive, the DD takes over 100 minutes. If I immediately run the DD command again, on the same set of drives, the DD now only takes 35 minutes. Why are brand new drives causing the DD to take 70 extra minutes?
|
|
|
10-27-2009, 02:04 PM
|
#2
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
what happens if you delete all partitions and dd it again
is it slow again?
|
|
|
10-27-2009, 05:42 PM
|
#3
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
I have not tried that. I'll try that some time this week. How would I delete all the partitions?
|
|
|
10-27-2009, 08:22 PM
|
#4
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
Quote:
Originally Posted by benchmarkman
I have not tried that. I'll try that some time this week. How would I delete all the partitions?
|
fdisk
|
|
|
10-30-2009, 04:57 PM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
So I cleaned the drive before DD and it only took 40 minutes. I'm really confused why would a brand new drive cause DD to take twice as long. I've reproduced this more than 10 times so I know it wasn't random.
|
|
|
10-30-2009, 05:07 PM
|
#6
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
Quote:
Originally Posted by benchmarkman
So I cleaned the drive before DD and it only took 40 minutes. I'm really confused why would a brand new drive cause DD to take twice as long. I've reproduced this more than 10 times so I know it wasn't random.
|
maybe there is some sort of first time use setup? i do not know.
|
|
|
10-30-2009, 05:23 PM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by smeezekitty
maybe there is some sort of first time use setup? i do not know.
|
I thought DD was straight dumb copy to copy ?
|
|
|
11-07-2009, 07:10 AM
|
#8
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
Nobody has a reasonable explenation on what I am seeing?
|
|
|
11-07-2009, 12:35 PM
|
#9
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
I'm not sure exactly why DD does this, but I do know new drives are written many times with solid binary 1s (ones), or 0xff, over the entire drive. Whereas a used drive has all the free space written as binary zeroes. The DD buffers may be choking on the binary 1s. DD buffers every block 4 times for each read/write. It could be a programming flaw. The other thing is if MSWindows was installed on the drive, DD won't overwrite the whole drive on the first try. If you DD a drive with zeroes, but Windows is on the drive, parts of the drive won't erase until the second time you run DD. Windows has some way of causing this to happen. I never did figure it out. So, the way around the Windows problem is to run DD for a count=10,000, several times in a row, reboot, and run a full DD.
|
|
|
11-07-2009, 01:31 PM
|
#10
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by AwesomeMachine
I'm not sure exactly why DD does this, but I do know new drives are written many times with solid binary 1s (ones), or 0xff, over the entire drive. Whereas a used drive has all the free space written as binary zeroes. The DD buffers may be choking on the binary 1s. DD buffers every block 4 times for each read/write. It could be a programming flaw. The other thing is if MSWindows was installed on the drive, DD won't overwrite the whole drive on the first try. If you DD a drive with zeroes, but Windows is on the drive, parts of the drive won't erase until the second time you run DD. Windows has some way of causing this to happen. I never did figure it out. So, the way around the Windows problem is to run DD for a count=10,000, several times in a row, reboot, and run a full DD.
|
Thanks for the reply. It's not a windows thing because the drivers are brand spanking new. Have you ever encountered this problem yourself? Is there anyway around this?
|
|
|
11-07-2009, 01:48 PM
|
#11
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
maybe dd is buggy?
|
|
|
11-07-2009, 02:52 PM
|
#12
|
LQ Newbie
Registered: Feb 2006
Posts: 18
Original Poster
Rep:
|
If thee was a bug in dd this significant wouldn't other people have experienced this problem? It seems like nobody else is having this problem.
|
|
|
All times are GMT -5. The time now is 04:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|