Tagged Questions

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

learn more… | top users | synonyms

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
436 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
306 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 ...
9
votes
4answers
5k 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
792 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
343 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
4k 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
83 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
137 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 ...
5
votes
2answers
10k 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
725 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
164 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
2k 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
120 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
62 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
242 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
263 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
739 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
228 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 ...
3
votes
2answers
6k 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 ...
-2
votes
1answer
2k 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
297 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
249 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 ...
1
vote
2answers
117 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
4k 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
525 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
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
202 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
213 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
366 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
3k 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
529 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
520 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
547 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
278 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 ...
3
votes
1answer
1k 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
2answers
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
86 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 ...
15
votes
2answers
33k 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
1k 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
63 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
550 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
6k 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
240 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 ...