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
2 answers

Creating a backup ignoring unallocated space with GPT table

I want to create a full disk backup of a linux installation (including gpt, bootloader). The system is installed on a 128GB SSD but only ~32GB are used with partitions, the rest is unallocated space. How can I backup this system without cloning the…
bobbolous
  • 103
  • 3
0
votes
1 answer

How to verify if a disk was ever written to

How can you verify if a disk is fresh and has had no write from the factory? I have a client that needs to make sure that the disks he revived are cleaned and weren't tampered with from the time it left to the factory till it was in his possession.…
Dovid Bender
  • 427
  • 2
  • 7
  • 19
0
votes
0 answers

Linux - How to clone and restore the root(/) partition on a running system

I have a specific situation with one remote Debian(Stretch) server. Mainly there is no one at the site and I need to do some risky upgrades and reconfigurations remotely. I'm looking for a way to implement a fail-safe system to prevent the situation…
Ivan Kovacevic
  • 1,801
  • 3
  • 15
  • 19
0
votes
0 answers

DD copy fails because output device path change during copy

I'm trying to copy an external USB hard drive to another using DD. my command: dd if=/dev/sdb of=/dev/sdc conv=noerror,notrunc iflag=noatime status=progress I'm using a live debian 10 distro. During the copy, after some gb copied,the transfert…
-1
votes
1 answer

Create random file with openssl

So I read this questionUrandom Alternative, but I am unable to make a comment there (without 50 rep) - therefore I open a separate question: If I use this command instead of dd and urandom, how do I set the size of the resulting…
-1
votes
1 answer

The best way to copy OS on RAID10 and lvm partition

I need to backup/clone the entire operating system. The problem is it's 2TB of data on lvm partition and RAID10 (i do not know is it dedicated controller or fake RAID in BIOS. Probably the second option) Which tool will be the best for this ? Ghost…
Dante
  • 3
  • 1
-1
votes
1 answer

How can I resume a dd operation after a "error writing in file" status?

This command produced the error mentioned above after 9 h (preparing a 2 TB hdd for encryption): time openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom \ bs=128 count=1 2>/dev/null | base64)" -nosalt
John Jane
  • 1
  • 4
-1
votes
1 answer

Disk image growing in size

I am trying to set up Rasberry pi for jobs that don't deserve bigger machine. I downloaded a Pidora disk image (.img) zipped it is roughly 512MB. After unzipping it is 2.2GB ( no problem here). After I try to write it to an SD card with sudo dd…
sgp667
  • 101
  • 1
-1
votes
2 answers

HHD cloning with dd on running server

Is it possible to clone HDD with dd command on linux while server is up and running. Server running, Apache, MySql, NGINX. I ask this coz won't have downtime.
-1
votes
1 answer

Fixing partition table after writing 0s to beginning

I have a sw raid10 setup like: /dev/sdX > partition /dev/sdX1 > raid md0 > lvm > fs. I'm an idiot, and wrote 4gb of 0s to /dev/md0 with dd dd if=/dev/zero of=/dev/md0 bs=4k count=1000000 conv=fdatasync Anything I can do to recover data? I tried…
-1
votes
1 answer

Cloning my hard drive as a backup

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 partition, 195GB for the home folder and the remainder of…
Matthew G
  • 101
  • 1
-1
votes
1 answer

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 reading/writing N blocks the size of 8k (which is the size…
-1
votes
1 answer

dd the entire SD card to one partition on HDD

This particular question is related to Raspberry Pi, but in fact, this is a general question. So, I have an SD card with RPI system running on it consisting of two partitions: Disk /dev/mmcblk0: 59.5 GiB, 63864569856 bytes, 124735488 sectors Units:…
ihorc
  • 43
  • 6
-2
votes
1 answer

Using DD to produce an Image results in empty image

I am trying to take an image of my Android phone. Specifically I have tried to image the system and boot partitions. The imaging process appears to work correctly when using dd. However, when I attempt to mount the image in a loopback device the…
-2
votes
3 answers

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. The server has a single disk (xvda1, and yes the…
Speeddymon
  • 191
  • 1
  • 10
1 2 3
13
14