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

learn more… | top users | synonyms

1
vote
2answers
500 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 ...
1
vote
1answer
187 views

Bootable linux backups without DD

I'd like to backup the state of my system. It only runs Manjaro. What I've done in the past when I need to install something else on the machine temporarily is just to dd the whole drive to a file ...
1
vote
0answers
56 views

Mac/PC hybrid CD ISO to USB? [duplicate]

I have a once-a-year project that I work on around this time every year, which consists of a set of HTML and CSS files (kind of like a saved copy of a website) that get distributed on professionally ...
0
votes
2answers
424 views

Any way to make partitioning tools see kpartx-created devices?

I have a dd'ed disk image file with me. I can use a tool like kpartx to create a device-mapper device from this disk image file. But partitioning programs like gparted and fdisk don't list my ...
1
vote
2answers
887 views

hdd recovery: can I speed up dd?

I am currently trying to recover a hard drive I accidentally formatted, but am of course, using dd if=/dev/sdb of=/dev/sdc conv=noerror,sync to make a backup to work on first. I have two questions, ...
1
vote
3answers
2k views

Installing Freenas on an SSD

Just wondering if anyone here has installed Freenas on an SSD. I know its meant to be on a USB pen drive. But Ive got a spare 64Gb SSD that I can install Freenas on and id like may be other stuff to ...
0
votes
1answer
149 views

Created image of single partition from Imac harddrive using dd - how to mount?

Alright, you'll have to forgive that I don't have an abundance of knowledge with using these tools. I've tried to follow the tips provided in this thread: How to mount a HFS partition in Ubuntu as ...
0
votes
0answers
61 views

Why cannot dd write more than 790 MB of null bits?

Using dd to fill a 250 GB partition with 0-bits, I cannot have more than 790 MB written. dd is run from GParted LiveCD. I tried all these: dd if=/dev/zero of=/dev/sdb2 dd if=/dev/zero of=/dev/sdb2 ...
4
votes
3answers
740 views

How to tell if you have a fake sd card

I've been given some flash drives that appear to be fake. The silk screen says 64 gigs, and they show up as 64 gigs to the OS. However if you attempt to write any files larger than 4 gigs the file ...
30
votes
2answers
16k views

Why is “/dev/rdisk” about 20 times faster than “/dev/disk” in Mac OS X

According to the rasbery pi documentation, You can load your OS to a flash card with either /dev/disk or /dev/rdisk. rdisk stands for raw disk. /dev/disk is a block level device, why would rdisk ...
0
votes
1answer
2k views

Windows 7 on GPT partitioned SSD backup using dd

i have a SSD device as primary sata hard drive witch contains my os. On this device i have Windows and Linux Mint installed. Now i want to make an image of my windows installation so that i can ...
-1
votes
1answer
252 views

what are the types of error messages that dd outputs? [duplicate]

What are the error messages that dd outputs? I tried to look at manual, but it does not say anything about it. Or I do not know how to look at manuals (man). Edit: OK. I'll make it simple: what error ...
2
votes
1answer
213 views

What happens if dd encounters errors while output of dd is being piped to gzip?

Suppose that dd if=/dev/sda bs=100M | gzip -c > somefile.img.gz is done. If errors occur in dd, do I get to see error messages in terminal, or do they get ignored? Also, suppose that dd ...
4
votes
1answer
15k 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

DD: No Space Left On Device

I've been messing with an old Brother WP-2200 and I've hit a bit of a snag. I was hoping I would be able to make images out of the floppies I typed on it using dd under Linux. Unfortunately that ...
4
votes
2answers
24k 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 ...
0
votes
1answer
192 views

Rescue data from ext4 ISO image?

so, my SD card got broken and cannot be read completely (escpacially the directory I want to read from has problems). I was able to create an ISO image of the partition using dd but cannot mount it. ...
2
votes
2answers
6k 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 ...
1
vote
2answers
2k views

Clone hdd with bad sectors

