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

learn more… | top users | synonyms

93
votes
10answers
71k 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 ...
24
votes
4answers
18k 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 ...
24
votes
1answer
22k 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 ...
16
votes
4answers
20k 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
4answers
1k 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 ...
11
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
3answers
372 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 ...
9
votes
10answers
12k 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 ...
6
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
618 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
3answers
12k views

is DD 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 ...
5
votes
1answer
22k 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
8k 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
8k 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
1answer
2k 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 ...
4
votes
4answers
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 ...
3
votes
3answers
3k 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
714 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
123 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
1k 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
1answer
647 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
124 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
55 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
292 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
2k 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
6k 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 ...
2
votes
2answers
176 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
3answers
3k 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 ...
2
votes
1answer
262 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
3answers
49 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
181 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
8k 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
1answer
49 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
206 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
131 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
234 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
5k 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
50 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 ...
2
votes
2answers
493 views

Backup SSD as image

I want to backup an existing SSD on a new notebook with a pre-installed Windows, Recovery Partition, ... before I wipe it and install Ubuntu on it. (It is too small for a dual-boot) Until now I have ...
2
votes
0answers
246 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 ...
1
vote
2answers
62 views

Why is dd creating an enormous file when I try to create a backup disk image?

I've been trying to get CUDA to work on my system and in the process of messing with nvidia drivers I have broken ubuntu badly enough that I've had to reformat my drive partition multiple times. I've ...
1
vote
3answers
246 views

System backup with dd to external hdd

I want to backup my whole system. I am wondering if the dd command is a good choice for that. dd if=/dev/sda of=/dev/sdb For example: /dev/sda is my system partition (partition is on a ssd if that ...
1
vote
2answers
16k views

How do I fix an Input/Output error using dd?

Hi i'm Trying fixing my Windows 7 system with a broken harddrive, but it's still running. I'm trying copy all data to a new drive to reinstall Windows 7. Drive called SQSERVICE. I can't copy at all ...
1
vote
1answer
54 views

Cloning a USB stick

make a dd backup of the dm-crypt usb and rest the test the backup I know I can make a copy of a usb stick using the following sudo dd if=/dev/sdb of=~/USB_image and then restore it using ...
1
vote
2answers
364 views

Cloning with DD command

How can I back-up a partition (not the whole disk) to another partition on an external hard-disk using DD? I achived this with the following command: sudo dd if=/dev/sda6 of=/dev/sdb3 bs=1M ...
1
vote
2answers
202 views

Backing up with dd

I follow the instruction in this post, using the command dd if=/dev/sda1 | gzip > disk.img.gz but the imaging does not seem to stop. Is it because the disk.img is being put (as default) in my ...
1
vote
1answer
429 views

Cloning Ubuntu over network

I want to migrate with my 12.04 to another machine. I have found the way with dd and hope it will work for me. The thing is that I have to somehow connect both drives to do the actual cloning. I'm ...