0
votes
1answer
30 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?
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
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 ...
0
votes
1answer
26 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
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
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
890 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 ...
0
votes
1answer
79 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
516 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 ...
0
votes
2answers
451 views

How come writing varying file sizes results in varying speeds? [duplicate]

Here is some output from the dd command: $ dd if=/dev/zero of=test.file bs=10M count=1 1+0 records in 1+0 records out 10485760 bytes (10 MB) copied, 0.130214 s, 80.5 MB/s $ dd if=/dev/zero ...
3
votes
1answer
2k views

Use losetup and dd to make filesystems images ready to be deployed

Introduction Using dd, one can easily backup the MBR and partition table of a disk. It's as easy as: dd if=/dev/disk2 of=~/Desktop/disk2_mbr bs=512 count=1 One can also backup whole partitions: dd ...
0
votes
0answers
103 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 ...
2
votes
2answers
623 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 ...
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 ...
1
vote
3answers
2k views

How to create an image of a Live system over ssh?

I have a question about a FreeBSD server that I cannot access at the moment. But because we would like to try some new stuff we want to create a backup of this system first. The question is: is ...
2
votes
2answers
350 views

Difference between DBAN and dd command to securely wipe a HDD

I have read about dd and see that it can be used to securely wipe a HDD. But there is also a program called DBAN to wipe the HDD as well. I know that using a live gnu-linux ISO I can wipe my HDD by ...
2
votes
2answers
452 views

linux DD disk backup - file smaller than disk?

I got small problem. I need to make a mirror of a disk. Zero it and then restore data. I'm using DD linux command to copy data to a file. sudo dd if=/dev/sde of=/media/Rozne-new/hitachi_disk2.img ...
1
vote
1answer
799 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
449 views

Cloning harddrive I/O errors after about 30 seconds

I am trying to clone a harddrive with important data to another harddrive to make sure we can keep those files safe. Now my old HD is a 500GB 3.5" and the new one is 1TB 3.5". My old HD is plugged ...
1
vote
2answers
799 views

how to prepare a harddisk for another computer

My old laptop died lately and I want to have it fixed by a repair-shop. Now first I want to clean the hard disk (via an external 2,5 inch casing). I managed to connect the drive via USB in order to ...
3
votes
1answer
544 views

Migrating to LVM

The drive on my Ubuntu media server is nearly full. I hope to add another 2TB of capacity to the machine and would prefer for all 3.5 TB to be recognized as a single drive. To complicate things, I ...
2
votes
1answer
892 views

Linux DD command partition -to- partition

I just used the DD command to copy the contents of one partition over to another partition on another drive, like this: dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=noerror sda2 partition was 66GB and ...
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 ...
2
votes
1answer
782 views

What is the difference between ghost and dd?

When I back up from one hard drive to another with Ghost I can switch those hard drives at will and the computer doesn't seem to mind. When I back up HDD A onto HDD B with dd, HDD B performs slower ...
14
votes
5answers
11k views

Why is my /dev/random so slow when using dd?

I am trying to semi-securely erase a bunch of hard drives. The following is working at 20-50Mb/s dd if=/dev/zero of=/dev/sda But dd if=/dev/random of=/dev/sda seems not to work. Also when I ...
1
vote
1answer
218 views

Can I use dd to clone two drives from two machines simultaneously?

To clarify, I have two machines: Machine1 and Machine2. Each machine has 2 disks (Machine1 has Disk1-1 and Disk1-2; simiarly, Machine2 has Disk2-1 and Disk2-2). Can I use 'dd' to clone Disk1-1 to ...
3
votes
2answers
5k views

Rescuing a hdd with bad sectors: dd vs gddrescue

Somewhere on the internets I read that gddrescue is superior to dd at least in terms of being able to distinguish between the amount of disk reads performed on a troubled sector. Is this really the ...
4
votes
1answer
2k views

Using dd with bad blocks on a harddrive?

I'm looking to use dd to make a clone of failing harddrive. My concern is there will be bad blocks for surely. So my question is with dd will a bad block leave a gap the size of the selected ...
2
votes
1answer
2k views

How to do a hexdump of first track of HDD?

How would i do a hexdump in Ubuntu for the first track of a HDD? I am looking for a winhex-esque output if that makes sense. The first track has 63 sectors, each 512 bytes long. I tried dd ...
0
votes
1answer
843 views

How to wipe one sector with DD?

What is the dd command in Linux for securely wiping sector 62 of a hard drive. This sector lies in track zero, begins at offset 31744 and is 512 bytes long. I'd like to know how to wipe it over 1000 ...
0
votes
1answer
3k views

osx sudo dd if=/dev/disk0 of=/dev/disk1

Am I doing this right? The process isn't very verbose I am upgrading my HDD, I have a larger external drive I want inside my macbook. I want to copy the contents and partitions of my internal mac ...
2
votes
4answers
251 views

Can I copy the Macintosh HD to migrate my data to a new Mac?

I want to get a new Mac. Can I simply dd a disk image from my older mac's hdd to the new Mac with a bigger HDD (this will be further partitioned, but the old osx drive will fit within one OS X-style ...
1
vote
4answers
590 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 ...
2
votes
3answers
448 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 ...
2
votes
2answers
146 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 ...
9
votes
7answers
2k 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 ...
1
vote
2answers
262 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 ...
8
votes
5answers
15k 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 ...