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

learn more… | top users | synonyms

2
votes
2answers
414 views

Difference between DBAN and dd command to securely wipe a HDD

I have read about dd and see that it can be used to securely wipe a HDD. But there is also a program called DBAN to wipe the HDD as well. I know that using a live gnu-linux ISO I can wipe my HDD by ...
2
votes
2answers
2k views

dd command to create bootable iso image of hard disk

Is it possible to use the dd command to create a bootable ISO image? I use the following command to do it: dd if=/dev/sda of=/mnt/sdb/my.iso I am able to create ISO, however I am not able to boot ...
0
votes
1answer
198 views

Poor compression of compact flash image, even after 0 fill

Problem: I am attempting to create an exact image of a compact flash and then compress the compact flash image for easier storage. The compact flash is not full (~1.5GB used, 32GB size). The problem ...
0
votes
2answers
187 views

Using the dd command on external hard drive with partitions

I want to write a .raw file to the first partition of my external drive. I tried: dd if=file of=/dev/sdb3 but it didn't give me a bootable drive since the correct command should had been: dd if=file ...
1
vote
1answer
320 views

dd - just copy partitions

I have a SanDisk Extreme SD card contaning my Homeserver runing on the RaspberryPI. I want to move this sytsem to another 4GB SD card using dd. But unfortunaltely when I make an image via dd it has ...
3
votes
1answer
2k views

How do you create and partition a raw disk image?

I need to create a raw disk image for use in a virtual machine, but I need to create the partitions before creating the file system or installing the operating system. Can anyone describe a process ...
0
votes
3answers
439 views

How can I untar a filesystem backup into a VM disk image?

I've been provided a .tar.gz archive containing the files from a VM file system (but not the filesystem itself) and I need to untar these into a raw disk image so that I may mount them as a VM. How ...
0
votes
1answer
85 views

How to use dd to make splitted ISO images from an storage device?

This is a double question, I just hope it's valid. I need to know how to use dd to make splitted ISO images from some storage device, I'm doing it through SSH: the process is slow and the risk of ...
2
votes
2answers
473 views

linux DD disk backup - file smaller than disk?

I got small problem. I need to make a mirror of a disk. Zero it and then restore data. I'm using DD linux command to copy data to a file. sudo dd if=/dev/sde of=/media/Rozne-new/hitachi_disk2.img ...
1
vote
0answers
487 views

Recover hard disk from Raw format

I have been all over the web today with no results. So my drive was encrypted (truecrypt) the whole drive where windows resided. I decided to partition it to install W8 and forgot it was encrypted. ...
1
vote
1answer
239 views

Improve dd restore speed

Just now after waiting about 33 hours I finished restoring hard disk dev.pm.m3 resided on the LVM partition from previosly created zipped dump 5_dev.pm.m3_2012-11-03.gz. Here is its status: gzip -dc ...
0
votes
1answer
1k views

testdisk - recover partition table

I destroyed my partition table of my laptop. Testdisk reports the below Disk laptop.img - 250 GB / 232 GiB - CHS 30402 255 63 (RO) Partition Start End Size in sectors >P ...
2
votes
1answer
770 views

What does an asterisk “*” mean in hexdump output?

I print MBR with hexdump and I get the following output: 000001a0 67 60 6f 70 65 72 61 74 69 6e 67 60 73 79 73 74 |g`operating`syst| 000001b0 65 6d 00 40 00 63 7b da c5 f5 61 68 00 40 00 40 ...
0
votes
1answer
44 views

USB Flash over {H,S}DD

I have task to use 32Gb flash as place to install OS, so PC without hard drive load flash and can work(Not LiveUSB!). Of course, I can use generic install algorithm, but I have already a computer with ...
8
votes
2answers
2k views

How can I mount dd image of a partition?

I created a dd image of a partition (containing an HFS+ FS) of one of my disks (and not the entire disk) a few days ago using the following command - dd conv=sync,noerror bs=8k if=/dev/sdc2 ...
0
votes
3answers
3k views

