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

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

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
24 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
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 ...
0
votes
2answers
25 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 : ...
1
vote
1answer
29 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
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
1answer
23 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 ...
2
votes
1answer
62 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
36 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
49 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
25 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
33 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
34 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
35 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
465 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
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 ...
1
vote
2answers
97 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
43 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
56 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
196 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
312 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
60 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
143 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
228 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
79 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
92 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
106 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
86 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
48 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
187 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
96 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
186 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
105 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
54 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
126 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
169 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, ...
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 ...
1
vote
2answers
596 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
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
1answer
95 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
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 ...
4
votes
3answers
547 views

How to tell if you have a fake sd card

I've been given some flash drives that appear to be fake. The silk screen says 64 gigs, and they show up as 64 gigs to the OS. However if you attempt to write any files larger than 4 gigs the file ...
10
votes
1answer
5k views

Mac OSX - Why is /dev/rdisk 20 times faster than /dev/disk

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

Windows 7 on GPT partitioned SSD backup using dd

i have a SSD device as primary sata hard drive witch contains my os. On this device i have Windows and Linux Mint installed. Now i want to make an image of my windows installation so that i can ...
-1
votes
1answer
90 views

what are the types of error messages that dd outputs? [duplicate]

What are the error messages that dd outputs? I tried to look at manual, but it does not say anything about it. Or I do not know how to look at manuals (man). Edit: OK. I'll make it simple: what error ...
2
votes
1answer
118 views

What happens if dd encounters errors while output of dd is being piped to gzip?

Suppose that dd if=/dev/sda bs=100M | gzip -c > somefile.img.gz is done. If errors occur in dd, do I get to see error messages in terminal, or do they get ignored? Also, suppose that dd ...
-2
votes
1answer
5k 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 ...
2
votes
2answers
1k views

DD: No Space Left On Device

I've been messing with an old Brother WP-2200 and I've hit a bit of a snag. I was hoping I would be able to make images out of the floppies I typed on it using dd under Linux. Unfortunately that ...
0
votes
0answers
100 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 ...
1
vote
2answers
7k 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 ...