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

learn more… | top users | synonyms

0
votes
1answer
11 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
361 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
15 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 ...
0
votes
2answers
30 views

Any way to boot a OpenSuSE installation DVD ISO and install from it, without burning it to a DVD?

Because the DVD image is too big to fit on a disk, I would like to install system using sequence of commands like this, running from an Ubuntu live CD: cd /tmp wget ...
0
votes
0answers
14 views

dd and gparted and Lubuntu disks all acting funky

So I am trying to write some iso images over to an 8 GB USB drive and this happens. The first iso didn't seem to actually write and when I went to boot it in my other box, it booted to a unetbootin ...
0
votes
0answers
11 views

Make Windows boot after sector-wise copying from 4 GB flash card to 8 GB

I've Windows Embedded XP system installed on a 4 GB Compact Flash card (which is visible as IDE drive to operating system). I've used dd to move it sector-to-sector to another flash drive which is 8 ...
0
votes
1answer
34 views

Hard drive checking by using of dd and md5sum tools

I bought new external USB 3.0 hard drive WD Elements 2 TB and decided to check it by using dd, head and md5sum tools. First I zeroed all hard drive: root@yurko-laptop:/home/yurko-laptop# dd ...
1
vote
1answer
28 views

What's the difference between dd's command options bs=1024 count=1 and bs=1 count=1024

Consider the following two commands both creating a dumb 1KB file dd if=/dev/urandom of=test.file bs=1024 count=1 dd if=/dev/urandom of=test.file bs=1 count=1024 The first command uses a block ...
2
votes
1answer
20 views

Is there a way to output the status of dd (on OS X) during the copy process?

I am using dd to copy iso images to a thumb drive. Is there a way to output the status of dd during the copy process?
1
vote
3answers
117 views

Creating a large file of random bytes quickly

I want to create a large file ~10G filled with zeros and random values. I have tried using: dd if=/dev/urandom of=10Gfile bs=5G count=10 it creates a file of about 2Gb and exits with a exit status ...
0
votes
1answer
38 views

how to make a correct bootable usb of a linux distro?

well I have been installing different distros of linux from by usb from time to time. And I always followed same method which until today stopped working for me. So I use to format my usb with ...
0
votes
1answer
35 views

Can I pause dd writing, remove the medium, mount it again and continue without causing I/O error?

I'm creating a compressed image of a laptop's internal drive into an external USB disk using a LiveCD GNU/Linux system. Also I use pv to monitor the progress. Here's how the command looks like: dd ...
0
votes
0answers
47 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 ...
2
votes
1answer
43 views

DDRescue - Did I do the wrong command which is causing it to take longer then expected

I am running the following command on a 500GB drive: ddrescue --force --direct /dev/sde2 /home/backups/sde2.img sde2_logfile.ddrescue However, the time has been almost 24hrs and all it has done so ...
0
votes
2answers
114 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
29 views

Will copying to an identically sized disk cause issues if the output disk has bad sectors?

I just made a copy from one 160gb disk to another, identical 160gb disk, using the command sudo dd if=/dev/sda of=/dev/sdb (run on a live Ubuntu CD) However, the SMART test on /dev/sdb shows 20 ...
0
votes
1answer
20 views

Creating a data rescue partition

I am trying to recover deleted files from a Windows HDD (320 Gb) with multiple partitions. Have three questions: Will dd if=/dev/sdb of=~/image_sdb.img bs=4096 create an image of all partitions ...
0
votes
2answers
43 views

Does `dd` work on physical level or on filesystem level?

When you delete a file from a device, let's say an USB stick, then (without doing any further stuff) only the entry in the filesystem is deleted, the raw bytes of this file are still on the device ...
1
vote
1answer
45 views

How can I backup the entire file system on a backup image file?

I am pretty new to Linux. I am configuring my RaspBerry that use RaspBian (that is a minimalistic Debian distribution). Before changing some settings I want to have a backup of my entire system in ...
50
votes
2answers
2k views

