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

learn more… | top users | synonyms

4
votes
4answers
12k views

Creating a large size file in less time

I want to create a large file ~10G filled with zeros and random values. I have tried using: dd if=/dev/urandom of=10Gfile bs=5G count=10 It creates a file of about 2Gb and exits with a exit status '...
1
vote
1answer
86 views

Gdiskdump does not show harddrives, only partitions

I can see partitions but not even one harddisk. How can I see my harddisks and clone them?
294
votes
15answers
328k 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 ...
0
votes
2answers
28 views

dd: different unit for bs, skip and count?

I am trying to copy a partition from an entire disk image. This command is working: dd if=image.iso of=test bs=512 skip=1161215 count=32768 In order to increase the speed, I'd like to set a bigger ...
-3
votes
1answer
927 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 ...
9
votes
5answers
1k views

What happens when I use 'dd' to overwrite the disk from which Ubuntu is running?

What would happen if I use sudo dd if=/dev/zero of=/dev/sda from an Ubuntu install running from /dev/sda? I tried it in a VM, and it appears to correctly have wiped the disk. Will this be the ...
0
votes
1answer
30 views

Disk changes device path during copy, from /dev/sdc to /dev/sdd

I'm trying to clone the internal hard disk of my computer. I've booted using the 16.04 Live USB image and I can see 3 disks: /dev/sda # Internal SSD, copy source /dev/sdb # Live USB /dev/sdc # ...
64
votes
6answers
66k 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 /media/...
0
votes
0answers
24 views

I am trying to see progress of dd scrubbing operation. Bu tposted answers not working

I am not new to Linux but feel somewhat challenged anyway. Using HP dv6 running Ubuntu 14.04; I am scrubbing an 3.0 attached SSD and trying to monitor the progress. The command I run in second ...
1
vote
3answers
5k 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
2answers
23 views

pv process interupting password

So I'm trying to flash an SD card with a 7GB image and it's taking forever (like 15 hours plus), so I decided to set up pv so I could see the progress. The problem I'm running into is that as soon as ...
0
votes
0answers
15 views

clone lubuntu from 8gb image to 64 gb pendrive

I need copy img file (8gb) to pendrive 64 gb, I used ubuntu dd everything it's ok system boot normally, but I got only 2gb free space I need min 20gb, after I copied a image to pendrive I used gparted ...
1
vote
0answers
16 views

Using remaining space on a startup disk

While using applications like dd, Startup disk creater, etcher I can see that a lot of space on the startup disk is unusable. This is normally equal to the diskspace minus the ISO size. How can this ...
1
vote
2answers
160 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 ...
4
votes
3answers
342 views

Corrupt pendrive after making live Ubuntu installer

I have sandisk 8GB I had kali linux installed. I tried to create Bootable live Ubuntu pendrive. I went to the terminal and issued the following commands: sudo dd if=/dev/zero of=/dev/sdb bs=1k ...
0
votes
1answer
13 views

Fastest command to create a bit identical copy of a 4GB USB 2.0 drive

I have tried dd if=path_to_usb_drive of=path_to_copy_to, but it's too slow. How can this be speeded up?
0
votes
1answer
22 views

How to properly erase drive and start over after pv glitch?

I installed pv so I could check progress of a usb installation, and I began the process with sudo dd if= | pv | of=/dev/sdb. Well, it's supposed to ask me for my sudo password, but when I pressed ...
15
votes
4answers
2k views

Moving entire Linux installation to another drive

