Questions tagged [dd]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
236 views

cleanup after "dd" operation

I'm using dd with "excl" option. If interrupted with CTRL+C "dd" leaves the the file it has created and not finished to write. I need to clean it up in such case with the trap INT. However, I don't ...
azerIO's user avatar
  • 385
1 vote
1 answer
4k views

How to create an image.dd file to be used in virtualbox?

I want to backup my Windows machine before I put Ubuntu on the hard drive instead. Following the instructions on the VirtualBox website it says to create an image.dd file using dd. I booted up from ...
Craig Angus's user avatar
28 votes
3 answers
59k views

How to pad a file with "FF" using dd?

How to pad a file with 0xFF using dd? This command will pad the output file with zeroes until the file size reaches 100 KB: dd if=inputFile.bin ibs=1k count=100 of=paddedFile.bin conv=sync However, ...
XP1's user avatar
  • 1,041
2 votes
1 answer
1k views

What number of bytes should I set the bs to in the dd command?

I have just created a usb boot disk so that I can install Fedora 14. I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean ...
ant2009's user avatar
  • 3,115
2 votes
1 answer
614 views

wipe disk with dd

I know we can wipe a hard disk using random data or zeros, but is it possible to wipe using a fixed string ? e.g. is this correct? dd if="string" of=/my/harddisk ... Also, does the options below ...
user avatar
2 votes
5 answers
3k views

Is it a very bad idea to create disk image of mounted disk?

I would like to backup my server. For example using dd: dd if=/dev/md0 of=/some_network_share I wonder if this image will be vary inconsistent if /dev/md0 is mounted? Would it be possible to convert ...
Maciek Sawicki's user avatar
2 votes
4 answers
4k views

OSX: can I dd a usb thumb drive into a file?

I have mounted a usb thumb drive into my MBP. Here is the partial output from mount /dev/disk2s1 on /Volumes/KINGSTON (ntfs, local, nodev, nosuid, read-only, noowners) When I tried $ dd if=/dev/...
Anthony Kong's user avatar
  • 5,018
0 votes
1 answer
493 views

"Target filesystem doesn't have sbin/init" after cloning boot disk with dd

I cloned a boot disk (bootloader, / and swap partitions) with dd to the same size disk (bad sectors started to appear). Got 1 reading error in the middle of the disk. After I swapped the disks I ...
Art Shayderov's user avatar
5 votes
2 answers
14k views

How to Copy .VHD File to Physical Hard Disk Using DD Command

I have read other question/answers on this site that say this is possible, but I'm wondering how it is done. I have tried the following command, which completes successfully, but the NTFS isn't valid ...
Jason's user avatar
  • 51
2 votes
3 answers
533 views

Advice on cloning disk

I'm going to buy a second disk for backup, the same size as my laptops. I want to mount it in a casing via usb and backup an entire hdd every soemtime. That's because I want the posibility to just ...
hks's user avatar
  • 121
1 vote
1 answer
1k views

Why does my dd backup of MacBook OS X fail to boot upon restore?

I created a backup of a MacBook hard drive (WD2500BEVS-88US) by hooking it up as a secondary drive on my linux system (Ubuntu 10.10). I used the following command: sudo dd if=/dev/sdc of=/home/backup....
James T's user avatar
  • 10.1k
2 votes
2 answers
2k views

What does dd do when the destination drive runs out of space?

I tried to make a drive image using ddrescue, but I'm not sure if the destination drive had enough space. Does dd just silently continue to try writing to the drive even when it has run out of space? ...
endolith's user avatar
  • 7,607
9 votes
2 answers
8k views

dd gets slower while reading and writing

