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

learn more… | top users | synonyms

-1
votes
1answer
20 views

Best way to duplicate Linux system drive

I'm upgrading a Centos server's core system harddrive from an IDE drive to a new SATA drive. The server already has 3 other SATA drives running being used as storage areas. What is the best process ...
1
vote
1answer
21 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
17 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
38 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
37 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
31 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
54 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
31 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
40 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
34 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
34 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
19 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
34 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
72 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
12 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
39 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
201 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
62 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
108 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
30 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
39 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
40 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
585 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
29 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
129 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
77 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
437 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
482 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
63 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
259 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
758 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
98 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?
0
votes
2answers
105 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
1answer
122 views

Linux dd Command - Possible to do a full disk copy from larger to smaller drive? [duplicate]

I have a 500 gig drive as well as an 80 gig drive. I would like to clone the 500 gig over to the 80 gig and I think it might work because there is not 80 gigs of data on the 500 gig drive. Will this ...
0
votes
1answer
121 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 ...
1
vote
0answers
52 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 ...
0
votes
1answer
252 views

Format flash drive without partitions

I'm trying to format a flash drive with a FAT partition to use in my car stereo, but running into a small problem. I've tried making it all one big FAT 16 partition, and the stereo won't accept it. ...
1
vote
1answer
109 views

Use dd to copy 2 partitions to ISO

I have a bootable 16GB USB with three partitions, I want to copy the first 2 to an ISO file. Found this question but it wasn't helpful to me. +-------+-------------------+-------------------+ | ...
1
vote
2answers
254 views

how to recover data from my disk - I accidentally copied with dd an iso on it

I wanted to create a bootable usb from an iso image and i accidentally put as the output of the dd, instead of my usb drive, one of my hard disks. The iso was 3,3 GB and my disk is 1TB! And it was ...
1
vote
1answer
117 views

Bootable linux backups without DD

I'd like to backup the state of my system. It only runs Manjaro. What I've done in the past when I need to install something else on the machine temporarily is just to dd the whole drive to a file ...
1
vote
0answers
55 views

Mac/PC hybrid CD ISO to USB? [duplicate]

I have a once-a-year project that I work on around this time every year, which consists of a set of HTML and CSS files (kind of like a saved copy of a website) that get distributed on professionally ...
0
votes
2answers
174 views

Any way to make partitioning tools see kpartx-created devices?

I have a dd'ed disk image file with me. I can use a tool like kpartx to create a device-mapper device from this disk image file. But partitioning programs like gparted and fdisk don't list my ...
1
vote
2answers
280 views

hdd recovery: can I speed up dd?

I am currently trying to recover a hard drive I accidentally formatted, but am of course, using dd if=/dev/sdb of=/dev/sdc conv=noerror,sync to make a backup to work on first. I have two questions, ...
1
vote
2answers
836 views

Installing Freenas on an SSD

Just wondering if anyone here has installed Freenas on an SSD. I know its meant to be on a USB pen drive. But Ive got a spare 64Gb SSD that I can install Freenas on and id like may be other stuff to ...
0
votes
0answers
87 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
1answer
109 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 ...