How to mark bad-sectors on SSD drive?

My SSD drive has started to have some bad sectors. My plan is to to copy it to another drive using dd, but it seems like a few bad sectors are making this impossible. How do I mark bad sectors on ...
0
votes
1answer
1k views

Use `dd` linux program to save / recover a disk's MBR

I have an Ubuntu OS installed on my laptop. I want to install Windows 7 as well to another disk partition (I will do it by recovering it from a special partition on my laptop). After installing ...
1
vote
3answers
971 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 ...
11
votes
2answers
23k views

How do I create a 1GB random file in Linux?

I am using the bash shell and would like to pipe the out of the command openssl rand -base64 1000 to the command dd such as dd if={output of openssl} of="sample.txt bs=1G count=1`. I think I can use ...
1
vote
2answers
934 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 ...
0
votes
2answers
57 views

dd using device label instead of device

I would like to use a device label instead of the device in a script that I am writing so I can use the script on multiple computers. I want to change the line: sudo dd if=$(TARGET) of=/dev/sdb To ...
1
vote
1answer
496 views

Cloning harddrive I/O errors after about 30 seconds

I am trying to clone a harddrive with important data to another harddrive to make sure we can keep those files safe. Now my old HD is a 500GB 3.5" and the new one is 1TB 3.5". My old HD is plugged ...
3
votes
3answers
5k views

Cloning an SD card onto a larger SD card

I'm using Ubuntu 12.04. I have an old 4GB SD card, and have just bought a new 16GB SD card. I would like to copy everything from my old 4GB SD card onto the new 16GB SD card. I was afraid that the ...
6
votes
1answer
230 views

Is it possible to 'instantly' create arbitrary files?

I've seen the following trick to create large, empty files somewhat quickly: dd if=/dev/zero of=test.dat bs=1024 count=1024 However, this still takes some time when creating multi-GB files. I ...
3
votes
1answer
525 views

dd/ddrescue style tool for SSDs that skips writes for identical blocks

I have a dd copy of a filesystem from a SSD I want to restore back to the same SSD filesystem due to a bad OS crash, putting it back into a known good state. 95% of the blocks will be the same, so to ...
7
votes
2answers
2k views

What exactly does the dd command do?

A few days ago I was delighted to find out that it's not all that difficult to write an iso image to a USB without the help of a third-party program explicitly designed to do so. But the command (or ...
0
votes
1answer
551 views

backup/image only partitioned space on sd card

i'm using dd to backup and restore sd card images but it insists on backing up the whole of the sd card including unpartitioned space. is there a way to avoid this or better process for cross platform ...
2
votes
1answer
704 views

Do you need to format a flash drive before dd an image to it?

Does dd or Windows Image Writer work regardless whether the target device was formatted or partitioned correctly? I'm trying to flash a Chromium OS build to a USB flash drive following these ...
1
vote
2answers
7k views

Making bootable USB flash drive with dd

I'm trying to make my 32GB flash drive bootable with archlinux. Beginning from release 2010.05, all ISO files can be directly written to USB media. So, what I've did: dd if=archlinux.iso of=/dev/sdc ...
5
votes
1answer
807 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. Ironically, I was trying to setup a freenas server for data backup... ...
5
votes
1answer
365 views

File recovery: How can I make a non-destructive copy of a (NTFS) partition?

I want to recover some deleted files from a healthy NTFS partition on an undamaged hard-disk. In order to leave the partition undisturbed, i plan to use dd to clone the partition to a raw image file ...
2
votes
1answer
2k views

How to convert a specific partition in a .vdi file to .img?

VBoxManage converts the whole disk to .img. But I want to write only one partition in the vdi image to a partition on my physical disk.
1
vote
0answers
419 views

Resume interrupted multiple-file disk images created with dd?

This is the effort to recover a failed hard drive containing several important research works. To sum up: with the method I tried (described below) I could not resume failed multiple images created ...
2
votes
2answers
502 views

