dd is a common Unix program whose primary purpose is the low-level copying and conversion of raw data.

learn more… | top users | synonyms

180
votes
10answers
156k views

How do you monitor the progress of dd?

dd is a wonder allowing you to duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of it's progress. It just sits there ...
43
votes
5answers
5k views

What does the command name “dd” stand for?

I'm using dd to copy an image onto a USB. But what does dd stand for? I understand its use, but not what the name dd actually means, or is an acronym for. It doesn't even say in the man page.
41
votes
5answers
37k views

Mount single partition from image of entire disk (device)

I made an image of my entire disk with dd if=/dev/sda of=/media/external_media/sda.img Now the problem is I'd like to mount an ext4 filesystem that was on that disk but mount -t ext4 -o loop ...
30
votes
1answer
30k views

What's the difference between ddrescue, gddrescue, and dd_rescue?

The dd command is commonly used to make image backups of a drive or partition. However, it performs poorly if the source drive is unreliable or failing. I read that ddrescue/dd_rescue is a good tool ...
20
votes
6answers
17k views

How would I speed up a full disk dd?

I am doing a dd on two identical drives with this command: dd if=/dev/sda of=/dev/sdb bs=4096 Both hard drives are the exact same model number, and both have 1TB of storage space. /dev/sda uses a ...
17
votes
11answers
40k views

How to clone to a smaller harddisk?

How to clone a harddisk to a smaller sized one. Clonezilla is great but it doesn't support such functionality. Also dd and PartImage don't support this demand. rsync will not copy the MBR since an ...
17
votes
4answers
28k views

How can I know how long `dd` cloning will take?

I have to dd a couple of 1TB hard drives. They are taking several hours to clone and I was wondering if there was any way possible of knowing how fast they are going, how much they have done and how ...
13
votes
6answers
22k views

is 'dd' command taking too long?

I set up dd to clone a smaller system 40.00GB hard drive (/dev/sda) to a new bigger 111.00GB one connected via a USB reader (dev/sdb) and Its been going for two hours now. The activity meter on the ...
13
votes
1answer
14k views

Why dd is not a reliable command to write bootable .iso files to USB thumb drive?

As the answers here indicate Ubuntu .iso s are not expected to boot if copied with dd to a USB thumb drive. Now my question is why is so that some Linux distributions have the option to directly write ...
11
votes
5answers
4k views

Is there a way to recover files from a storage device partially overwritten with dd?

I'm an idiot, I was writing an image to a USB drive using dd when instead of typing /dev/sdb I typed /dev/sdd and wrote the 135mb image to my 750gb External Hardrive full of files. Is there ANY ...
10
votes
3answers
420 views

Could it be possible to make a hot copy of a system?

I'd like to backup my system without turning it off. The system clone should also able to run in an other machine. I've tried to "dd" the entire system partition on another disk, after that I'm ...
7
votes
4answers
2k views

Drive reporting incorrect free space

So I swapped my shiny SATA SSD for an even shinier PCI-E SSD. I run my core OS on the SSD because it's silly-fast. I did this on my old SSD so I created a new EXT4 partition and then just dded the ...
6
votes
1answer
9k views

How to create a complete recovery Image for my new netbook

I just got a new acer netbook, it comes with windows 7. I wanted to know how I could create a recovery image using tools like dd. I want to know what command creates the exact backup of the hard disk ...
6
votes
2answers
794 views

Burned CD-R are not identical to the input iso image, why?

I have the issue that sometimes when I burn an iso image to a CD-R with: sudo wodim -v driveropts=burnfree -data dev=/dev/scd0 input.iso And then read it back out again with: sudo dd if=/dev/cdrom ...
5
votes
2answers
4k views

Is my command to clone a drive optimal?

I have done half an hour reading around to prepare to clone my hard drive. It has multiple partitions, including a Windows partition. I am going to buy a very large external hard drive for the ...
5
votes
1answer
30k views

How do I use dd to clone an external USB drive installation to a local hard disk?

can I use the dd command to clone my ubuntu installation from my external disk to my local hard drive. will it even boot? I think I can, but not sure. do I need to make the output partition on my ...
5
votes
1answer
3k views

Copying root partition and /home to a new larger hard drive

I am getting a larger hard drive and would like to copy root directory to it. The partition for root is 20G. I would like to make it larger on the new drive. I also would like to copy /home to a ...
4
votes
6answers
636 views

