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

learn more… | top users | synonyms

0
votes
1answer
33 views

Can't find the file specified

So I inturrupted a dd for windows operation, and now my usb stick won't work. I saw this post but, it's solution doesn't work for me, as i don't have a chromebook. Attempts to format the drive just ...
0
votes
2answers
3k views

Make Live USB with dd

The last time I booted from USB was back in 2006. Ever since, I keep failing at making live usb bootables. I tried getting Fedora 18, Ubuntu, and ton of other distros to boot from USB and never ever ...
1
vote
1answer
18 views

dd aplied to dev USB before connect corrupt /dev/sdX and dont work

I have a USB where I'm coping an ISO of 5 Mb aprox with a small OS with its own grub. If I connect the device and check it sudo fdisk -l I get: ... Device Boot Start End Sectors Size Id Type /...
8
votes
2answers
27k views

What does dd conv=sync,noerror do?

So what is the case when adding conv=sync,noerror makes a difference when backing up an entire hard disk onto an image file? Is conv=sync,noerror a requirement when doing forensic stuff? If so, why is ...
2
votes
2answers
3k views

Is it possible to mount a disk image, created with dd, to a directory on a mounted external usb hdd?

I have an image of my home (/dev/sda3) partition, which I've created using the "dd" command. dd if=/dev/sda3 of=/path/to/disk.img I've deleted the home partition via gparted in order to enlarge my /...
1
vote
2answers
739 views

512B to 4KiB (Advanced Format) HDD cloning with dd

What is the best practice to clone with a dd an existing 512-bytes-per-sector HDD (whole disk, not specific partitions) to a modern 4-kibibytes-per-sector Advanced Format drive? What options should be ...
31
votes
5answers
34k views

How Do I Find The Hardware Block Read Size for My Hard Drive?

I'm trying to figure out the optimal size for a large copy from my hard drive using dd. I'm trying to figure out what the best blocksize to use it, which I would assume is the hardware block size for ...
9
votes
3answers
15k views

Can I expand the size of a file based disk image?

I created an empty disk image using dd, then I used mkfs to make it a real filesystem image. I am mounting and using it fine. What I need is to be able to expand or shrink this file based disk image ...
1
vote
1answer
25 views

Shrink total disk image: UEFI GPT Flashdrive - freespace at end

I have a disk image from a bootable flashdrive. It is GPT for EFI booting, so there is a small Vfat32 partition and three other Linux partitions, followed by about 3G of free space. I need to disk ...
0
votes
0answers
29 views

dd'ing images onto an SD card

I have a somewhat weird situation I'm trying to dd an OS image (something which I dd'ed off a card earlier) onto an SD card. The card capacity is 8GB and the image was made off an SD card of similar ...
1
vote
3answers
84 views

Mount or open disk I backed up with dd

I used the command dd in order to generate a full copy of a disk (a SD card). Now I'm trying to retrieve the information that was stored in there, but I don't know how to read the contents of the file....
2
votes
1answer
39 views

How to Move / Migrate a Hard disk with multiple bootable partitions to Larger size?

Currently I am using a 320gb hard disk on my laptop. I have a newer 500gb one. I decided to migrate the 320gb HDD and its contents into the 500gb one. Problem is that my 320gb HDD has multiple ...
3
votes
1answer
648 views

Two 2TB drives, why is dd is almost 8 times faster erasing one?