I have a 250 gig hdd and a 240 gig ssd. I want to transfer the data from the 250 gig hdd to the 240 gig ssd. I have tried a variety of methods with no success: (keep in mind i can boot perfectly from ...
7
votes
1answer
8k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd ...
1
vote
1answer
586 views

Restoring a split image created by dcfldd

Say an image is generated by dcfldd using the following command: dcfldd if=/dev/sourcedrive hash=md5,sha256 hashwindow=10G md5log=md5.txt \ sha256log=sha256.txthashconv=after bs=512 conv=noerror,sync ...
0
votes
1answer
1k views

dd restore image to HDD (having issues)

I had made a complete image (at least I think I have) using dd if=/dev/sda of=/mnt/sda.img bs=32M where mnt is an external HD I use. I came to restore that image this morning, so I booted up on a ...
0
votes
1answer
130 views

How to do a 1:1 copy of a Windows HD [duplicate]

I have a Windows 7 installation on a separate HDD, since installing Windows takes at least half a day on my machine do to the fact that I have to install a big list of drivers, I would like to do an ...
0
votes
2answers
934 views

Can dd be used to make an exact disk image(copy) of HDD and SSD?

So I want to take a disk image of my SSD/HDD, but I want my disk image to be exactly the same as every bits/information of my physical hard disk. (so that if there are files deleted but recoverable ...
0
votes
1answer
79 views

Fedora restored from cloned image has broken image

Ive had the following issue. Yesterday Ive dd-ed a HDD with fedora 18 which was split in 3 parts: fedoras sda1 which was ext4, sda2 which was the LVM and sda3 which was ntfs storage partition. Ive ...
4
votes
1answer
196 views

Why is my 500GB hdd not readable after dd'ed on a different 500GB hdd?

Accidentally formatted an important external 500GB hdd yesterday. Not an SDD, 2.5". (Quick) formatting occured while installing windows xp on it. I had the wrong usb drive plugged in. ~600MB are ...
2
votes
1answer
279 views

Consequences of zeroing out a partition with dd

I have a partition called sdb1 formatted as ext4. The partition is currently mounted. If I do the following: dd if=/dev/zero of=/dev/sdb1 What are the consequences (beyond all data on the being ...
18
votes
2answers
50k views

creating a bootable USB from 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 ...
4
votes
2answers
143 views

Attempting to test an embedded nand flash chip by filling up a file to drive capacity

I'm trying to test an embedded nand flash chip using the dd command (write random data to a file): dd if=/dev/urandom of=/nand/storage/testnand/test.raw bs=100000 count=50 2> /dev/null However, ...
4
votes
1answer
123 views

What is the difference between byte sizes for DD

If I use the extreme byte size of 1 gb vs 1 mb for instance, on the hardware level, what is the difference? What does a byte size do if a constant stream of data is just getting written to the disk>?
1
vote
3answers
1k views

How do I image a 128GB drive to a 120GB one using Linux dd?

I have 2 SSD's. My system (Ubuntu 12.04) is installed on one and I want to clone it to another. The problem is that the system is currently on a 128GB drive and the new one is only 120GB. Is it ...
10
votes
6answers
1k views

What happens if I dd zeros to the drive where dd resides?

Will this command: dd if=/dev/zero of=/dev/sda bs=1M succeed if the dd command was originally on /dev/sda? Will this complete because dd is in memory at that time?
0
votes
2answers
497 views

Why does dd copy slower with really small and really big block sizes?

I have realized that if I use really small block sizes, the dd copy is slower, but if I use really big block sizes, it also is slow. I have found that 1M is optimum. Why is this?
1
vote
0answers
395 views

Clonezilla Disk too Small when it isn't

I took a 320 gig hard drive, shrunk the partition for Windows to 40 gigabytes, and cloned the partition. I'm trying to restore onto a 250 gig drive. I keep getting either a failed partition table, or ...
12
votes
6answers
8k 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. ...
0
votes
2answers
1k views

How come writing varying file sizes results in varying speeds? [duplicate]

Here is some output from the dd command: $ dd if=/dev/zero of=test.file bs=10M count=1 1+0 records in 1+0 records out 10485760 bytes (10 MB) copied, 0.130214 s, 80.5 MB/s $ dd if=/dev/zero ...
0
votes
1answer
417 views

dd cloned drive not recognised by Windows

I have a Lenovo Windows 7 laptop with an MBR hard drive I want to clone. I used a Linux (Kali, FYI) live USB stick, booted on the PC and used dd if=/dev/sda of=/dev/sdc bs=100M conv=notrunc to clone ...
3
votes
1answer
6k views

Use losetup and dd to make filesystems images ready to be deployed

Introduction Using dd, one can easily backup the MBR and partition table of a disk. It's as easy as: dd if=/dev/disk2 of=~/Desktop/disk2_mbr bs=512 count=1 One can also backup whole partitions: dd ...
1
vote
1answer
90 views

A bootable usb key prevent system to boot

I'm written a ChromiumOS image on an usb key with the command dd. When I boot my computer with the usb key plugged, the start-up blocks just after the line describing the cpu, so before I can select ...
0
votes
0answers
177 views

Linux command to get FAT32 sectors of a file

I'd like to find an equivalent command to debugfs but for FAT32 partitions within Linux. I need to list all the sectors corresponding to a specific file (I'm working on a disk imaged with dd). If ...
6
votes
3answers
13k views

Can I use dd to clone a larger SD card to a smaller SD card if the actual partitions will fit?

I have a 16GB SD card that has a few partitions on it (it's actually the card for a Raspberry Pi). I have several other 4GB cards that I want to clone the primary card to. The 3 partitions on the ...
2
votes
2answers
828 views

Can I clone a large hard drive (with little data on it) to a smaller hard drive (with no data on it) with “dd”? Is there a better way?

I recently got a new desktop, and two hard drives to go with it: a 128GB solid state drive, and a 750GB hybrid drive. I installed Windows to the hybrid drive, but have come to realize that it would ...
0
votes
1answer
189 views

how to dd capture partitions of a VMware Player VM

I have a Linux VM that runs in VMware Player. It has /dev/sda1 mounted as /boot and /dev/sda2 mounted as /. I want to use dd to capture both partitions. I now know from the answer to this post that ...
3
votes
0answers
3k 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 ...
2
votes
0answers
165 views

msys-1.0's dd on windows

msys-1.0 (MinGW) has an implementation of dd usable on windows (dd.exe) but windows does not have file representations of drives to use with dd. Or does it? Afaik dd operates on files. Is there a way ...
2
votes
0answers
74 views

dd backup produces bigger image file

I created a disk image with dd. The hard disk capacity is 2 GB. However, the image produced a 3.8 GB file. I used: dd if=/dev/mmcblk0 > /mnt/sd/disk0.img (where mmcblk0 is a microSD card, with 3 ...
0
votes
0answers
278 views

Operating System not found when loading DD image in VMware

I provide much details below to hopefully make my issue as clear as possible. Using dd if=/dev/ps3da2 of=/mnt/edexhdd/EDPS3LINUX.iso bs=16384 I copied a fairly huge partition from a physical Linux ...
2
votes
1answer
324 views

Are there any pitfalls to moving my Windows partition to a new hard drive using dd?

My current hard drive has an 80 GB NTFS partition running Windows (/dev/sda1) in addition to several Linux partitions. I purchased a new hard drive and want to move my Windows 8 partition to a new ...
1
vote
1answer
903 views

recover data after using dd command

Hi I have an Iomega HD for mac. I was writing a ubuntu server image to another drive but accidentally selected my 500GB Iomega with my files on it. The command I ran was: sudo dd ...
1
vote
1answer
272 views

Use ntfsundelete on dd image

I have a feeling the answer to this is right in front of me, but I am not seeing it. :/ I used dd to to create an image of a failing drive. Now, I would like to attempt to recover anything I can from ...