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
18 views

Clone Drive Using Linux DD Command: Send IMG Over SSH Connection

I SSH to a VPN running Ubuntu Linux. To make backup copies of the hard drive, I use the following dd command: sudo dd if=/dev/sda1 of=/home/rick/hdImage-20150704.img It works, however, is there a ...
3
votes
1answer
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
19 views

dd an image, but only getting a fraction of the space on my SD card

I downloaded an image of Ubuntu Linaro. I then dd the image onto an SD card that is 32GB as follows: sudo dd bs=4M if=ubuntu-14.04-hdmi-z7010-20140611.img of=/dev/mmcblk0 Works fine, I can boot ...
29
votes
3answers
52k 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 ...
18
votes
5answers
28k views

How can I find what /dev my DVD-drive is?

I'm on Mac OS X, have a DVD in the DVD-drive and can look at it in the Finder. I'd like to try to create an iso of it by using the dd command. But to do that I need to know what device to use as an ...
3
votes
2answers
35 views

DD command running for over 17 hours on external 1.5TB drive

I used dd with nohup to erase a 1.5TB disk and now I can't get feedback from the progress.. Since it's been more than 17 hours I am worried... I ran the command with the disk unmounted. The disk is ...
2
votes
3answers
11k 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 ...
-3
votes
2answers
34 views

Is it possible to protect disk image, in format of dd, with bitlocker

I have some files on disk image. This image is in dd format. Now I want to protect that disk with bitlocker. How do I do this? I have tried mounting this image to windows with OSFMount tool, FTK ...
0
votes
1answer
34 views

Cloning HDD sector-by-sector (dd/ddrescue), how to skip bad blocks in the middle?

I've got a HDD with unrecoverable bad blocks. HDD is part of Raid-0 array. If I access bad blocks by any means HDD hangs. Let's assume the HDD full capacity is 500,000,000,000 bytes, bad blocks are in ...
0
votes
3answers
67 views

dd from /dev/zero to /dev/sda does not overwrite the whole disk

I issued dd command to zero out my hard disk. The command completed successfully but only part of the hard drive was overwritten: mint@mint ~ $ sudo dd if=/dev/zero of=/dev/sda dd: writing to ...
0
votes
1answer
93 views

What does dd do that pv doesn't?

I see examples online all the time of using dd in combination with pv to show progress... But, something I don't understand is that pv is perfectly capable of doing the task entirely on it's own. So, ...
20
votes
2answers
58k 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 ...
0
votes
1answer
36 views

dd writing on USB flash drive causes massive reads

I am currently restoring a usb stick with a dd image, I have previously created. However is noticed very poor write speed around ~7 MB/s although the stick is usually much faster. After looking ...
0
votes
1answer
35 views

Incorrect size of image file made with dd and gzip?

In the past I made a backup of a partially full partition with dd if=/dev/sda1 | gzip -5 > file.gz. Some time later, when a free space on partition was smaller I made an image file again with the ...
1
vote
2answers
61 views

512B to 4KiB (Advanced Format) HDD cloning with dd

What is the best practice to clone with a dd an existing 512-bytes-per-sector HDD (whole disk, not specific partitions) to a modern 4-kibibytes-per-sector Advanced Format drive? What options should be ...
2
votes
4answers
276 views

Can I copy the Macintosh HD to migrate my data to a new Mac?

I want to get a new Mac. Can I simply dd a disk image from my older mac's hdd to the new Mac with a bigger HDD (this will be further partitioned, but the old osx drive will fit within one OS X-style ...
0
votes
1answer
64 views

0M error writing file: 5 access is denied

I'm trying to write ISO on USB using dd command: dd if=evolution-64bit.iso od=\\.\f: bs=4M. I've launched cmd as Administrator, disabled my MSE anti-virus software, but it keeps telling me that Access ...
2
votes
3answers
39 views

Use dd to backup device over the network

I have a Raspberry Pi connected to the network along with a USB stick. Is it possible to use the dd command on my Raspberry Pi and automatically upload the iso to my Mac? What I mean is on my pi ...
3
votes
1answer
87 views

Head on very large files

I have 2 very big files (27G and 40G), which are output of dd command on a failing hard drive. I wanted to compare the first bytes to see if the 27G bytes is the begining/substring of the 40G. I ...
0
votes
1answer
175 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: ...
1
vote
3answers
69 views

bash script how to parse outputs

I am writing a script to test read/write performance on the network storage, but i need a bit of help to finish the script. The script is simple: reloads the nfs mount to clear the cache ...
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 ...
3
votes
2answers
111 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 ...
14
votes
5answers
39k 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 ...
0
votes
1answer
112 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 ...
0
votes
0answers
35 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 ...
5
votes
1answer
16k 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 ...
1
vote
0answers
78 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
25 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
78 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
39 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 ...
6
votes
6answers
5k views

Mount raw CD-ROM image

Let's say I created a image like this: ddrescue /dev/disk1 MY_CDROM_IMAGE.img (/dev/disk1 is my CDROM drive) How can I mount this on my Mac? Note: The image created is not a IMG file - it is ...
12
votes
6answers
9k 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
1answer
23 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 ...
4
votes
2answers
27k 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
0answers
45 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
57 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 ...
36
votes
2answers
19k 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
156 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
2answers
1k views

Copy from CDROM is very slow in Ubuntu

I'm using the command to copy CDROM image: # dd if=/dev/sr0 of=./maverick.iso But it's very slow, at about 350k bytes/sec. I've searched the google, and try the command # hdparm -vi /dev/sr0 ...
0
votes
0answers
25 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
36 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
112 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 ...
1
vote
2answers
5k views

changing permissions of Read-only file system in linux

i use this command to make a bootable flash disk of linux mint sudo dd if=~/Desktop/linuxmint.iso of=/dev/sdx oflag=direct bs=1048576 it's work, but now my flash disk is lock and i can't change ...
1
vote
1answer
348 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 ...
2
votes
1answer
32 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
162 views

cannot boot kali usb

I downloaded - from http://www.kali.org/downloads/ - Kali Linux 32 bit ISO and then sha1sum-ed. blkid shows my usb on /dev/sdc1 then dd if=<path-to-kali.iso> of=/dev/sdc (I have also ...
0
votes
1answer
126 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
401 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
68 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 ...