I have Ubuntu 14.04 with a lot of packages and work related stuff that I am very happy with it. It is installed on my main SSD drive which is a 120GB one (I had choosen "/" when I installed ubuntu, so ...
1
vote
1answer
24 views

Get exit status from Pipe contained in brackets

How do I get the exit status of a command in a pipe contained in brackets: (bzcat File_Here | pv -n --size "Size_in_Bytes" | dd of=/dev/sdX) 2>&1 | zenity --title="SD Utility - Write" --...
-2
votes
3answers
227 views

How to discontinue dd if the output file is /dev/sda? [closed]

It's not necessary to explain the surprise on running sudo dd if=/path of=/dev/sda sda or whatever the name of your HDD is. Is there a way in which I can stop that from happening? Answers can ...
0
votes
4answers
2k views

dd: Operation not supported (on unmounted, but not ejected drive)

I have looked through the other questions here on AU, and none of them seem to help me deal with this particular problem, so I am starting a new question. For some context, all I am trying to do is ...
0
votes
0answers
31 views

Cloning disk with DD, System says file is too large but ext HDD is larger

I'm trying to create an image of my hard drive so that in the event that I'm meddling with ubuntu something goes wrong, I can restore what I had previously. Currently, the disk I am copying from is ...
0
votes
1answer
27 views

dd command clones 10MB and stops

I am trying to clone old windows 8 HDD disk to new SSD. Both have the same capacity: 250GB The problem is that dd command stops quickly after copying 10MB only. Here is the output: root@x72j:~# dd ...
1
vote
0answers
35 views

Using zenity progress bar with bzcat to dd copy

I know there are ways to add a progress bar to dd, but I can't seem to get anything to work with my specific situation. Here is what I have so far: bzcat /file/path/goes/here.dd.bz2 | pv -n | dd of=/...
1
vote
2answers
58 views

How to dd from smaller SD to bigger?

I run out of memory (8GB) in one system, and I need to move the existing system to bigger memory (16GB). Details /dev/disk4s1 is the input i.e. from where I want to get the data /dev/disk2s1 is the ...
0
votes
1answer
36 views

Recover drive from corrupted `dd`

Two years ago I took my hard drive and zero-d out the drive using dd. However, I was a little impatient so I cancelled out the process and restarted the computer. The result is that I got an Input-...
0
votes
3answers
134 views

Use DD to clone only Linux partition to external USB drive?

I have a 1 TB internal drive that has two 1/2 TB partitions, one for Windows and the other for Ubuntu 14.04 LTS. The station has become primarily a Linux station and I never boot into Windows anymore....
0
votes
0answers
176 views

“isolinux.bin missing or corrupt” when trying to boot 16.04 from USB

I wiped my USB drive using GParted and then installed the Ubuntu 16.04 ISO to the drive using Disks (gnome-disks) by selecting the "Restore Partition Image..." option and then writing the ISO to the ...
0
votes
1answer
73 views

What is the format of .img files created by gnome-disk-utility?

In the built-in "Disks" tool (gnome-disk-utility), I am given the option to back up a partition with the "Create Partition Image..." option. If I select this, I am prompted for a filename, which has ...
0
votes
0answers
76 views

Writing ubuntu img to USB using dd results in corrupt primary GPT header

I have a 64GB USB 3.0 drive that I plan on installing bootable operating systems to for sysadmin purposes. My primary operating system is Mac OS X 10.11. I have a copy of ubuntu-16.04-desktop-amd64....
3
votes
3answers
67 views

how do i make shell ask for confimation for rm -rf command (even sudo)?

I want to make the command shell to prompt me for confirmation before execution of certain commands like dd , rm -rf etc.
0
votes
1answer
28 views

dd command failed!

I have a peculiar problem. I had a blackberry I used to encrypt the files and now I can't seem to remove the (encryption) password from the card. It always asks for the password when I put the card in ...
0
votes
0answers
18 views

Why Live Ubuntu terminal freezes at the end of disk cloning?

I had taken Ubuntu whole disk backup using dd command as: $ sudo dd if=/dev/sda* of=/dev/sdc* bs=512 conv=noerror,sync where /sda is computer harddisk and sdc is External Backup USB drive. Later I ...
1
vote
0answers
1k views

Ubuntu 16.04 not booting from USB

I tried to create a bootable USB for Ubuntu 16.04. When booting from the USB I only see a black screen with a blinking cursor though. Here are the different attempts I've tried: Download the Ubuntu ...
0
votes
1answer
44 views

is my flash drive broken?

I have usb flash drive which is not recognized when plugged in two of my pcs . Here is what happens when i plug the drive: [ 1809.142270] usb 2-3: New USB device found, idVendor=058f, idProduct=1234 [...
0
votes
1answer
17 views

Cutting out using DD command

I need to cut out a partition, using DD command. How do I achieve this? In my case I need to copy from block 205267 to (including this block) 29311545. The blocksize is 512 Bytes.
8
votes
4answers
18k 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 ...
0
votes
0answers
20 views

I broke /dev/sdb, after copy MBR from /dev/sda

I've used this command: sudo dd if=/dev/sda of=/dev/sdb bs=512 count=1 After system reboot, there are grub errors, and I can't login to root, only guest, and /dev/sdb can't load on grub. I have ...
-1
votes
4answers
206 views

dd command 'no such file or directory'

I am trying to put a .img file onto a sd card to later put onto a raspberry pi. I run the following command dd bs=4M if=~/Home/Downloads/kali.img of=/dev/sdb and the following result puts out dd: ...
0
votes
1answer
105 views

What is the difference in using cp and dd when cloning USB sticks?

I found that there are at least two methods to clone a USB stick: (with /dev/sdb as the source while /dev/sdc the target) Cloning with cp: sudo cp /dev/sdb /dev/sdc Cloning with dd: sudo dd if=/...
1
vote
2answers
152 views

How to clone entire hard-disk into new one?

I was use dd command to copy my 500GB hard-disk into my new 1TB hard disk. After 9 hours system display message everything was successfully copied but I can't display any data into my new hard disk. I ...
0
votes
1answer
60 views

Can the dd command be used to copy clone only certain folders?

I have a failing hdd, all I need from there is my music and movies folder, I have managed to copy all the other files from the failing hdd. But when I try to copy the above 2 folders, I get read write/...
0
votes
1answer
112 views

Not able to successfully flash Snappy Core image to BBB eMMC.Image too large?

I have tried several different methods, including the Feb 15 posted instructions by brechtvc. Every time, I have a space issue with the eMMC. The latest terminal output, using the brectvc method is: ...
0
votes
0answers
69 views

Unable to mount root filesystem after cloning volume with dd

I am trying to clone a Ubuntu install on an 8GB SD card. I created an image of the volume using dd, then copied this image onto another SD card using dd again. The SD card contains 2 partitions: a ...
0
votes
1answer
74 views

Create a bootable USB from iso file in Linux [duplicate]

Do you want to write your favorite Linux-iso to a USB-stick? Are you confused by all the forum posts on the internet? Below is the quick and mostly fail safe way to do it.
0
votes
2answers
151 views

Flash drive's capacity drastically reduced after dd [closed]

I'm currently using Xubuntu 14.04.4. I used the dd utility from a terminal to write a Debian ISO image to a flash drive (/dev/sdb). This is the command I used: sudo dd if=/home/eduardo/redebian/...
0
votes
1answer
53 views

Why must partition be unmounted before dd?

Why must partition be unmounted before using dd? For example, for copying an iso to a flash drive, we have to unmount the drive before we use dd. I've seen many places tell me to do this but never ...
34
votes
7answers
41k 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 ...
2
votes
0answers
270 views

How to upgrade coreutils from 8.21 to 8.24 in Linux Ubuntu 14.04?

I want to use the 'progress' status option with dd which is available with coreutils 8.24 up. Ubuntu 14.04 (Trusty) has coreutils 8.21 and the current (stable) release for coreutils is >8.24. I wish ...
15
votes
2answers
17k 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 ...