Why is piping 'dd' through gzip so much faster than a direct copy?

I wanted to backup a path from a computer in my network to another computer in the same network over a 100 Mbit/s line. For this I did dd if=/local/path ...
0
votes
0answers
38 views

How to chroot into memory disk so that hard disk can be unmounted?

What I want to achieve is to be able to backup my hard disk over ssh like the following without the need to boot from a live CD / rescue media: dd if=/dev/sda | gzip -1 - | ssh user@hostname dd ...
0
votes
0answers
21 views

Restoring backup with dd

I have made a backup of an hard drive using ddrescue. Now I have the .img file. How can I restore the .img Backup to an other hard drive? I have tried dd if=backup.img of=/dev/sdc but the hdd sdc is ...
0
votes
2answers
90 views

Can dd be used to copy an SSD with an OS?

The OS in question is Windows 8.1 Both laptops have 100+ gig SSDs Now suppose I really don't want to bother installing the OS again, can I just use a linux USB stick, dd the whole SSD drive to ...
-1
votes
2answers
41 views

How to unpack dd file on Windows?

Is it possible to unpack files created with linux dd tool on Windows? I have tried that tool http://www.chrysocome.net/dd, but it crashes under Windows 7. Any ideas?
0
votes
1answer
44 views

Windows Hard Drive swap [duplicate]

I am going to be moving a HDD from one computer to another identical one. Can I just switch out the hard drives, or will I have to dd the old one onto the one that is already in there?
-1
votes
1answer
39 views

Can dd achieve better bandwidth/speeds on a USB 3.0 bus? [closed]

As the title says--I recently acquired a USB 3 stick that I'll mostly be using for moving ISOs/images around between computers. With the increased transfer rate of USB3, can I deviate from my habitual ...
1
vote
0answers
43 views

dd destroyed my partition. how do I recover the data? [duplicate]

I used the command dd if=/dev/mmcblok0 of=/dev/sda2 to backup my sd card of my raspberry pi (where /dev/mmcblok0 is my sd card and /dev/sda2 is the second partition on my external hdd) ...
0
votes
3answers
24 views

dd to a Hitachi HDD

Is it safe to perform a dd if=/dev/zero of=/dev/sda bs=512k to an 80GB Hitachi HDD via a bootable linux cd? and format it with a new file system? I hope that won't cause me any problems later, the ...
0
votes
2answers
37 views

Restoring a disk image with dd

I made an image of a complete disk with : $ sudo dd if=/dev/sdc | gzip -c > my_image.dd.gz When I restore it with : $ gunzip -c my_image.dd.gz | sudo dd of=/dev/sdc I get errors when I type : ...
2
votes
2answers
89 views

Move partition data with dd to the right

I need some help to get a dd command line that is moving my partition blockwise to the right. I stumbled upon an error when using tools to image some pcs and now I need to repartiition those machines ...
0
votes
0answers
14 views

Moving a part of a file with dd

How do I do a memmove for a file on linux? Specifically, will dd work in the following case, when if and of are the same? dd if=test_file of=test_file bs=512 seek=10 skip=0
0
votes
1answer
50 views

dd immidiately completes but actually needs sync

I use dd to copy an iso to a USB drive. I have a SSD so it reads it very fast however I have a USB 2.0 drive, which is at most 480 Mbps but it says it copied with 404 MB/s, which is impossible. I need ...
3
votes
1answer
227 views

Two 2TB drives, why is dd is almost 8 times faster erasing one?