with a dd of an entire disk can you restore only a specific partition

I have a full dd of my hard disk which has 3 partitions, how can I using this image only restore a specific partition?
1
vote
2answers
848 views

how to prepare a harddisk for another computer

My old laptop died lately and I want to have it fixed by a repair-shop. Now first I want to clean the hard disk (via an external 2,5 inch casing). I managed to connect the drive via USB in order to ...
3
votes
1answer
208 views

Mapping dd commands to ddrescue

I'm trying to back up the Windows Recovery Partition on a laptop using ddrescue. I tried using dd, but I kept getting an Input Output error (at about 9.65 GB through, if it matters), so I learned that ...
1
vote
4answers
2k views

can dd be used to wipe clean a directory?

I have a directory on a Mint install that I want to wipe clean (not just delete the pointers, actually zero the info off the drive). is it possible to clear the data by using dd? For example, if the ...
6
votes
1answer
3k views

dd performance on Mac OS X vs. Linux

I was trying to copy an iso of the windows installer onto a hard drive to avoid burning a disk. I first tried Disk Utility's restore function, however it didn't like the ISO for some reason. Then I ...
3
votes
1answer
562 views

Migrating to LVM

The drive on my Ubuntu media server is nearly full. I hope to add another 2TB of capacity to the machine and would prefer for all 3.5 TB to be recognized as a single drive. To complicate things, I ...
5
votes
2answers
3k views

Why is GNU shred faster than dd when filling a drive with random data?

While securely erasing a hard drive before decommissioning I noticed, that dd if=/dev/urandom of=/dev/sda takes nearly a whole day, whereas shred -vf -n 1 /dev/sda only takes a couple of hours with ...
12
votes
4answers
25k 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 ...
2
votes
1answer
952 views

Linux DD command partition -to- partition

I just used the DD command to copy the contents of one partition over to another partition on another drive, like this: dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=noerror sda2 partition was 66GB and ...
15
votes
4answers
29k views

Why does 'dd' not work for creating bootable USB?

Recently I wanted to create a bootable USB of Linux mint. I found that there was a lot of conflicting advice/experience about whether the 'dd' command could be used to create a bootable USB. I decided ...
2
votes
4answers
4k views

Windows XP virtual machine hangs in VirtualBox

What i want to do: I'm trying to virtualise 2 different physical Windows XP systems which reside on one hard drive each to VirtualBox under Windows 7. What I did (once per drive): From a Linux ...
2
votes
1answer
279 views

Getting position of track and sector in 'dd'-created floppy image

I got some floppy images (original DOS 6.22 und FreeDOS 1.44 MB boot disks) created using the *nix ddcommand that work fine when used in a virtual environment. Now I want to understand the structure ...
0
votes
0answers
236 views

Clone Image Without Empty Blocks

I've been using dd if/mnt/sda1/images/$1 of=/dev/$2 to clone some embedded images for compact flashes. I used to only be using one brand of CFs, but, now I have two of them (both 2g, but obviously ...
1
vote
1answer
296 views

Copy existing Ubuntu drive to partition on new hard drive

I have a new laptop with two partitions, one is currently loaded with Windows 7, the other is blank. I'm pretty familiar with using dd to backup/copy drives, but I'm wondering how I will deal with ...
1
vote
1answer
400 views

Do Linux swap partitions need to be cloned?

I'm in the process of cloning my hard disk in order to test some unstable software. One of the partitions is Linux-swap. From my understanding, it can be used by the os as additional ram. So this ...
3
votes
2answers
2k views

What is the difference between dd's direct and fsync options?

I would like to copy an image to a USB thumb drive. As I would like to get "real" speeds, and don't want to wait ages for the device to sync after copying the image, I would like to know which ...
0
votes
4answers
249 views

Can I dd from my current hard drive to another hard drive while running the OS

My initial thought is that this is a bad idea. But let's assume that I can't take a USB stick into my lab to run a live-Linux distro, and my computer has only 2-SATA ports. I have one 80GB SATA drive ...