Create Random non words [closed]

dd if=/dev/urandom of=a.log bs=1M count=2 Question: if this code ^ gives me random numbers, how can I get random non-words (unintelligible) such as “hgcqw”. Question 2: Can the shuf command be ...
4
votes
4answers
11k views

Possibility of recovering files from a dd zero-filled hard disk

I have "zero filled" (complete wiped) an external hard disk using dd, and from what I have heard: people said you should at least "zero fill" 3 times to be sure that the data are really wiped and no ...
4
votes
3answers
9k views

Mount sd-card image (created using dd)

I have created an image of my Raspberry Pi SD-card using dd: sudo dd if=/dev/sdf of=/home/myusername/raspberry-backup-2014-04-10.img The SD-card includes two partitions (one vfat, one ext4) which ...
4
votes
3answers
3k views

How to recover data from a failing hard drive?

An external 3½" HDD seems to be in danger of failing — it's making ticking sounds when idle. I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious ...
4
votes
1answer
139 views

How do i avoid starting dd over again after a system freeze?

Some days ago I decided to wipe my 750 GB hard disk in order to sell it, so I booted Ubuntu off a live DVD and started the process with sudo dd if=/dev/zero of=/dev/sda. I left dd running during the ...
3
votes
3answers
200 views

Syncing dm-crypted drives?

I have 2 usb sticks, 8GB each: usb1 = /dev/sdb usb2 = /dev/sdc usb1 is a full dm-crypted drive and I am currently using usb2 as a backup, just incase usb1 fails. I am cloning usb1 to usb2 using ...
3
votes
1answer
8k views

When cloning ext4 partition with the “dd” command to a bigger partition free space doesn't increase [duplicate]

Possible Duplicate: Drive reporting incorrect free space Recently I've been trying to clone my hd using dd tool. Everything was ok, as cloning ntfs partitions but when it comes to ext4 - dd ...
3
votes
3answers
4k views

Why can't Mint boot my cloned Ubuntu partition? (UUID issue)

I've been running Ubuntu 10.04 and just installed Linux Mint 13. I may go with Linux Mint full-time, but for now I wanted to install it to the first partition, but keep Ubuntu bootable. Device ...
3
votes
2answers
935 views

How do I do a raw write to a cd with dd?

How do I do a raw write to my CD drive /dev/scd0? I want to write a bootloader (that takes two sectors) directly onto a CD, is this possible?
3
votes
3answers
2k views

How to make a USB drive bootable after live image is copied into it using `dd` command?

I was unable to create live USB drive using dd command while unetbootin works. The former method used to work fine on the particular USB Drive. Is the USB drive filesystem corrupted? If yes, how do I ...
3
votes
1answer
41 views

How to copy directories and files from a corrupted harddrive?

I have an I/O error every time I copy folders and files from a partition to a backup harddrive . So how can I safely backup this data to my backup HDD?
3
votes
1answer
2k views

How to recover from wiping by dd a partition table on external disk?

Yesterday I used dd to write an OS into my Raspberry Pi flash card. Even though all my commands ( I checked history ) were for /dev/sdd which was the flash , when I checked my external drive(500GB) ...
3
votes
2answers
423 views

GPT PMBR size mismatch after dd clone

I am migrating my Ubuntu EFI boot system to a larger hdd. I used the command dd if=/dev/sdb of=/dev/sda I did not dismount the inputfile before copying and the outputfile was fresh unpartitioned ...
3
votes
1answer
872 views

How to make DD make a copy of my iPod's harddrive into my computer?

I'm trying to do this, I'm sure you don't wanna read all that then I'll make a resume on it: A file was accidentally deleted on a iPod4, I need to recover it and I've been able to do all the process ...
3
votes
1answer
316 views

What is the best value for the bs option of dd command?

I am using the dd command for the first time, so I am wary, I've reading articles in wikipedia but have some unclear part, so I am asking here, is bs option matter? If I set the wrong number, would ...
3
votes
2answers
98 views

Used dd to backup a disk, now want to look at the filesystem

I dd copied /dev/sdd sudo dd if=/dev/sdd of=backup.img sudo fdisk backup.img Command (m for help): p Disk backup.img: 143.3 GB, 143274860544 bytes 61 heads, 35 sectors/track, 131069 cylinders, ...
3
votes
1answer
480 views

How to fix HDD after doing a dd cloning

