This command is used to do low level copying of data.

learn more… | top users | synonyms

1
vote
1answer
134 views

Why is my synchronized I/O so bad compared to direct?

I have two 3TB disks in a software RAID 1 setup and the host OS is 64bit Debian wheezy. Issuing: dd if=/dev/zero of=test bs=64k count=3k oflag=direct && rm test Yields: 201326592 bytes ...
0
votes
1answer
261 views

1. XFS: how to find path / directory of inodes 2. XFS in a file -o loop and ddrescue?

how to find the full original file/directory path of some damaged XFS inodes? and how to list the last modified few 10000 inodes (=edited or moved files/directories) rapidly among millions of ...
0
votes
0answers
90 views

xfs.image I/O error but harddrive is fine?

Please help to determine, how to may fix this XFS filesystem and whats actually wrong? Thanks! An XFS image runs productive mounted -o loop on debian. a million of files are read every day, only ...
1
vote
1answer
217 views

Server crash when creating a swapfile on a running machine (CentOS Linux)

I created a swap file with root on a running server, using swapfile creation guides which I found on the net (http://blog.serverbuddies.com/adding-additional-swap-space-to-your-linux-server/m Create ...
4
votes
2answers
3k views

Why is Clonezilla faster than dd?

On my SSD imaging (Source and Destination are 2 SSDs) I get 12GBpm using CloneZilla while with dd I get only 5GBpm. What makes Clonezilla so much faster than dd?
2
votes
5answers
3k views

Creating a 80GB image with dd on a FAT32 drive

I have a question concerning the creation of an drive image with dd. Normally i would simply type: "dd if=/dev/foo of=/dev/bar". But in this case i only have a fat32 formatted drive at hand, which ...
6
votes
1answer
365 views

Experiences with using `dd` to copy multi-partition, multi-FS device

I have a disc with several partitions on, each of which has a different kind of file system (ext3, ext4, and, let's say, NTFS). I want to know if I can copy the whole disc to a new one (which is of ...
0
votes
1answer
90 views

how to boot from a backup disk created by dd

I use dd command to backup a disk. #dd if=/dev/sda of=/dev/sdb but when I boot from the backup disk, I got a error message check filesystem failed! I do not know how to settle this problem. I ...
1
vote
1answer
510 views

Operating System not found when loading DD image in VMware

I provide much details below to hopefully make my issue as clear as possible. Using dd if=/dev/ps3da2 of=/mnt/edexhdd/EDPS3LINUX.iso bs=16384 I copied a fairly huge partition from a physical Linux ...
4
votes
1answer
597 views

Backup root partition with dd without downtime

Is there a way to remount / as read-only and buffer new writes in RAM, so can backup the / media with dd? I want to create a bootable image from my SoHo-Server (Debian 6) without a live cd or any ...
1
vote
2answers
550 views

Large delay starting “dd” write in background in bash even when using nohup

I wrote a small script to print the memory usage during a large sequential write of a file. #!/bin/bash rm result echo 3 > /proc/sys/vm/drop_caches sync; echo start nohup time dd if=/dev/zero ...
4
votes
3answers
800 views

Recovering with DDRescue Cannot Complete (write error: Read-only file system)

I'm trying to recover a corrupt VDI using vdfuse to mount the VDI and using dd_rescue to rescue the borked partition. dd_rescue seems to be working fine but once it reached about half of the ...
0
votes
2answers
944 views

Clone Flash Drive in Linux using DD

dd if=/dev/sda of=/dev/sdb I want to create a clone a bootable USB stick. lets say sda is 2GB sdb is 32GB. The above line will create a replica but the usable size will be 2GB. How can I use the ...
1
vote
0answers
236 views

Backing up VMs to a tape drive

I've got myself one of these fancy tape drives, HP LTO2 with 200/400 GB cartridges. The st driver reports it like this: scsi 1:0:0:0: Sequential-Access HP Ultrium 2-SCSI T65D I can ...
-1
votes
1answer
138 views

Cloning my hard drive as a backup [closed]

At the moment, I have an Ubuntu 11.04 installation on a single 500GB hard drive in my laptop. The hard drive is partitioned into four parts: 500MB for the boot information, 2GB for the swap ...
4
votes
2answers
3k views

create image of a USB drive without unallocated partition

I have 8GB USB drive attached to my system which looks like this: [root@host]# fdisk -l /dev/sdb Disk /dev/sdb: 8462 MB, 8462008320 bytes 255 heads, 63 sectors/track, 1028 cylinders Units = ...
0
votes
1answer
516 views

Drive cloning dd or rsync/sync via KVM

I've got a crash and the system won't boot correctly. I am getting errors like: ata3.00: status: { DRDY } ata3.00: status: { UNC } What would be the best way to save the main drive to make the ...
0
votes
2answers
294 views

Using dd command and running out of space while cloning drive to img

I have a problem with drive cloning. Im using dd on damaged disk with bad sectors trying to make an image from it. Im booting computer with Live Linux CD . Damaged disk: sda 146GB (NTFS) External ...
5
votes
2answers
4k views

Mounting a linux image built with “dd” on Mac OSX 10.7 [closed]

I recently did a ssh root@myserver "dd if=/dev/xvda " | dd of=/<localpath>/myimage.img as instructed by my VPS server docs at linode. I did this before to another linux system and mounted it ...
17
votes
3answers
2k views

Securely wipe an entire Linux server with itself

I have remote ssh access and root access. I do not have physical access. I'm not looking for solutions involving booting into anything, I want to do this from what is currently running. OS is SL6. ...
4
votes
4answers
422 views

IDE compatability with SATA image

We had an old CNC machine's hard-drive fail recently. The hard-drive is an old 1275MB IDE (Seagate) and there were defiantly bad sectors on it. I was able to image the contents of the drive onto a ...
1
vote
0answers
521 views

Heavy disk write on a Debian VPS gives “ata1: lost interrupt (Status 0x50)”

I have a new Debian VPS that appears to fail almost every time I run a heavy disk write test on ext4 filesystem. The filesystem goes to read-only mode and "ata1: lost interrupt (Status 0x50)" is ...
2
votes
1answer
2k views

dd oflag=direct 5x fast

I have Centos 6.2 in server with this specs: 2xCPU 16 Core AMD Opteron 6282 SE 64GB RAM Raid controller H700 1GB cache NV - 2HD 74GB SAS 15Krpm RAID1 stripe 16k (OS Centos 6.2) sda - 4HD 146GB SAS ...
1
vote
2answers
174 views

How to delete the MBR (Master boot record) out of an image file?

I have a QEMU image myserver.img that is about 20GiB. The file serves as a "virtual" hard disk for the server. Now the first 512 bytes contain the MBR, and I am trying to overwrite those bytes with ...
2
votes
3answers
95 views

Backup with dd upon reboot

I'm trying to implement the easy to maintain backup solution for our local linux server. The goal is to be able to restore the whole system from image file. What I am thinking of is just to issue ...
1
vote
1answer
692 views

linux dd software raid?

Please advise what is the best way to create linux software raid image with dd? /dev/md0 consists of /dev/sda & /dev/sdb. I ran dd if=/dev/sda of=sda.img same for sdb Restored on the remote ...
9
votes
2answers
1k views

How can I split a drive image created with 'dd' into separate files for each partition?

I created an image of a failing drive with: dd if=/dev/sde of=/mnt/image001.dd The drive had only two partitions: Device Boot Start End Blocks Id System /dev/sde1 * ...
4
votes
2answers
7k views

LVM -> dd -> LVM?

I've 'cloned' a LVM partition using dd over ssh to a remote server(emergency backup...). On that remote server, is it possible to 'transform' the dd cloned file back into a LVM partition? Thanks. ...
1
vote
2answers
1k views

Partition size inconsistency after dd clone

We have recently upgraded a system HDD - it was 160GB, now 2TB. We upgraded as we were running low on space, mainly on /usr, and also on /home. I prepared the new drive with a Live CD and GParted ...
3
votes
2answers
217 views

How to view a full disk data (more than one partition) cloned with dd

I've a disk image done with dd: dd if=/dev/sda of=/mnt/fulldisk.img /dev/sda have some partitions (Windows+Linux) My problem is: I need to know if the image is done well, how can I access data? ...
3
votes
2answers
924 views

In Linux, how can I create thin-provisioned file so it can be mounted and a filesystem created on it?

I am building a system that gives users certain amounts of disk space. The way I am doing it is: create a file with dd create an ext4 filesystem inside the file mount the file and tell the user ...
1
vote
1answer
949 views

Clone hard drive Solaris 8 (SunOS 5.8)

I have an old 73gb SAS SCSI drive, so I plugged in a new 73gb SAS SCSI and I want to clone everything from it to the new drive.. I want to clone SCSI hard drive SD20 to SD21. Is there an easy way to ...
-1
votes
1answer
81 views

How does this benchmark calculation work?

I am testing disk I/O performance on a server of mine, which will eventually run Postgresql. I am following this web site to perform my benchmarks. The benchmark consists of running dd and ...
1
vote
2answers
302 views

Disk cloning using dd thru gzip - how effective is it? [closed]

Is gzip or gzip -9 for a disk clone worth the extra time that it takes to perform the compression? Does it yield a significant saving? There is very little information on how effective piping data ...
1
vote
1answer
99 views

Cloning a two partition HDD onto a smaller HDD and maintaining MBR

I have a hard disk(A) containing two partitions - A1 is a NTFS partition containing a windows OS, and A2 is an NTFS partition containing data. I want to copy both of these partitions onto a different, ...
4
votes
6answers
2k views

How can I know if netcat & dd are working?

I'm running on server A (Source): dd bs=16M if=/dev/sda|bzip2 -c|nc serverB.example.net 19000 On server B (Destination): nc -l -p 19000|bzip2 -d|dd bs=16M of=/dev/sdb Do I need to see some ...
0
votes
1answer
288 views

Oracle 10g cannot start after cloning server with dd

I used dd to clone a x4100 server with Linux Red Hat. The hardware is identical for old and new servers. Then I changed IP address and host name. The newly restored server is up and running but Oracle ...
0
votes
1answer
238 views

LVM tools on raw block copy

I have several raw block copies of disks that have both NTFS and Linux partitions. The parition tables generally have both a Windows NTFS partition and a Linux LVM partition. I need to work on all of ...
1
vote
3answers
1k views

Extracting Data from Raw Hard Drive Copy?

A while back something happened to my hard drive that wiped out the partition table and left my data unreadable. I had other uses for the drive, but I didn't want to give up on trying to recover the ...
0
votes
1answer
744 views

Writing with dd in an NFS mount point

I am trying the following: sudo dd if=/dev/sda1 of=/mnt/nfs/l bs=1M It fails: dd: opening `/mnt/nfs/l': Permission denied However, normal file creation and writing with "cat" works. What could ...
0
votes
2answers
210 views

copy boot-able partition

I have an disk image with 3 partitions: first partition (hd0,0) is boot-able with GRUB1 with the following configuration GRUB file: default=0 timeout=5 title Bank A root (hd0,1) ...
0
votes
1answer
121 views

Does writing many times to a HDD cause early failiure

How many times could i run something like dd if=/dev/urandom/ of=/dev/sda before the hdd starts to suffer? I thought in a modern hard drive the head doesn't touch the platter, but i am still not ...
0
votes
2answers
604 views

CentOS 5.5 installation on disk image

Today, in order to install CentOS 5.5 I'm using kickstart script. I would like to install CentOS on different way: Create disk image (using dd command) Create filesystem on this disk image using ...
0
votes
1answer
474 views

sfdisk - partition creation problem

I'm trying to create disk image with 2 partitions: First partition: 1Mb for boot and second partition of the maximum capacity dd if=/dev/zero of=flash.img bs=1M count=10 /sbin/sfdisk flash.img ...
8
votes
1answer
2k views

combine partitions to one disk image

I have 3 images. Each image was done by cloning (by dd) a partition (these partitions formatted using ext3 file system). One partition is boot-able with GRUB1 (CentOS) How can I combine them to one ...
0
votes
2answers
435 views

How to clone with cat?

I want to clone an 8.1gig bootable disk to an 8.0gig disk and have the clone remain bootable. dd causes problems because the destination disk is a few mb smaller than the source. Can "cat" help me ...
2
votes
2answers
2k views

Monitor Disk I/O Using DD

I've bee looking into the possibility that my server is experiencing a lot of iowait issues. I've found a lot online about running the dd command. I am unable to run this conv: [root@vps ~]# dd ...
2
votes
2answers
523 views

After using dd new disk cannot be booted and partition tables lost

After I used dd to clone a 120 gb hard disk to new empty 320 gb hard disk, the new disk cannot be booted. And fdisk tell me the partition table is no valid and Gparted just cannot edit the ...
0
votes
1answer
276 views

Clone a real server to a VPS

I have an old server ( Red Hat Enterprise Linux ES release 2.1 (Panama) ) that is in desperate need of replacing, is it possible using dd / ssh to clone the server onto a Rackspace VPS? Or more ...
0
votes
3answers
754 views

SME Server: How do I do nightly Ghost-like backups?

I need to drop another hard drive into my company's SME Server-powered fileserver and figure out a way to do a nightly clone backup of the entire filesystem so that, if the hard drive fails, I can ...