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

learn more… | top users | synonyms

49
votes
7answers
31k views

How do you monitor the progress of dd?

dd is a wonder allowing you to duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of it's progress. It just sits there ...
1
vote
2answers
60 views

Mount sd-card image (created using dd)

I have created an image of my Raspberry Pi SD-card using dd: sudo dd if=/dev/sdf of=/home/myusername/raspberry-backup-2014-04-10.img The SD-card includes two partitions (one vfat, one ext4) which ...
0
votes
1answer
26 views

Lost disk space after DD

I've made a typo while doing: $ sudo dd if=/dev/zero bs=1MiB of=/host/ubuntu/disks/root.disk conv=notrunc oflag=append count=2048 $ sudo losetup -c /dev/loop0/ $ sudo resize2fs /dev/loop0 In first ...
0
votes
0answers
8 views

disk image creation outputs zero sized cylinders

I use the following command to create a disk image dd if=/dev/zero of=/tmp/image.ext2 bs=1k count=100000 This is the odd observation, the output of fdisk -l image.ext2 this instruction on my ...
0
votes
1answer
24 views
0
votes
2answers
263 views

Cloning dual boot drive

I would like to make an exact copy of my old 250 gb HDD (not installed), and clone to a new 240 gb SSD (installed). The old HDD is dual booted with equal partition scheme, rEFIt booting OSX Snow ...
6
votes
6answers
457 views

How to clone to a smaller harddisk?

How to clone a harddisk to a smaller sized one. Clonezilla is great but it doesn't support such functionality. Also dd and PartImage don't support this demand. rsync will not copy the MBR since an ...
0
votes
1answer
24 views

Can I dd a larger drive to a smaller one?

I have resized the partition of the larger drive with GParted. Can I do sudo dd if=/dev/LargerDrive of=/dev/SmallDrive ?
3
votes
1answer
40 views

What is the best value for the bs option of dd command?

I am using the dd command for the first time, so I am wary, I've reading articles in wikipedia but have some unclear part, so I am asking here, is bs option matter? If I set the wrong number, would ...
1
vote
1answer
47 views

How to make a pendrive snapshot

I am building a NAS server with Ubuntu Server 12.04 on an old laptop and am very happy with it. The OS is installed on a 8Gb pendrive (the swap partition and grub are also installed on it). I did a ...
2
votes
2answers
98 views

Backup SSD as image

I want to backup an existing SSD on a new notebook with a pre-installed Windows, Recovery Partition, ... before I wipe it and install Ubuntu on it. (It is too small for a dual-boot) Until now I have ...
3
votes
2answers
28 views

Used dd to backup a disk, now want to look at the filesystem

I dd copied /dev/sdd sudo dd if=/dev/sdd of=backup.img sudo fdisk backup.img Command (m for help): p Disk backup.img: 143.3 GB, 143274860544 bytes 61 heads, 35 sectors/track, 131069 cylinders, ...
0
votes
1answer
27 views

faster (and less precise) alternarives to dd

I love dd with all my electronic heart, but sometimes it takes to long and i dont actually need byte by byte exact hdd replicas I was thinking of resizing the partition in question to minimum free ...
0
votes
1answer
63 views

Can't install/try Ubuntu after dd sda hard drive

