Questions tagged [dd]

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

Convert and copy a file, write disk headers, boot records, create a boot floppy. dd can make an exact clone of an (unmounted) disk, this will include all blank space so the output destination must be at least as large as the input.

For more info refer to the manpage.

210 questions
0
votes
1 answer

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 these partitions to build a supertimeline…
David Souther
  • 227
  • 1
  • 2
  • 7
0
votes
1 answer

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 be the cause for this? Linux, NFS v3
Soron
  • 3
  • 1
  • 2
0
votes
2 answers

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) chainloader +1 title Bank B root (hd0,2) …
Dima
  • 485
  • 3
  • 7
  • 15
0
votes
1 answer

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 sure. Could this be run like a million times. I…
Daniel Gratz
  • 235
  • 1
  • 2
  • 4
0
votes
1 answer

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 -uM << SFDISK_EOF ,1,L,* ,,L; SFDISK_EOF I got an…
Dima
  • 485
  • 3
  • 7
  • 15
0
votes
2 answers

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 here? cp and rsync didn't work either for some…
0
votes
1 answer

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 precisely after the server is cloned what problems can…
anteatersa
  • 125
  • 1
  • 5
0
votes
3 answers

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 just drop in the clone and be on my way. I'm…
eckza
  • 273
  • 2
  • 11
0
votes
3 answers

Is it possible (and how if it is) dump two concatenaded disks in a new disk using DD?

I have a Lacie enclosure that has a setup with 2 500gb disks configured as 1 drive of 1TB, the only partition created for the whole drive is HFS+ journaled, but the controller in the enclosure is gone and so the drive refuses to mount anymore. I…
pedromarce
  • 101
  • 3
0
votes
2 answers

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 mkfs.ext3 Install CentOS on this filesystem Make this…
Dima
  • 485
  • 3
  • 7
  • 15
0
votes
1 answer

Clone disk with dd, and change blocksize?

I need to clone my 300GB disk to 500GB disk with dd, but the old disk (300GB) has too *big block size. Will this change the block size of output partition too? I understod that obs only meant to be used during copying, and would not change the…
Ciantic
  • 3
  • 4
0
votes
1 answer

dd cloned win2003 std ntfs partition, "no operating system found"

I cloned an existing ntfs partition on faulty hardware using dd and gzip. The copied partition was then written to a newly created ntfs partition on a new disk (on another server) and the bootable flag was set. However, the "Operating system not…
3molo
  • 4,330
  • 5
  • 32
  • 46
0
votes
0 answers

Copy boot disk to backup drive using recovery mode or live cd

I am trying to make a backup of my 1TB boot drive without physically removing the drive or adding more drives. I have a 5TB drive installed that has enough space in one of its partitions to store a clone of the drive created via dd. I've tried…
quinn
  • 101
  • 4
0
votes
1 answer

Cloudmin backup size

we are using Cloudmin under CentOS 7.9. to manage Xen virtual machines that use LVM. It's all backed up once a week (via Cloudmin's built-in backup system, which I think just uses dd). Last week I noticed one thing: on one system, I deleted 150GB of…
Dmitry
  • 23
  • 4
0
votes
0 answers

How to rebuild the filesystem of a recovered partition

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten. I immediatly stopped using the drive,I made an image of the damaged drive with ddrescue then…