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

learn more… | top users | synonyms

0
votes
0answers
11 views

How to decrease dd output size via defragmenting and zero fill empty space

I want to make backups of a whole hdd using dd, unfortunately backup sizes matter I use the following commands to ensure compression and splitting (fat32 habit, since you cant save anything more than ...
2
votes
2answers
28 views

How to find card reader block device?

I am trying to make an image from USB Card Reader using dd. When I connect device, this is what the log tells me: Aug 21 11:26:50 acid kernel: [ 1399.579168] usb 1-1: New USB device found, ...
1
vote
1answer
115 views

Manually installing an ISO onto a USB?

I'm trying to install TAILS. I've downloaded and verified it and everything and I'm on to installing it. I want to install it manually onto a USB stick. The TAILS website doesn't have any instructions ...
1
vote
2answers
57 views

Preventing the dd command on extra drives

I use dd a lot day to day for writing Raspberry Pi SD card images. However every now and then I slip and by accident dd the wrong partition and thus killing my other drives. I was wondering if ...
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 ...
1
vote
0answers
25 views

DD command to copy broken drive HELP! [closed]

I want to copy the data of a broken hard drive to an other. Arrive to the conclusion: dd if=/dev/disk2 of=/dev/disk3 bs=4k conv=notrunc, noerror but here is the answer: dd: unknown conversion ...
0
votes
1answer
24 views

Do I have to unmount the drive when using dd command?

I have a 60 GB SSD where my Ubuntu installation and home folder is and a 1 TB HDD that I used to use as storage device (movies, music..). I have decided to sell the 1 TB drive but before I do that I ...
-2
votes
1answer
61 views

dd: failed to open ‘kali-linux-1.1.0a-amd64.iso’: No such file or directory

I'm trying to create a Kali Bootable USB Drive on Ubuntu 14.04 LTS following these instructions -> http://docs.kali.org/downloading/kali-linux-live-usb-install Everything seemed alright till the ...
0
votes
0answers
55 views

Mount raw disk image

I want to mount all partition of a dd image in actually partition to my Ubuntu I want to it like same as a actual disk /dev/sdx , /dev/sdx1 , /dev/sdx2 & etc. I try to mount image with: ...
1
vote
2answers
16 views

How does dd write to a device node when you usually can't?

Now usually you'll have a partition on your USB drive or whatever, and you can only write things to there. But dd has the ability to write things outside of partitions, presumably in the MBR. How does ...
1
vote
0answers
62 views

Making a backup copy of the DVD “Iron Man 2”

I am trying to make a backup copy of my DVD Iron Man 2 (I live in a country where it is OK). This particular DVD has special tricks to prevent buyers from doing that (see dicussion for Mac). I ...
1
vote
3answers
2k views

Issue creating bootable USB using dd command

It's a while that I'm trying to create a bootable USB drive with a Windows on it. I first tried with Unebootin unsuccessfully, I reckon the reason is the fact that the last version doesn't support any ...
1
vote
1answer
97 views

Permission denied for “dd” of Android phone's file system connected over mtpfs in Ubunutu 14.0.4

I have connected my rooted Mi3 android phone to Ubuntu 14.0.4 using jmtpfs. I am using ~/Desktop/phone as my mount point. I am able to browse the Android device using Nautilus. Now I want to recover ...
0
votes
1answer
13 views

Write to a non-existant device using dd

Hello I wanted to write an iso image to an USB stick (which is in /dev/sdd) but I've made a slight typo, instead of typing: dd if=/path/to/downloaded.iso of=/dev/sdd I typed: dd ...
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 ...
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 ...
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 ...
0
votes
3answers
196 views

SD Card Slot doesn't work

Alternative way to earn the bounty: Show me how to store a file system like ext4 (a FS which can store large files, I don't really need all of the good stuff ext4 provides for this use case) in many ...
0
votes
0answers
19 views

dd if=/dev/sdX of=image conv=notrunc,noerror,synv copies only a fraction of disk

I tried imaging my bootable usb stick, to free it for other data. However running sudo dd if=/dev/sdc of=windows7 bs=512 conv=notrunc,noerror,sync copies only 1.1GB for a 8 GB (7.7GibiByte) stick. ...
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.
1
vote
2answers
4k views

How to use the dd command to copy the content of a folder

I'm trying to use the dd command to copy the content of the folder boot0 to the my disks intial bytes. This is the command : sudo dd if=boot0/ of=/dev/sdb ibs=440 obs=440 count=1 But I get this ...
0
votes
1answer
82 views

Does dd or shred do any harm to the physical media of a hard disk?

Does dd or shred commands only overwrite the data and the filesystem or do they change or modify the physical media of the hard disk? Because I know that I can format a hard disk millions of times ...
0
votes
0answers
117 views

Cannot format read-only USB; 'Error calling fsync(2) on /dev/sdb: Input/output error ' when I try to format the drive

I'm trying to format this USB, when I plug it in it mounts and I can read what's on it, but can't write to it or delete anything (read-only error). First I tried the normal 'Disk utility' - unmount - ...
0
votes
2answers
128 views

Can't erase everything (partition/data) on sdcard, even with dd

I have a Kingston sdcard (16g) with partition and data written on it. here is the output of root@victor-ss9:/home/victor# fdisk -l /dev/sdf Disk /dev/sdf: 15.6 GB, 15560867840 bytes 4 heads, 16 ...
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 ...
1
vote
1answer
28 views

I ran “dd if=file1” on accident and gibberish started flowing - Bad?

I ran "dd if=correctfilelocation" on accident before I was able to add in the second half of the command and gibberish text in terminal started going crazy. Did I break anything? The file was an OS I ...
0
votes
1answer
49 views

Cloning SSD with dd But Clone Does Not Boot

At my job we have always used dd to make clones of our master os image, but recently we have updated from Ubuntu 12.04 to 14.04. We made an image of it and created a news SSD with it. sudo dd ...
1
vote
0answers
56 views

Create exact copy of compact flash with encryption with dd

I have a touchscreen system that's using some sort of encryption on a compact flash card to run it's OS. The card died, but I have access to identical machines. But when I try to copy the cf with DD ...
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 ...
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 ...
0
votes
1answer
133 views

Lost disk space after DD

I've made a typo while doing: $ sudo dd if=/dev/zero bs=1MiB of=/host/ubuntu/disks/root.disk conv=notrunc oflag=append count=2048 $ sudo losetup -c /dev/loop0/ $ sudo resize2fs /dev/loop0 In first ...
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 ...
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 ...
1
vote
0answers
23 views

Unable to login after dd clone

I have a test system with two 80GB drives: /dev/sda has Windows7 installed on it and /dev/sdb has Ubuntu 14.04. I imaged the Ubuntu drive to a third USB HDD using dd if=/dev/sdb ...
0
votes
0answers
105 views

DD doesn't seem to work in Ubuntu 15.04

I have used the dd command for a while to add my bootloader to a floppy image created with mkdosfs. mkdosfs -C disk_images/aquaos.flp 1440 dd status=noxfer conv=notrunc ...
0
votes
0answers
30 views

thumb drive went in to read only mode, no idea why?

It's almost brand new, suddenly sudo dd if=/dev/zero of=/dev/sdd bs=512 count=1 dd: failed to open ‘/dev/sdd’: Read-only file system tried with sudo hdparm -r0 /dev/sdd /dev/sdd: setting ...
2
votes
1answer
590 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’: ...
0
votes
1answer
169 views

Problem with DD & Startup disk creator

I want to create a bootable USB drive for Chromium OS. I downloaded this image (direct link) and I want to put it on my 4 Gb USB. The IMG file is 2.6 Gb and my USB is 4 Gb, so there is space for the ...
0
votes
1answer
56 views

What is the best way to clone a disk?

My guess is that dd if=/dev/sda of=/dev/sdb bs=4096 will work out well for me. I have some concerns though: What is the ideal bs size? Is it advisable to use a live cd? I simply don't want to ...
1
vote
2answers
2k views

Cloning with DD command

How can I backup a partition (not the whole disk) to another partition on an external hard-disk using DD? I achieved this with the following command: sudo dd if=/dev/sda6 of=/dev/sdb3 bs=1M ...
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 ...
2
votes
1answer
91 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 ...
1
vote
1answer
56 views

Using dd to test Write speeds

I'm trying to check the write speed of different devices that I have using the following: dd bs=1M count=256 if=/dev/zero of=/path/to/device oflag=dsync I want an accurate reading of write speed ...
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 ...
1
vote
1answer
103 views

How do I DD backup the Microsoft Surface onto a Image file? Has anyone done this and restored it successfully?

I normally back up my PCs with a disk dump. Its effective but slow, but required for us. I usually do something like this: dd if=/dev/sda bs=512k of=/mnt/MyUsbStick4TB/BackupOfMyCDrive_sda.dd Can ...
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?
0
votes
0answers
59 views

Complete I/O error HDD after doing dd

Ok, before reading this, I just want to say that this is not a duplicate post. I once owned a Seagate Momentus Thin 500GB that contains Windows 8. After messing up a bit, it restarted and what I saw ...
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 ...
1
vote
1answer
37 views

System hangs after being restored from dd backup

I've been using Clonezilla for weekly image backups, which is obviously a little bit of a hassle. I've been trying to switch to dd, so I can have cron run it for me. This is what my backup script ...
1
vote
0answers
40 views

Restoring backup from dd image has really weird results

I've been using Clonezilla for weekly image backups, which is obviously a little bit of a hassle. I've been trying to switch to dd, so I can have cron run it for me. This is what my backup script ...