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

learn more… | top users | synonyms

0
votes
3answers
32 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
78 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
162 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
1answer
200 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
461 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
238 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
1answer
71 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
58 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
44 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
186 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
2k 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
38 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
360 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). ...
1
vote
1answer
3k 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
2k 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
83 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 ...
3
votes
2answers
831 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, ...
7
votes
2answers
7k 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 ...
3
votes
1answer
651 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
210 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
353 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
223 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
92 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
575 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
172 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
582 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
220 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
56 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
478 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
972 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
3answers
2k 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
1answer
154 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
62 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
841 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 ...
37
votes
2answers
20k views

Why is “/dev/rdisk” about 20 times faster than “/dev/disk” in Mac OS X

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
2k 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
286 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
238 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 ...
5
votes
1answer
17k 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
3k 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 ...
5
votes
2answers
29k 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 ...
0
votes
1answer
225 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. ...
4
votes
2answers
7k views

How to resize img file created with dd?

I have a DD image from a 4GB SD card that has two partitions, these two partitions are only using up about 800 MB and as such I wish to reduce the size of the img fie. Does anyone know of a way to ...
2
votes
2answers
3k views

Clone hdd with bad sectors

I have a 250 gig hdd and a 240 gig ssd. I want to transfer the data from the 250 gig hdd to the 240 gig ssd. I have tried a variety of methods with no success: (keep in mind i can boot perfectly from ...
8
votes
1answer
9k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd ...
1
vote
1answer
649 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
1k views

dd restore image to HDD (having issues)

I had made a complete image (at least I think I have) using dd if=/dev/sda of=/mnt/sda.img bs=32M where mnt is an external HD I use. I came to restore that image this morning, so I booted up on a ...
0
votes
1answer
156 views

How to do a 1:1 copy of a Windows HD [duplicate]

I have a Windows 7 installation on a separate HDD, since installing Windows takes at least half a day on my machine do to the fact that I have to install a big list of drivers, I would like to do an ...
0
votes
2answers
996 views

Can dd be used to make an exact disk image(copy) of HDD and SSD?

So I want to take a disk image of my SSD/HDD, but I want my disk image to be exactly the same as every bits/information of my physical hard disk. (so that if there are files deleted but recoverable ...