I have two 2TB drives: /dev/sde WCD WD20EZRX-00D8PB0 Firmware revision 80.00A80 (new consumer-grade WD Green series) /dev/sdf WCD WD2002FYPS-01U1B1 Firmware revision 04.05G05 (old pro-grade server ...
0
votes
1answer
55 views

Writing .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....
0
votes
1answer
607 views

Hard drive checking by using dd and md5sum tools

I bought new external USB 3.0 hard drive WD Elements 2 TB and decided to check it by using dd, head and md5sum tools. First I zeroed all hard drive: root@yurko-laptop:/home/yurko-laptop# dd if=/dev/...
0
votes
2answers
2k views

How do I make a USB flash drive writable on Linux?

I want to reformat a SanDisk Cruzer Edge USB flash drive but it appears read-only: $ sudo dd if=/dev/zero of=/dev/sdg dd: failed to open ‘/dev/sdg’: Read-only file system I checked the readonly ...
5
votes
1answer
1k views

Accidentally dd'ed an image to wrong drive / overwrote partition table + NTFS partition start

I screwed up and set the wrong output for dd when trying to copy a freenas ISO, overwriting the wrong external hard drive. External drive is only used for data storage, system is entirely intact ...
1
vote
2answers
961 views

how to recover data from my disk - I accidentally copied with dd an iso on it

I wanted to create a bootable USB from an ISO image and I accidentally put as the output of the dd, instead of my usb drive, one of my hard disks. The ISO was 3,3 GB and my disk is 1TB! And it was ...
0
votes
0answers
28 views

I accidentally broke my 1tb drive during a dd iso image to a usb thumb drive [duplicate]

Which method suits most useful for this kind of situation. It took me 8-10seconds until i realized i was doing dd on the /dev/sdb instead of sdc and i guess that means 100-150mb of new stuff is ...
3
votes
2answers
226 views

Accidentally overwrote wrong disk with dd, how to recover?

I wanted to dd an image from sdb to sdc, but because one hour before I had set up things differently, I just copied the same command: dd if=/home/user/Downloads/ubuntu.iso of=/dev/rsdb bs=2M; sync ...
0
votes
2answers
61 views

Recovering an HDD after using dd on it

I accidentally used dd on my HDD (/dev/sdc) when I wanted to put an ISO on a USB drive. I tried looking around and read that if the data was overwritten then I'm screwed.... Is there a way to ...
3
votes
2answers
874 views

Checking if any data exists on a presumably empty storage device

So, say you've completed a full pass of: dd if=/dev/zero of=/dev/sdX bs=1M Then, you'd like to make sure the destination has been really zeroed out (ignoring the confirmation messages from dd ...
1
vote
3answers
1k views

How do I wipe a USB drive using dd on cygwin on Windows?

I am trying to use dd to wipe a usb drive using Cygwin on Windows. What should I use for the of argument? dd if=/dev/null of=?
22
votes
6answers
37k views

How can I find what /dev my DVD-drive is?

I'm on Mac OS X, have a DVD in the DVD-drive and can look at it in the Finder. I'd like to try to create an iso of it by using the dd command. But to do that I need to know what device to use as an ...
6
votes
2answers
13k views

How to resize img file created with dd?

I have a DD image from a 4GB SD card that has two partitions, these two partitions are only using up about 800 MB and as such I wish to reduce the size of the img fie. Does anyone know of a way to ...
0
votes
1answer
91 views

Remotely monitoring the status of DD

I have a long dd process running on a Debian system from the local console. I know that I can send USER1 or CTRL+T on the local console, but my only means for the time being is to monitor it via ...
3
votes
5answers
2k views

bash - test if disk is unparitioned

I'm currently working on a DIY network storage which aggregates free disk space using mhddfs. Now what I want is, for example given a hotswap bay, when I insert a brand new unpartitioned disk, I wish ...
0
votes
2answers
55 views

Time Machine size explodes when copied to new drive

I'm trying to replace a 640GB USB2 drive which I use as my Time Machine backup device with a 1TB FireWire 400 drive without losing the current backup history. Given that the 640GB drive is nearly ...
1
vote
0answers
201 views

Install Remix Os to SSD drive using dd

I have successfully unlocked my Baytrail chromebook and I am able to run Remix Os from an USB stick. Now I would like to install it as the default operating system on the SSD. Knowing that Remix Os ...
1
vote
0answers
66 views

Move HDD dd image to Raid-0 Fake Raid array

I recently robbed a spare 120Gb SSD from an old laptop with the intention to throw it in my desktop machine that had an existing SSD hdd of the same size. My goal was to make a dd copy of my existing ...
0
votes
1answer
27 views

Weird speed measurement of ZFS over AFP file copy

I've been checking how fast is my ZFS storage server. I have some big files (>30 GB) and I've been using dd piped to /dev/null to check read speed. When running dd for a specific file for a first ...
1
vote
1answer
88 views

dd clone HD to SSD?

I have a home machine running windows 7, and i'm wondering if it would work to do a dd if=/dev/${oldSataSpinningDisk} of=/dev/${newSSD} to clone the contents of the current system running on a SATA HD ...
19
votes
6answers
56k views

How to create VHD disk image from a Linux live system?

Once more, I have to resort at the experts here at SuperUser, as my other sources (mainly Google ;-)) didn't prove very helpful... So basically, I would like to create a VHD image of a physical disk ...
10
votes
3answers
15k views

How can I mount a disk image?

I have a disk image myimage.disk which contains the partition table and a primary partition (i.e. a FAT32 filesystem). Think that as a USB pen image. I want to mount the primary partition to a local ...
0
votes
0answers
47 views

Cloned Linux Mint Root parition to a new disk - won't boot

I used gparted and dd to clone a failing drive's root & swap partitions to a new drive. First I used gparted to copy and paste the root partition into a larger partition, gparted said it resized ...
1
vote
3answers
90 views

dd - how to extract a subsection of a file with 2 offsets?

I have a file that I want where the starting byte offset is 3020852 and the ending byte offset is 13973824. There's some variation of this command: dd ibs=X obs=Y skip=1 count=1 that I haven't got ...
37
votes
3answers
102k views

How to create a bootable USB from a bootable ISO with the command line on Linux?

I have a CD that's created from an ISO file which I use to install a custom version of Ubuntu via plop linux. The cd works fine but I'd like to use a bootable USB drive instead. I used the command dd ...
3
votes
2answers
1k views

Faster recovery from a disk with bad sectors

Recently I tried to dd from an unhealthy HDD to a file. I used dd if=/dev/sdb of=somefile bs=4096 conv=noerror,sync. My problem was that dd wasted a lot of time when it encountered a bad block. In my ...
0
votes
1answer
28 views

Retrieve data from a mountable partition refusing `cp` but allowing `dd`

Recently, my internal drive failed after a manual reboot and I would like to retrieve the data before changing it. My computer is a Macbook Pro mid-2012 and the drive is formatted as HFS+. (From my ...
1
vote
1answer
98 views

How to read an dar archive via LTO-6 tape

The /data folder was saved on tape with dar -R /data/ -c - | mbuffer -R 110M -P 90 -m 1G | dd of=/dev/nst0 bs=256k How can I test, list and extract it? I tried the following to test the archive ...
17
votes
6answers
15k views

How to use Cygwin to copy an image from an SD memory card

Long story short, I'm working on a Windows 7 machine and I'd like to strip the image off an SD card (backing up the card from a Raspberry Pi). I'm trying to use Cygwin, but not having much success. ...
1
vote
0answers
39 views

Data recovery on flash drive showing incorrect size

I have a Kingston 32gb USB 3.0 flash drive that I need to recover data from. The problem is that the drive is now showing as 32.5kb of raw storage in Ubuntu (using gparted) and Windows is not ...
15
votes
3answers
21k views

How to pad a file with “FF” using dd?

How to pad a file with 0xFF using dd? This command will pad the output file with zeroes until the file size reaches 100 KB: dd if=inputFile.bin ibs=1k count=100 of=paddedFile.bin conv=sync However,...
0
votes
0answers
31 views

ISO of not recognized DVD

I'm often dumping DVDs to ISO-files for backup by using dd on my linux machine. But now I've got a DVD in a filesystem that linux doesn't recognize. Still, I want to dump it's data in an *.img-file, ...
1
vote
2answers
74 views

In which case should I prefer dd over GNU ddrescue?

As far as I can see, comparing dd with ddrescue can be concluded saying that ddrescue is far better at rescuing data from broken data sources. dd does not have this ability. dd_rescue vs dcfldd vs dd ...
6
votes
1answer
4k views

Attempting to access RAM /dev/mem… says “Operation not permitted”

I am using Ubuntu 12.04 I read the following tutorial on how to access the contents of RAM in Linux.... http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/ Code: dd if=/...
8
votes
2answers
24k views

windows equivalent for dd

I need to read and write various flash card images. The way i always did this in linux was with dd, and that did the trick. What is a good windows equivalent? Simply put, i need to be able to read an ...
0
votes
0answers
79 views

readom and dd are creating different ISO-Images

When I am making an ISO-Image from a disc, according to the MD5-Hash of the created file, there is a difference between the data. They also differ in size. Tested on two completely different devices. ...
4
votes
2answers
4k views

How to get Linux to be loaded to RAM?

I'm soon to acquire several new computers on the grounds that I wipe their hard disks. I don't need the drives to be randomized, just zeroed out with dd. How can I can boot Linux from a flash drive ...
13
votes
4answers
46k views

How can I clone a hard drive directly to a vdi image

I would like to make a VirtualBox .vdi image out of my hard drive. I've found howto's online that describe doing this by first usind DD to create a .raw image, then using VBoxManage to convert the ....