So yesterday I received a HDD that was used for cloning, the whole thing went like this: An HDD of 1TB which had 120GB used was resized to 140GB. After that they did the following: sudo dd ...
3
votes
3answers
3k views

Can't boot after a dd, BIOS reports no bootable drives

I bought a new computer, removed the Windows disk (as usual) and installed 2 brand new 3TB drives. Installed 11.10 from USB stick, apt-get updates and favorite installs, everything was fine. Then I ...
2
votes
1answer
11k views

How to write image to SD card

I am following the RidgeRun documentation: How to boot a board from a SD card. I disable Nautilus from auto-mounting file systems to avoid a possible race condition and build the SD card image. I am ...
2
votes
1answer
594 views

Error, even with sudo: “dd: failed to open ‘/dev/sda1’: Permission denied” (dd input piped from gzip)

My command which doesn't work: sudo gzip -dc sda1.image.gz | dd of=/dev/sda1 returns the following error even before I've had a chance to enter my password: dd: failed to open ‘/dev/sda1’: ...
2
votes
1answer
183 views

How can I archive dd's output directly possibly without using any compression?

It has been determined already in this question that tar cannot read input from stdin. How else can a dd output be archived directly possibly without using any compression? The purpose of doing ...
2
votes
2answers
1k views

Can I cancel dd command and rebuild partition table?

I am attempting to fix the partition table on a 1 TB hard drive. GParted on my live disk sees the drive as being "2 TiB"... It is clearly labelled as 1 TB on the outside. I started a low level ...
2
votes
2answers
1k views

Permission denied using dd to clone main drive

So I'm trying to clone the setup of one computer to 4 identical machines on the same network. I don't fancy the idea of meddling with the insides of the computer, so I'm following the method outlined ...
2
votes
1answer
306 views

Using the dd command on external hard drive with partitions

I want to write a .raw file to the first partition of my external drive. I tried: dd if=file of=/dev/sdb3 but it didn't give me a bootable drive since the correct command should had been: dd if=file ...
2
votes
2answers
344 views

GZip of drive image created by using `dd` command

I created yesterday a drive image using GZip. I opened the 51.3 GiB file named ssd.img.gz to see one icon thats a package of 3.9 GiB, yes, thats THree point Nine Gigabytes in size and has the name of ...
2
votes
3answers
296 views

dd image size - does it equal the size of the partition?

I am using dd to create an image of my boot partition on Ubuntu 14.04. This is my first time doing this. In checking the usage on my disk, I used df -h. You will see that my /dev/sda1 partition is ...
2
votes
1answer
9k views

steps to create DD image file from usb and restore image to a DIFFERENT usb

I have successfully (file created, ubuntu does NOT issue any error messages) created an image from an entire persistent ubuntu live usb.(sdc1) - the file ubuntu1.img is 4.3gb so it is reasonable to ...
2
votes
1answer
201 views

Ubuntu hdd not correct size

I am running ubuntu 12.04 64bit. I used the dd command to clone my 80gb drive (filesystem) to a clean 500gb. It worked flawlessly. Afterwards , I took out the 80gb and replaced it with the new 500gb. ...
2
votes
1answer
10k views

Mount raw dd images using GUI/Nautilus the same way as an ISO file (double-click, no sudo, eject button, etc)

I have some raw partition images created using dd this way: dd if=/dev/sdXY of=/path/file.img I know I can mount them using: sudo mkdir /media/mountpoint sudo mount -o loop /path/file.img ...
2
votes
2answers
177 views

Is there a faster way to only occupy disk space than dd [duplicate]

In order to test that our systems correctly detect that they are running out of space, we just need large files on the disk where we do not care about their content at all. At the moment we use dd ...
2
votes
1answer
2k views

fallocate failed: Operation not supported

When running, fallocate -l 10G /path/to/file I'm returned the following error: fallocate: file: fallocate failed: Operation not supported Creating the file using dd (if=/dev/zero or ...
2
votes
1answer
62 views

Trouble with simple script :(

Could someone please tell me why this script doesn't run correctly. Seems to be a problem with the if statement as i keep getting the error: /home/sinttx/Development/backup/ddbackup.sh: line 18: ...
2
votes
1answer
508 views

GNU ddrescue imaging results — 116 errors a lot?

A little background on this. It's an 256 GB SSD drive with Windows SP3 32-bit and it's encrypted with PGP Whole Disk Encryption. The file system is corrupt and unreadable. I first ran Clonezilla to ...