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

learn more… | top users | synonyms

1
vote
0answers
15 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 ...
-3
votes
1answer
24 views

How to fix the checksum on Kali Linux 2.0 light? “No DEFAULT or UI configuration directive found!” [on hold]

I have a Toshiba Satellite L300 with multiboot, Win7 Enterprise 32bit, and Ubuntu 14.04 LTS 32bit. Already tried to make a bootable Kali on a 8Gb usb drive with various methods on both OS. On Win7 I ...
274
votes
14answers
292k 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 ...
1
vote
2answers
47 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
27 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 ...
0
votes
3answers
53 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 ...
0
votes
0answers
61 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 ...
60
votes
6answers
61k 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 ...
-1
votes
0answers
23 views

How can I get ``dd`` to skip unallocated space?

I'm virtualizing my current install before setting up 16.04. Manually backing up and eliminating what I could, my current partition table looks like this: /dev/sdb1 fat32 EFI Boot ...
0
votes
1answer
31 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
49 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 ...
3
votes
3answers
52 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
24 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
12 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
371 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
31 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
16k 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
19 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
97 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: ...
1
vote
1answer
49 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?
0
votes
1answer
36 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 ...
1
vote
2answers
81 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 ...
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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
78 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
47 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
66 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
85 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 ...
0
votes
1answer
39 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 ...
33
votes
7answers
37k 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
168 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
16k 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 ...
0
votes
3answers
1k 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
23 views

Cloning SD Card Problem

After Cloning a 32GB to 32GB in Ubuntu using dd the cloned one will not mount. Any help would be appreciated.
0
votes
1answer
89 views

flash drive at half capacity after 'dd image' format

Yesterday, I wanted to try out Ubuntu, so i torrented Ubuntu 15.10 (I got the torrent file from ubuntu.com) and I used Rufus to format my 32gb flash drive. it then said that it had to "dd image ...
21
votes
11answers
68k 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 ...
1
vote
1answer
54 views

Accidentally Wiped Root Partition - System Still Running

Alright, this is one of those times when I am are saying... Breathe deep, don't panic. What happened? As a usual part of leisurely tinkering with my system, I was trying write a 24.5 MB img file to ...
0
votes
2answers
116 views

Is there a faster way to erase a pen (USB) drive using dd command? [duplicate]

I am using the dd command to erase a pen drive with this: sudo dd if=/dev/zero of=/dev/sdd bs=4k && sync where /dev/sdd is the designated device. The pen drive is 16GB in size and this ...
6
votes
1answer
40k 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 ...
0
votes
0answers
48 views

Ubuntu losetup command does not mount the image of sd-card

I have used the gdiskdump tool to create a dd image of my 2gb sd card. And used losetup command to create a loop-back device. Usually when i used only dd command from terminal, and then used losetup, ...
0
votes
2answers
43 views

How can I efficiently format my Ubuntu Live USB to a FAT32 partition?

Consider the following situation: $ sudo fdisk -l [sudo] password for user: Disk /dev/sda: 320.1 GB, 320072933376 bytes ------------%<----------------------------- Disk /dev/sdb: 160.0 GB, ...
2
votes
2answers
33k 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 ...
3
votes
3answers
4k views

USB Disk stuck in read only after dd an ISO

This has probably been asked before but I have not been able to find it so I'll ask again. Here's what I did: sudo dd if=./windows.iso of=/dev/sdb #sdb is a 64gb USB disk Afterwards I was unable ...
1
vote
1answer
154 views

Format usb linux Western Digital external disks

How can I format an external USB drive? I have a Western Digital external usb which adds automatically a virtual read-only CD partition which prevented me to run the standard ways to format a disk. ...
3
votes
0answers
76 views

How to recover my files after executing “dd” [duplicate]

I switched to Ubuntu, someone helped me migrate from Windows to a machine with Ubuntu installed. Someone recommended this as a tip via e-mail: This will double the speed of your computer: sudo ...
0
votes
1answer
171 views

I want to write all zeros to my hard drive, so I can re-install windows 7

I am booting from an Ubuntu CD on my laptop. I want to write all zeros to my hard drive, then re-stall Windows 7. I have backed up all the files I want to. After booting up, I open a terminal window, ...
3
votes
0answers
302 views

How to use a `dd if=/dev/sda of=/dev/sdb` drive?

Given: a sudo dd if=/dev/sda of=/dev/sdb duplicate drive of the main boot drive. How does one safely, reliably : mount a dd duplicate drive as a second drive? setup the dd duplicate drive as ...
3
votes
4answers
4k 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 ...
1
vote
1answer
202 views

pv permission denied, but dd works without error [duplicate]

pv is program running above dd. I am cloning my old HDD onto new SDD I bought. It's 500GB of data. I tried to run the following command to copy sda to sdb: ubuntu@ubuntu:/$ sudo pv < /dev/sda > ...