user@user-laptop:~$ sudo dd if=sd_backup of=/dev/sdd bs=4M conv=noerror,sync 205520896 bytes (206 MB) copied, 28.564 s, 7.2 MB/s 247463936 bytes (247 MB) copied, 57.1285 s, 4.3 MB/s 260046848 bytes (...
Karel's user avatar
  • 195
2 votes
1 answer
213 views

Looking for advice on using dd to backup a dual boot laptop

My questions boils down to this. If I do "dd if=/dev/sda of=usbdrive" can anybody confirm that this will get everything including mbr/partition information/all four partitions and create a drive that ...
AvatarOfChronos's user avatar
5 votes
2 answers
5k views

faster dd backup by differential copy

im looking to use dd to back up my whole hard drive regularly but it takes around 1.5 hours and want to know if there is a faster way to back up. possibly just by updating the bytes which are ...
user61934's user avatar
  • 151
2 votes
2 answers
225 views

saving data from a failing 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 ...
intuited's user avatar
  • 3,391
1 vote
2 answers
3k views

Copy from CDROM is very slow in Ubuntu

I'm using the command to copy CDROM image: # dd if=/dev/sr0 of=./maverick.iso But it's very slow, at about 350k bytes/sec. I've searched the google, and try the command # hdparm -vi /dev/sr0 /...
Lenik's user avatar
  • 18.3k
25 votes
5 answers
19k views

How to erase a hard drive with unwritable sectors?

So I have a hard drive that is failing. I want to erase the data on it before sending it for replacement. I'm trying to use dd if=/dev/zero of=/dev/sdXX, but it stops at the first write error. How can ...
TestUser16418's user avatar
2 votes
1 answer
251 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 ...
Jack's user avatar
  • 465
1 vote
4 answers
306 views

Creating an image of my hard drive

I've been thinking of making an image of my laptop's hard drive for backup purposes. What would be the best way of doing this? I know about dd but is there a more user-friendly way, perhaps a GUI ...
bizarrechaos's user avatar
9 votes
7 answers
3k views

How can I recover a crashed hard drive?

My hard drive from my MacBook crashed and died hard last week. I replaced the drive with a new one, and installed 10.6/Snow Leopard on it. The old drive is now in a usb enclosure, and I really need to ...
davethegr8's user avatar
3 votes
3 answers
785 views

Backing up to smaller drive

In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone ...
Dave's user avatar
  • 133
1 vote
1 answer
4k views

Is there a way to obtain the raw image from a Norton Ghost file?

I have a Norton Ghost .gho file, and basicly I want to extract the raw image out of this, for example to use with with tools like dd. (So using any symantec/windows tools is not an option). Is there ...
amo-ej1's user avatar
  • 645
9 votes
2 answers
13k views

Which way is the fastest to `dd` to the last 512 kilobytes of disk

I have a 512G disk and I want to clear the last 512k bytes at the end of the disk. I usually clear it by dd if=/dev/zero of=/dev/da0 the whole disk. Which way is the fastest to do this operation?
teerapap's user avatar
  • 193
1 vote
2 answers
299 views

Harddisk formatting with dd return error

I tried to format my harddisk (160 GB) with the following command dd if=/dev/zero of=/dev/sda After some 3 hours, following error came up: dd: writing to '/dev/sda' : No space left on device ...
Uthman's user avatar
  • 967
50 votes
6 answers
70k views

How Do I Find The Hardware Block Read Size for My Hard Drive?

I'm trying to figure out the optimal size for a large copy from my hard drive using dd. I'm trying to figure out what the best blocksize to use it, which I would assume is the hardware block size for ...
Flame's user avatar
  • 745
37 votes
7 answers
62k views

How can I find what /dev my DVD-drive is?

I'm on Mac OS X, have a DVD in the DVD-drive and can look at it in the Finder. I'd like to try to create an iso of it by using the dd command. But to do that I need to know what device to use as an ...
Svish's user avatar
  • 39.6k
3 votes
5 answers
2k views

dd producing corrupt ISO images on Snow Leopard (whether invoked from a script or the shell)

Alright, I am probably being an idiot here, but I am writing an ISO-ripping util that is really just GUI slapped on top of dd, and I can't coax the thing to produce non-corrupt ISOs on Snow Leopard. ...
znice's user avatar
  • 31
1 vote
1 answer
1k views

Restoring a HDD backup image from the Ubuntu Live CD

I want to restore a HDD image I have to my laptop's HDD while booted off the Ubuntu Live CD. The laptop's HDD is unformatted and has no partitions. I expected this to work: $ sudo dd if=/path/to/...
xyz's user avatar
  • 262
3 votes
3 answers
6k views

How do skip MBR & partition table while doing dd of a partition

I need to copy a SATA partition to external usb partition , both partitions are same in size but total disk size are different , i want to copy only the data and not concerned about boot sector and so ...
linuxnewbie's user avatar
0 votes
1 answer
2k views

Boot Windows XP from a raw disk image using Grub4dos:is it possible(and how to)?

Ubuntu can be booted from a disk image(via Wubi), BeOS Personal is booted from a disk image by default, too. So my question is: Is it possible to use grub4dos(or standard grub or any other bootloaders)...
user avatar
3 votes
3 answers
15k views

dd clone hard drive: Input/Output Error though "chkdsk" says OK

I've used dd to clone hard drives before using 'dd' and a live cd, but have run into a problem. The issue: dd fails with an "Input/Output Error" on /dev/sda3 , even though windows "check disk" (...
user31575's user avatar
  • 361
7 votes
6 answers
8k views

Mount raw CD-ROM image

Let's say I created a image like this: ddrescue /dev/disk1 MY_CDROM_IMAGE.img (/dev/disk1 is my CDROM drive) How can I mount this on my Mac? Note: The image created is not a IMG file - it is ...
Isaac Waller's user avatar

1
8 9 10 11
12