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

learn more… | top users | synonyms

141
votes
10answers
119k 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 ...
35
votes
4answers
29k 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 ...
26
votes
1answer
27k 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 ...
18
votes
6answers
9k 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
4answers
25k 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 ...
15
votes
10answers
30k 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 ...
12
votes
1answer
13k 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
3k 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
5answers
18k 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 ...
10
votes
3answers
399 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
2answers
684 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
3k 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
27k 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
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 ...
5
votes
1answer
2k 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
4answers
10k 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
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
111 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
7k 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 ...
3
votes
1answer
7k 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
851 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
1answer
32 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
3answers
176 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
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
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
2answers
157 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
782 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
236 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
87 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
400 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
158 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
721 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
1answer
285 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
1answer
91 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
2answers
137 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
160 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
192 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
9k 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
128 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
58 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
6k 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
237 views

dd decreased the size of ssd

My 32 Gb ssd was partitioned with 8 Gb and 29 Gb. I used dd to write ubuntu iso onto my pendrive but accidentally wrote it to my 8 gb partition of my ssd. Now gparted dosent show that 8 Gb partition. ...
2
votes
1answer
141 views

1:1 Backup of System on USB Thumb Drive

I installed Ubuntu 12.04 from a USB drive to a USB drive (16 GB) and configured it to my needs. Now I'd like to have a 1:1 backup of the system on the USB drive and was wondering on how to accomplish ...
2
votes
1answer
287 views

Is it possible to use DD to obtain splited images from a hard-drive?

My piano teacher asked me to record one of his recitals with his iPod (3-4 generation, not so sure) and I did it. While trying to edit it, he accidentaly deleted it, I'm trying to recover. After some ...
2
votes
2answers
6k views

Write dd image to disk

Before I installed Ubuntu on my old computer, I took backups of both partitions with dd. Long story short: I now want to restore these two files, XP.dd and Storage.dd, to the computer again. How do I ...
2
votes
1answer
43 views

Creating an SD disk image from scratch: “you must specify a filesystem type”

The really short version: I am trying to create a disk image that includes an MBR/bootloader provided in another image, and one partition with a root filesystem provided in a tarball. Creating the ...
2
votes
1answer
61 views

How to restruct RAID 10?

We would like to alter the partition without losing data. Here is the sketch of the plan. I am wondering if it is doable using mdadm; and if so, please kindly point some reference on how to carry out ...