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

learn more… | top users | synonyms

0
votes
4answers
237 views

Can I dd from my current hard drive to another hard drive while running the OS

My initial thought is that this is a bad idea. But let's assume that I can't take a USB stick into my lab to run a live-Linux distro, and my computer has only 2-SATA ports. I have one 80GB SATA drive ...
0
votes
3answers
15 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 ...
2
votes
2answers
622 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
2answers
91 views

Accidentally erased SSD with “dd”, any chance of recovery?

I was trying to clone a SSD last night and made a very simple, stupid mistake. Instead of doing dd if=/dev/sdb of=/dev/sda, I did the reverse, dd if=/dev/sda of=/dev/sdb Essentially I read from a ...
0
votes
2answers
198 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 ...
0
votes
2answers
56 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 ...
4
votes
1answer
167 views

Why is my 500GB hdd not readable after dd'ed on a different 500GB hdd?

Accidentally formatted an important external 500GB hdd yesterday. Not an SDD, 2.5". (Quick) formatting occured while installing windows xp on it. I had the wrong usb drive plugged in. ~600MB are ...
2
votes
1answer
227 views

Cloning a Windows partition through unix

my boot disk has chameleon installed with a linux partition and a second, empty partition that I would like to use with Windows7. Since you never know how much things will Win7 ruin when installing I ...
1
vote
1answer
792 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 ...
1
vote
1answer
292 views

Copy existing Ubuntu drive to partition on new hard drive

I have a new laptop with two partitions, one is currently loaded with Windows 7, the other is blank. I'm pretty familiar with using dd to backup/copy drives, but I'm wondering how I will deal with ...
0
votes
1answer
24 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
24 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 ...
0
votes
1answer
307 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 ...
0
votes
1answer
85 views

Use Linux dd to copy and read file at specified location

I want to use the dd command to write one file at any location of the hard drive and then to read the same file from this location. I need to be independent on any file system or partitioning. It ...
0
votes
1answer
94 views

Created image of single partition from Imac harddrive using dd - how to mount?

Alright, you'll have to forgive that I don't have an abundance of knowledge with using these tools. I've tried to follow the tips provided in this thread: How to mount a HFS partition in Ubuntu as ...
0
votes
1answer
108 views

Rescue data from ext4 ISO image?

so, my SD card got broken and cannot be read completely (escpacially the directory I want to read from has problems). I was able to create an ISO image of the partition using dd but cannot mount it. ...
0
votes
1answer
268 views

Restoring a split image created by dcfldd

Say an image is generated by dcfldd using the following command: dcfldd if=/dev/sourcedrive hash=md5,sha256 hashwindow=10G md5log=md5.txt \ sha256log=sha256.txthashconv=after bs=512 conv=noerror,sync ...
0
votes
1answer
70 views

Fedora restored from cloned image has broken image

Ive had the following issue. Yesterday Ive dd-ed a HDD with fedora 18 which was split in 3 parts: fedoras sda1 which was ext4, sda2 which was the LVM and sda3 which was ntfs storage partition. Ive ...
0
votes
1answer
136 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 ...
0
votes
1answer
194 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 ...
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
1answer
1k 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 ...
3
votes
0answers
1k 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
78 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
54 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 ...
2
votes
0answers
307 views

Why does my disk ignore erase and write commands to some sectors?

I did an ATA secure erase on an SSD (with SystemRescueCD and hdparm). Some parts of the disk are reset to zero, but some parts are not. In particular, the MBR and the boot sector of a Windows Vista ...
1
vote
0answers
47 views

Backing up MBR - why not restoring the boot code?

I've seen two pages explaining how to backup & restore the MBR: Linux: How to backup hard disk partition table (MBR) UNIX / Linux: Copy Master Boot Record (MBR) They've shown an example with ...
1
vote
0answers
201 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 ...
1
vote
0answers
447 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
0answers
395 views

Resume interrupted multiple-file disk images created with dd?

This is the effort to recover a failed hard drive containing several important research works. To sum up: with the method I tried (described below) I could not resume failed multiple images created ...
1
vote
0answers
307 views

Is it possible to repair iso images incorrectly made with dd in OSX Snow Leopard?

About a year ago, I made rips of a bunch of my CD/DVD games and packed the originals away. The problem is that now I'm trying to use WinXP Pro on VirtualBox on OSX Snow Leopard to play these iso ...
1
vote
0answers
68 views

Maintaining peak IO potential with DD / CP

I wanted to copy a file (40 gig dataset) from a single drive to a dual disk raid-0 drive. I tried with CP and it sustained read - 4mb and write - 11 mb (doesn't make sense I know (must be the stripe ...
0
votes
0answers
8 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
0answers
44 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
0answers
55 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 ...
0
votes
0answers
124 views

mdadm RAID1 on OS drive by cloning, then changing the UUID on 2nd disk?

Ok, I've been doing some research into installing ubuntu server onto an mdadm raid1 setup and ive come across a couple ways: 1) install it onto two drives by using the "manual" method on the cd ...
0
votes
0answers
81 views

cloning a HD using dd: can this cause filesystem problems using ext4?

Background: hard drive A has a large LVM partition inside which a number of Ext4 filesystems live. hard drive B is of a different make/model and of larger size. Questions: If I image (using dd) ...
0
votes
0answers
46 views

Why cannot dd write more than 790 MB of null bits?

Using dd to fill a 250 GB partition with 0-bits, I cannot have more than 790 MB written. dd is run from GParted LiveCD. I tried all these: dd if=/dev/zero of=/dev/sdb2 dd if=/dev/zero of=/dev/sdb2 ...
0
votes
0answers
99 views

backup strategy for Linux Machine configured as LAN gateway

I am total newbie to Linux Disk and backup management tasks, but I need to backup a CentOS 6 Linux Box configured as gateway for a small LAN. This box has been already been configured for gateway ...
0
votes
0answers
99 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 ...
0
votes
0answers
217 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 ...
0
votes
0answers
202 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
0answers
223 views

Clone Image Without Empty Blocks

I've been using dd if/mnt/sda1/images/$1 of=/dev/$2 to clone some embedded images for compact flashes. I used to only be using one brand of CFs, but, now I have two of them (both 2g, but obviously ...