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

learn more… | top users | synonyms

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 ...
5
votes
2answers
9k views

using dd to copy partition to another partition, while using physical drive

I'm not sure how to explain this in the subject better, so the "question" may not be right. But here goes. I have three hard drives. Drive A is a 320GB drive, Drive B is a 80 GB Drive, and Drive C is ...
-1
votes
1answer
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 ...
0
votes
0answers
362 views

dd Copies Drive with no Errors, Gparted shows Partitions as Empty, No Flags

So with the assistance of Hennes I was able to use dd to copy my entire sda to sdb, but after dd finished I checked the partitions with gparted and found that all partitions were listed as empty, the ...
0
votes
2answers
306 views

restore dd image to another usb stick failed

I'm trying to create a dd image which contains two partition. The first is a ext3,(19MB) the 2nd is fat32.(16MB) I use one 512M usb stick to create image. And use dd if=/dev/sdc of=image.dd bs=1M ...
0
votes
2answers
119 views

dd /dev/sda to img on drive

If I run: sudo dd if=/dev/sda1 of=~/image.img bs=1M Will the image.img (which is located on /dev/sda1) be continuously copied onto itself? As it gets bigger from data, will that additional data be ...
1
vote
3answers
5k views

How to create an image of a Live system over ssh?

I have a question about a FreeBSD server that I cannot access at the moment. But because we would like to try some new stuff we want to create a backup of this system first. The question is: is ...
2
votes
2answers
625 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 ...
3
votes
2answers
3k 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
217 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 ...
1
vote
2answers
223 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
2answers
429 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
4k 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
673 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
86 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
619 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
602 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
325 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
2k 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 ...
6
votes
1answer
2k 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
4k 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 ...
1
vote
3answers
2k 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 ...
0
votes
2answers
95 views

What happens if I write to a device other than a disk?

I know, I can write to a hard disk just using dd command in Linux, such as dd if=/dev/zero of=/dev/sdb. Since, every device is represented as file in Linux, I wonder what might happen if I ...
1
vote
4answers
1k 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 ...
26
votes
2answers
47k 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
2k 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
70 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
575 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
7k 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
252 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
677 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
3k 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 ...
1
vote
1answer
758 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
945 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 ...
2
votes
2answers
10k 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
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. Ironically, I was trying to setup a freenas server for data backup... ...
5
votes
1answer
413 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
3k 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
526 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
661 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
1k 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
216 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
3k 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 ...
11
votes
1answer
4k 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
633 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
4k 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 ...
14
votes
5answers
37k 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
1k 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 ...