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

learn more… | top users | synonyms

2
votes
1answer
20 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
0answers
8 views

ddrescue failing with very large errsize (hundreds of terabytes)

I'm trying to rip a CD-ROM to an ISO file. I prefer an ISO file to a DMG or CDR file because of cross-platform compatibility. I tried using ddrescue, but no matter what options I use I get the ...
0
votes
1answer
15 views

Clonezilla stopped. Can “sgdisk -z /dev/sdx” destroy all the data on sda?

I need suggestions. I wanted to backup sda2 on which Win7 is installed. I deleted the Recovery Resion. (Probably Testdisk can restore this partition because I haven't done any manipulation on that ...
1
vote
0answers
20 views

Can't boot from USB on MacBook Pro Retina

I downloaded the latest i386 netinst iso for Debian Jessie and have followed these instructions: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx However, when I press alt/option ...
1
vote
1answer
15 views

Copying data from file into a specific location of another file with dd truncates the output file

I have a loopback file that contains a single filesystem, let's call it fs.image. I have another, much larger loopback file, that contains multiple partitions and multiple filesystems, let's call it ...
0
votes
0answers
21 views

Can I use dd to upgrade 1-bay synology NAS to bigger HD?

I have a 1-bay Synology NAS (DS112). According to the Synology compatibility list it can take a 6TB disk. If possible I'd like to clone my existing 2TB disk to the 6TB disk using dd or any other tool ...
3
votes
1answer
32 views

dd cannot write the last 24 kB of a disk

I have an old 320 GB laptop hard drive that I'm getting ready to sell (or donate). To prepare it, I'm using dd to write one pass of random data, then one pass of zeros: dd if=/dev/urandom of=/dev/sdb ...
0
votes
1answer
13 views

How to use losetup to emulate an optical drive that can be a recording target?

On a Linux system, I am intending to convert some audio files (mp3) and write them to an audio CD. Instead of directly writing to an optical disk, I would prefer to somehow redirect the output to an ...
0
votes
0answers
13 views

How to dd or use something like WinDiskImager to copy a hybrid disk image to a thumb drive?

So this started as a question on how to get a file visible in Windows but invisible in Mac and vice verse: Is it possible to have a file hidden in Windows, but visible in OS X? I was suggested to try ...
0
votes
1answer
21 views

Last partition fails to dd copy

I'm trying to copy the NOOBS Raspbian distribution's 8GB SD card to a new card. For some reason, the logical partition /dev/sdb6 will not copy correctly. Accessing fdisk /dev/sdb after the attempted ...
0
votes
1answer
70 views

Test USB 3.0 Device Speed

I've looked up hdparm, but all examples are for testing disks. Not sure if it can be used to test external usb devices (specifically usb flash stick). I'm using the following code right now: dd ...
0
votes
0answers
22 views

How can I allow users to write an image to a SD Card via dd?

With dd if=myimage of=/dev/sdb root can write an image to an SD card. How can I allow users to do this?
1
vote
1answer
32 views

dd fails in postgres backup from one server to another

I've got a server which is running out of space. Unfortunately it doesn't even have enough space anymore to backup a postgres database I've got running on it. So I now want to backup the running ...
1
vote
0answers
76 views

Can not mount copy of image file (ddrescue): “can't have a partition outside the disk”

I'm struggling for days now moving my old Windows XP installation to a new hard disk, because the old disk is failing. Long story short: I successfully created an image of the entire (failing) disk ...
2
votes
1answer
27 views

Linux command to look at other drives/partitions on computer from live CD

So my friend’s computer crashed because the file system is corrupted. However, she needs files from the system, therefore, a reinstall wouldn’t do the trick as we still a way to recover the files. ...
0
votes
1answer
64 views

dd , pv , gzip and exclude directory, possible?

Is it possible to do the following: dd if=/dev/hdx | pv | gzip > /path/to/image.img\ --exclude=/temp --exclude=/lost+found --exclude=/proc --exclude=/path/to/image.img So I want to make a backup ...
3
votes
1answer
384 views

Why does 'dd' produce different files for same USB stick?

I've just saved the restore for Windows 8.1 onto a USB stick; now, I've been creating the low level copy of it on my HDD, by executing the following command: sudo dd if=/dev/sdf ...
0
votes
0answers
54 views

Copy huge file skipping first line using dd in Linux

I was trying to copy the content of a huge file (10GB) to another skipping the first line (as in head -n1). I tried multiple ways of head, tail, awk and sed. Settled on using tail -n+2 > ./xab.1 ...
1
vote
0answers
61 views

Cannot mount western digital hard drive. Can I clone it?

I have a 1TB Western Digital USB3 external hard drive. Last day I dropped it and after that I was unable to mount it. The hard drive doesn't have a SATA connector but the circuit board translate from ...
0
votes
0answers
19 views

ddrescue - trimming failed blocks is reading the target drive

7 8 64 20 1 0| 13M 0 :6728k 0 :6732k 0 | 264B 344B> 3 8 68 19 1 0| 14M 0 :6940k 0 :6940k 0 | 264B 344B> 7 8 61 23 1 0| 13M 460k:6592k 0 ...
0
votes
1answer
102 views

How to clone a bootable SD card to a little smaller card?

I have an 8G bootable SD card used for Raspberry Pi. Currently I bought an exactly same card, in order to clone the card. I have tried the following steps: Create an image from the old card: ...
0
votes
1answer
83 views

Make disk image with real-time compression over network on Linux

I have two Linux notebooks on a network and no additional storage. I want to backup the first notebook hard drive (make full HDD image), on the second notebook. How could I do that using real-time ...
0
votes
0answers
23 views

Is dd's extended size notation ignored when bs=<value> is set?

On linux the man page for dd claims: N and BYTES may be followed by the following multiplicative suffixes: c=1, w=2, b=512, kB=1000, K=1024, MB=1000*1000, etc up to M, GB, T, P, E, Z, Y. But ...
0
votes
0answers
42 views

Using gnu dd_rescue to rescue data from a failed hard disk

I'm using gnu ddrescue 1.18.1 from the SystemRescueCD Linux distribution. I started the recovery process yesterday using this tutorial: ...
1
vote
0answers
16 views

canot restore disk image with dd (target part filled with zero)

I have a RAID0 disk before, now I want change the size of it. From the manual, the only way is backup data, delete RAID, re-create with new size, and restore data. now I have many old 2.5" hdd, each ...
0
votes
2answers
35 views

How to append data in a file by dd?

I want to append new data in a file stored in SSD. dd if=/dev/shm/test of=/data/sdb/test bs=1G oflag=append But df -h shows the dd command always overwrite the test file, instead appends new data ...
0
votes
1answer
56 views

Will Steam not run if its partition is copied to another using dd?

If I have Steam installed on one windows partition and then I copy that windows partition into another partition using dd, will Steam not run in that new partition? If so is there a way to fix it?
0
votes
1answer
107 views

How to write bootable iso to a partition?

I want to install a new operating system. Neither want to write the installer ISO to DVD, nor to USB flash drive but to a partition on the HDD itself. I have done it before: I created a bootable USB ...
1
vote
1answer
49 views

Does dd require CAP_SYS_RAWIO?

A little while ago, I found out from this that there used to be a way to semi-permanently disable the ability of even root to modify immutable & append-only flags (lcap CAP_LINUX_IMMUTABLE) or ...
1
vote
1answer
285 views

Making a VDI image bootable for VirtualBox

I created a disk image of a Ubuntu (12.04) system by using dd if=/dev/sda6 of=xxx.img The VDI image was created by using vboxmanage clonehd xxx.img xxx.vdi --format VDI When I create a new VM ...
1
vote
2answers
2k 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
2answers
46 views

Can dd copy raw data from hard drives when operating system cannot recognize file system of partitions of hard disks?

As the title says, can dd copy down from hard disks even when operating system cannot recognize file system of partitions of hard disks?
1
vote
2answers
69 views

Understanding the dd command in Linux

can someone explain to me what this command does: dd if=/dev/zero of=10MBfile1 count=10000 bs=1024 which produces this output: 10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, ...
0
votes
0answers
52 views

How can I identify and read only free-space junk data from EXT4 partition?

I have cloned an EXT4 partition via raw dd command from a Galaxy Nexus phone. How can I identify and read only free-space junk data from the EXT4 partition? I need to recover some WAVE samples(I'm ...
0
votes
0answers
54 views

Is it possible to clone previous boot disk to new imsm raid array?

A PC with a hard drive 750GB. The hard drive has one partition with Vista and several partitions with Ubuntu 14.04. I mainly work with Ubuntu but occasionaly I boot Vista. Recently, the drive's smart ...
0
votes
1answer
380 views

Complete wiping of hard drive - shred, wipe or dd?

I need to wipe all data of a number of hard drives, from Ubuntu Linux. I have found three command line tools: shred, wipe and dd. It seems kind of random what people recommend. Sometimes someone ...
0
votes
0answers
27 views

How to recover files and folders from a dd_rescue image?

My 16 GB USB disk crashed, the filesystem disappeared. I tried to fix it with "dosfsck", but no success, it also has bad sectors. Then I made a disk dump with "dd_rescue" command. I was able to ...
1
vote
2answers
252 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=?
0
votes
1answer
272 views

Write iso files to usb sticks with dd

So far I have always succeeded at creating bootable USB, until yesterday. I tried creating a bootable USB for Arch Linux, Chakra OS, and Ubuntu this way: Locate my USB stick: lsblk # My drive is in ...
0
votes
2answers
218 views

Linux Full Disk Backup of a Remote System?

I have a home file server in the following configuration: 4 HDDs of 2TB each 1 USB flash drive running the Debian OS of 8GB I would like to make a full disk backup of the OS flash drive to another ...
0
votes
1answer
192 views

Cloning md partitions for recovery

I have a failed software RAID5 (3x500GB disks) that I'm trying to recover. I don't want to try some of the more risky steps on the actual disks, so I want to clone them to new partitions on a new 3TB ...
0
votes
1answer
43 views

Expand size of disk image after dd operation

Background : I used the debian wheezy raspberry pi build, a generic kernel image with qemu to build a raspberry pi image. I copied the resulting image to the SD card with dd. That SD card is a 16 gb ...
0
votes
1answer
83 views

Does dd care when cloning from smaller hdd to bigger hdd?

Does DD care about hard drive size? I currently have a smaller 500GB HDD that i want cloned to a 1TB SSD. Will it clone without a problem relating to size? will there be non partitioned space? was ...
0
votes
0answers
23 views

backup wlc2504 cf card

I dd imaged a CF card for a WLC2504 before upgrading to a new FUS image and now have a backup image of the new running software as well. My question is can I use the pre-update CF image if necessary ...
0
votes
0answers
25 views

Moving Select Partitions and MBR From Old Drive To New

On my current drive I have a dual boot system setup (two different versions of ubuntu.) I want to migrate to a new hard drive but I don't wan't to keep one of the Ubuntu installations. So here is how ...
0
votes
0answers
154 views

fdisk doesn't see ssd, clonezilla does but fails anyway

I'm trying to clone a Windows 7 Pro installation from one SSD to another. The current SSD is nearly full, so I'm cloning it to a larger disk. My problem is that there is something about the source ...
0
votes
0answers
352 views

Disk Cloning Probelm

I'm trying to clone a Windows 7 Pro installation from one SSD to another. The current SSD is nearly full, so I'm cloning it to a larger disk. My problem is that there is something about the source ...
0
votes
1answer
185 views

Use dd to copy an HFS+ volume in linux

I have a friend's HFS+ external drive from her Macbook. We created a new similarly-sized partition on a different external drive, also using the Macbook. From everything I understand about dd, it is ...
1
vote
2answers
496 views

DD the fastest way

I have this "disk list" table: /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *16.4 GB disk2 ...
0
votes
1answer
59 views

'dd' command on Damn Small Linux?

I looked at the package list of DSL, and I don't see 'dd'. For example I would like to restore /dev/sdb from an .img file like so: dd bs=1M if=/home/myname/image.img of=/dev/sdb What command do I ...