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

learn more… | top users | synonyms

0
votes
1answer
21 views

dd output file larger than input file when executed with conv=noerror,sync

I am trying to backup an LVM on one of my servers with the following command: dd bs=4M conv=noerror,sync if=/dev/vg_volgroup/LvmName | ssh myuer@myip "dd of=/home/myuser/LvmName bs=4M ...
0
votes
1answer
21 views

dd unable to write to tape drive

I'm trying to dump our online backups to tape; for obvious reasons I want to encrypt the data on the tapes, so to write to the tape I need to tar everything up, pipe that to openssl to encrypt it, ...
1
vote
0answers
20 views

How to restore a dd image to an EBS volume

I have a local dd image myimage.bin, which I want to use to create an AWS EBS volume. The only way I can figure out how to do this is to, 1) Launch an AWS instance 2) Create and attach an EBS ...
1
vote
1answer
43 views

Does 'lvremove' destroy data?

I assign a LV for each vm guest. When deleting a vm, I remove the corresponding lv running 'lvremove'. But is it necessary to destroy the data before running 'lvremove'? Does lvremove do the work of ...
1
vote
5answers
102 views

Does filling up disk with dd removes files securely?

I want to remove my files securely without worrying about anyone restoring them, I know I can use shred but it takes too long even with -n 1 so I thought maybe if I remove files and write on the disk ...
2
votes
2answers
49 views

DD over SSH from Server to Server

Is it possible to DD one server to another? Maybe through SSH? I've looked around and I have seen examples of DD using SSH from local to server and vice versa, but is it possible to do it from server ...
1
vote
2answers
112 views

Why does dd show slow disk speed first time?

I'm checking the disk speed of a hdd on CentOS 6 using dd command. The setup is a DRBD setup - with this server being primary. To ensure that I get correct values, I execute the dd command 3 times ...
0
votes
1answer
33 views

rsync, dd and then add to RAID 1, could cause database corrupted?

Firstly I have a HDD which has been setup as RAID, type Volume, not RAID 0 or RAID 1 ... and I wanna add one more HDD to setup a RAID 1 array. These bellow steps are what I've done. Detach from ...
2
votes
3answers
66 views

LVM: Using an image of a PV?

I have a logical volume spanning several drives. One of those drives (3TB, the largest of the bunch) is dying, and I am currently making an image of it (via ddrescue). I'm not yet sure on how to use ...
0
votes
1answer
36 views

Use dd or redirection to write to tape?

My Googling for writing to tapes with encryption have turned up various results. Most along the lines of piping tar to openssl similar to: tar cf - /home | openssl des3 -salt -k "Your-Password-Here" ...
0
votes
1answer
65 views

Correct way to copy vm disk

I have a VM’s disk to copy from one host to another for live migration. I can think of two ways to copy the VM’s disk. Do a snapshot of the Logical Volume in the original host, create a Logical ...
2
votes
1answer
82 views

Using dd on disks with different sector sizes

I would like to move a partition to a new drive. The old drive has a sector size of 512 bytes while the new one has a sector size of 4096 bytes. I tried doing a dd of the full disk, but that failed ...
-1
votes
1answer
179 views

Benchmarking GlusterFS & NFS on AWS using iozone and dd gives different results

I have tried benchmarking GlusterFS vs NFS on Amazon Web Services (AWS) using a m1.medium sized EC2 instance. We use the AWS EBS as the block store, with a XFS file system. Running Ubuntu 12.04 ...
1
vote
1answer
75 views

How to move partitions from 2 LVM volumes into one LVM on other disk?

i had 2 partitions with following layout Disk /dev/xvda: 376.4 GB, 376354897920 bytes 255 heads, 63 sectors/track, 45755 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size ...
1
vote
1answer
162 views

DD broke my whole partition - boot failed: not a bootable disk . Any way to recover it?

Im kind of freaking out here, if anyone can help me please help me... This happened to a Windows 2012 KVM virtual machine. I had a very important database running in it, if I could only recover that ...
1
vote
0answers
182 views

Differences between hdparm --read-sector and dd with “Current Pending Sectors”

This was originally an "answer" to How to use hdparm to fix a pending sector? I'd been getting SMART notifications for the same "Current Pending Sector" for days. The dd solutions around weren't ...
0
votes
2answers
67 views

Cancel /dev/zero before it finishes?

To clear a large hard drive I was using dd if=/dev/zero of=/dev/sda. Only later I realized from reading more sources that the default block size is 512, and if I want the process to go quicker I ...
1
vote
1answer
57 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
169 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
57 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
154 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
1k 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
2answers
38 views

Using dd for backup with a single disk

I have a RHEL5 Amazon cloud instance that I need to image to another instance in order to setup a test environment for some upcoming patching I'm doing. The server to be imaged is a production server. ...
6
votes
1answer
151 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
64 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
271 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
354 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
0answers
162 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
114 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
3answers
546 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 ...
4
votes
2answers
919 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
270 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 ...
5
votes
3answers
3k views

dd on entire disk, but do not want empty portion

I have a disk, say /dev/sda. Here is fdisk -l: Disk /dev/sda: 64.0 GB, 64023257088 bytes 255 heads, 63 sectors/track, 7783 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size ...
0
votes
2answers
219 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 ...
4
votes
2answers
2k 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
1k 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. ...
3
votes
2answers
320 views

Save data after accidental dd format

as embarrassing as it sounds I managed to dd a debian iso to an external hd instead of my usb pen drive. now my 1.5 tb western digital has 1 700mb partition named debian and the rest is unallocated ...
1
vote
0answers
401 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 ...
0
votes
2answers
580 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 ...
2
votes
1answer
1k 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
160 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
92 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
510 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 ...
8
votes
2answers
698 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 * ...
2
votes
3answers
4k views

Moving a Logical Volume directly from one server to another over the network?

I have a KVM host machine with several VMs on it. Each VM uses a Logical Volume on the host. I need to copy the LVs to another host machine. Normally, I would use something like: dd ...
1
vote
2answers
808 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
171 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
585 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
625 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 ...
0
votes
0answers
162 views

Running dd from Ubuntu live, it goes to sleep

I needed to clone a hard drive, so I bought the exact same model that I have and stuck it into the computer. I put Ubuntu live on a flash drive and boot up from it. I check with sudo fdisk -l that I ...