I have two 2TB drives: /dev/sde WCD WD20EZRX-00D8PB0 Firmware revision 80.00A80 (new consumer-grade WD Green series) /dev/sdf WCD WD2002FYPS-01U1B1 Firmware revision 04.05G05 (old pro-grade server ...
1
vote
2answers
80 views

Does dd stop when the disk is full?

If I issue the following command to completely erase a disk, will it automatically stop when the disk is full, or do I need to specify the count option?: sudo dd if=/dev/zero of=/dev/disk7 bs=64m I ...
0
votes
0answers
138 views

Mount Core Storage partitions on image of hard drive created with ddrescue

How do I mount a whole-disk image with an encrypted CoreStorage partition? Update: I found the answer! It was super-simple: hdiutil attach -nomount somePath.img The "nomount" flag is critical ...
0
votes
1answer
34 views

dd MBR and one partition

I have 2 partitions on a drive and I need to use dd to create a new image of just the MBR and second partition. Here is the output of fdisk -l /dev/sda Device Start End Blocks ...
0
votes
1answer
44 views

dd a partition and keep device structure

How can I dd a partition while keeping its device structure? Source device: [root@cal-7-3 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 37.3G 0 disk └─sda1 8:1 0 ...
0
votes
1answer
38 views

How can we create an image from an entire disk?

I've tried clonezilla live cd, and I got an image but in a kind of folder. I would need an .img file or something because afterwards I will use some images together, but that is other story. I also ...
2
votes
1answer
50 views

Hex of filesize

I am following a tutorial on few kernel dev. I encountered an operation where I have to use dd like dd ... if=PBL.bin of=... count=block_number The block_number variable is defined to be as The ...
2
votes
3answers
675 views

How to get Linux to be loaded to RAM?

I'm soon to acquire several new computers on the grounds that I wipe their hard disks. I don't need the drives to be randomized, just zeroed out with dd. How can I can boot Linux from a flash drive ...
0
votes
1answer
30 views

Writing past the end of the drive with dd?

Suppose I have a drive with 10000 512b sectors. If I do sudo dd if=/dev/zero of=/dev/disk2 skip=99999 count=10 what will happen? When I tested this with a real drive, dd's output suggested that ...
1
vote
2answers
157 views

Putting Debian 7.3 on a USB drive via the dd command

Not sure if this is the correct place to ask this, but I assumed as it's pertaining to the dd command it would be. Normally to do this I'd use the Windows application Universal USB Installer but per ...
1
vote
1answer
47 views

How can I recover files from a part of a disk image?

I am backing up a dying hard drive using dd. Unfortunately the process is taking very long (95KB/s) and I would like to see if I can get some of my files from the part that is already copied (~26GB). ...
0
votes
0answers
94 views

dd records in records out different

Simple question: is it OK if the output in dd for "records in" and "records out" are different by 1? Or is this an indication that a disk error has occured? 96088211456 bytes (96 GB) copied, 873.174 ...
1
vote
1answer
627 views

Extract the contents of ELF and write to binary file

I have been trying to extract the contents of a firmware and putting it to a binary file, but with no success. I see the right hex contents, but am not sure how to laid them in bits into a file. ...
0
votes
1answer
603 views

How do I make a USB flash drive writable on Linux?

I want to reformat a SanDisk Cruzer Edge USB flash drive but it appears read-only: $ sudo dd if=/dev/zero of=/dev/sdg dd: failed to open ‘/dev/sdg’: Read-only file system I checked the readonly ...
-2
votes
2answers
67 views

cronjob for creating two files with 2 GB of size each

I need to create a cron job that runs every hour. This cron job should create two files, each 2GB, one should be created from /dev/urandom and the other one from /dev/zero and should be written to a ...
2
votes
2answers
373 views

dd to clone 2 hard drives with 2 OSes and an encrypted partition

So, I have a question with this complex back-up process. My computer has a 32GB SSD, where Ubuntu 13.10 and all programs that run on that system are located. There is only one partition on that drive, ...
2
votes
2answers
1k views

Can I expand the size of a file based disk image?

I created an empty disk image using dd, then I used mkfs to make it a real filesystem image. I am mounting and using it fine. What I need is to be able to expand or shrink this file based disk image ...
2
votes
1answer
108 views

Can cat be used to clone a partition?

For example, can I do: cat /dev/sda1 > /dev/sda2 instead of using dd, and if not, why will this not work?