I mistakenly ran dd on sda which is the current hard-drive Ubuntu installed on. I aborted dd (using ctrl-x) and when rebooted the machine it no longer boots with Ubuntu :( I have nothing important on ...
1
vote
3answers
83 views

System backup with dd to external hdd

I want to backup my whole system. I am wondering if the dd command is a good choice for that. dd if=/dev/sda of=/dev/sdb For example: /dev/sda is my system partition (partition is on a ssd if that ...
0
votes
0answers
28 views

Disk Wipe Script Question

I have a server setup to do diskwipe. I am wondering if someone can help me figure out why the random pass is not working. Thanks!! #textPass Sectors sectors=$(blockdev --getsz ...
2
votes
0answers
86 views

GNU ddrescue imaging results — 116 errors a lot?

A little background on this. It's an 256 GB SSD drive with Windows SP3 32-bit and it's encrypted with PGP Whole Disk Encryption. The file system is corrupt and unreadable. I first ran Clonezilla to ...
1
vote
2answers
45 views

using dd with target smaller than source

Some of you will laugh, but... I made a mistake by resizing a virtualbox vdi to 50TB instead of 50GB. Given that there's no way in vbox to shrink it back (even if the new space was untouched), i ...
0
votes
1answer
245 views

ddrescue is taking ages

OK, so my hard disk crashed the other day and I sent the entire notebook for servicing; now I have a brand new hard disk installed in it and the damaged one out in the open. I've installed Ubuntu and ...
3
votes
1answer
172 views

How to fix HDD after doing a dd cloning

So yesterday I received a HDD that was used for cloning, the whole thing went like this: An HDD of 1TB which had 120GB used was resized to 140GB. After that they did the following: sudo dd ...
1
vote
0answers
45 views

Syncing/Mirroring two partitions (Sata, USB) : RAID or not?

My 12.04 Ubuntu server has a 120Go internal SATA sda5, ext4 partition. I also own a 500 Go USB2 external hard-drive from which I could easily free 120 Go. Now, I've been meaning to set up mirroring ...
4
votes
4answers
2k views

How to recover data from a failing hard drive?

An external 3½" HDD seems to be in danger of failing — it's making ticking sounds when idle. I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious ...
0
votes
1answer
76 views

Why does step 8 of making the bootable USB take so long for my MacBook Air?

I'm on my MacBook Air late 2008 model, I'm currently trying to make a bootable USB to add Ubuntu to but I have gotten to the final stage of adding the image to the disk and now it isn't doing anything ...
1
vote
0answers
24 views

Looking for Command Line help

I am using a DD image and I am trying to identify the byte value at offset 56 and offset 57 of the file system's superblock. The image is an ext3 image. I am unsure what the appropriate command would ...
1
vote
0answers
71 views

Why is DD taking so long?

Background: I have an 8-disk Network Attached Storage device. I've been having issues with it where the hard drives fail on a regular basis. I figured out what the problem is with this: firmware ...
2
votes
1answer
120 views

dd decreased the size of ssd

My 32 Gb ssd was partitioned with 8 Gb and 29 Gb. I used dd to write ubuntu iso onto my pendrive but accidentally wrote it to my 8 gb partition of my ssd. Now gparted dosent show that 8 Gb partition. ...
0
votes
1answer
80 views

Clone an Ubuntu machine with software RAID

I need to migrate my dedicated server to a new one: Both server are hosted remotely, I've no access to physical machines, only root ssh The old server is running Ubuntu server 13.10, ...
6
votes
2answers
550 views

Burned CD-R are not identical to the input iso image, why?

I have the issue that sometimes when I burn an iso image to a CD-R with: sudo wodim -v driveropts=burnfree -data dev=/dev/scd0 input.iso And then read it back out again with: sudo dd if=/dev/cdrom ...
16
votes
2answers
9k views

Mount single partition from image of entire disk (device)

I made an image of my entire disk with dd if=/dev/sda of=/media/external_media/sda.img Now the problem is I'd like to mount an ext4 filesystem that was on that disk but mount -t ext4 -o loop ...
1
vote
1answer
251 views

Trying to mount ddrescue image from a 1tb crashed ntfs drive

It was time, after 5 years my 1tb external drive with all of my family photos and all my music crashed. Stupidly enough, i did not have two drives in raid, which i will do in the future. I ...
0
votes
1answer
40 views

does this work in Ubuntu correctly - or is there missing something?

This (gawky) question is concerning command dd: dd if=/dev/DVD of=whatever.iso seems not to work ... and then output follows like: could not open /dev/DVD - file or directory not found Is ...
1
vote
1answer
125 views

when using DD how is bs=1 count=512 different than bs=512 count=1

I was taking a forensics exam. I used dd to image the device: /dev/sdb the command I used is: # dd if=/dev/sdb of=SDB.IMG I continued on to extract the MBR # dd if=SDB.IMG bs=1 count=512 ...
5
votes
1answer
15k views

How do I use dd to clone an external USB drive installation to a local hard disk?

can I use the dd command to clone my ubuntu installation from my external disk to my local hard drive. will it even boot? I think I can, but not sure. do I need to make the output partition on my ...
0
votes
1answer
73 views

Switching back from Gnome to Unity, wiping Hard disk

I am new to Ubuntu. I installed 12.04, which runs Unity. I decided to try Gnome 13.10. My PC did not particularly like Gnome so I decided to switch back to Unity with a fresh re-install, hoping any ...
6
votes
4answers
2k views

Drive reporting incorrect free space

So I swapped my shiny SATA SSD for an even shinier PCI-E SSD. I run my core OS on the SSD because it's silly-fast. I did this on my old SSD so I created a new EXT4 partition and then just dded the ...
0
votes
1answer
264 views

Is sudo dd taking too long to wipe hard drive?

I have a 200gb HDD which I removed from a macbook due to several corrupt files in startup. One thing led to another and I decided that I needed to format the drive. I used the command sudo dd ...
1
vote
2answers
135 views

Backing up with dd

I follow the instruction in this post, using the command dd if=/dev/sda1 | gzip > disk.img.gz but the imaging does not seem to stop. Is it because the disk.img is being put (as default) in my ...
0
votes
2answers
297 views

Can I dd if=/dev/sda to of=/dev/sdc3 (drive to partition)

Can I dd if=/dev/sda of=/dev/sdd3 (copy drive to partition) ? Will it be a problem? The source and destination drives with their respective partitions are as follows: --Source Drive details-- Disk ...
0
votes
2answers
599 views

copy files but skip errors

A friend has a failing hard drive, and hasn’t received a new hard-drive to clone to yet. He wants to copy the files to an external drive but the copy function keeps failing on some error (which has to ...
1
vote
2answers
320 views

Can I copy 2 partitions at a time with sudo dd

I have copied Windows from one hard drive to another with SUDO DD many times successfully. It was always from a smaller SSD (120 GB) to a at least same sized or bigger SSD. I could always copy the ...
1
vote
0answers
60 views

Restore partition from entire hdd image

I backed up my hdd using # dd if=/dev/sda bs=8M | gzip -9 > "/media/[...]/sda.gz" and have this additional information: # fdisk -lu Platte /dev/sda: 500.1 GByte, 500107862016 Byte 255 Köpfe, ...
0
votes
0answers
88 views

can't work with Ubuntu live CD

Trying to clone a hard drive using dd (that can not be mounted while doing a dd) I use the live CD to boot from and use the "Try Ubuntu" option. However, I get the error "The system is running in ...
0
votes
0answers
94 views

Bootable usb stick created in MacOS X with dd doesn't boot, what I did wrong?

I have created a USB Stick according with the dd command and complete OK all the operation but when I try to get it booting with alt/option I don't see the USB option. There is something wrong I made? ...
0
votes
1answer
671 views

how to backup data from usb drive using dd or dd_rescue in ubuntu

I mistakenly deleted some important zip files from my micro-sd card. I want to do data recovery on my micro-sd card. Before doing that I want take image backup of my sd card data, so that I can have ...
0
votes
1answer
256 views

“Bad file descriptor” with /dev/stdin using dd

I've been using this method (Running off a live CD on both ends, and in root shell, as suggested in another of my questions) to clone one computer I've got set up to my liking to four others with the ...
0
votes
1answer
181 views

Data recovery of file with special file extension

This question might seem's to be similar but it is not, what I want to ask is as follows, I have a flash drive. It had files in it which are very important to me. But accidentally it was formatted. ...
1
vote
2answers
236 views

Permission denied using dd to clone main drive

So I'm trying to clone the setup of one computer to 4 identical machines on the same network. I don't fancy the idea of meddling with the insides of the computer, so I'm following the method outlined ...
0
votes
1answer
160 views

How do I know if my SSD is damaged?

When I use 'dd' to make an image of my sad, I get the message: dd: /dev/disk1: Input/output error I've tried on Mac and Ubuntu (the Mac output is above) and the result is the same. My question is: ...
0
votes
1answer
141 views

Command to restore files from an unknown file format?

I have many directories inside a parent directory and using dd i gave the parent directory .img extension as following: dd if=/home/xyz/parentdirectory of=/home/xyz/backup_parent.img How do I get ...
0
votes
0answers
125 views

Missing operating system when restoring ubuntu partition with `dd` on MacBook Pro

I have a MacBook Pro (7,1) where I installed Ubuntu successfully. I have now changed hard drive, and restored MacOSX successfully. I then went about restoring the ubuntu partition, and copied it ...