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

DD File Not Updating

I am following this thread to guide me from FreeNas VirtualBox to bhyve. https://blog.yuo.be/2017/01/04/migrating-a-vm-from-virtualbox-to-iohyve-bhyve-on-freenas-9-10/ However, I am stuck with this command. dd…
Dave B
  • 181
  • 1
  • 1
  • 4
0
votes
1 answer

using dd with conv=sparse to punch zeros

I am attempting to clone a disk partition to an image file using dd. I want to create the image without zeros to minimize the filesize, and on the other hand I do not want to pipe through gzip. The solution I found consists of writing zeros to a…
0
votes
3 answers

clone nvme drive with 4096 sector size to ssd with 512 sector size

I have an nvme drive with a logical and physical sector size of 4096. The block size of this drive as reported by blockdev --getbsz command to be 4096 as well. The destination drive is an SSD with a logical and physical sector size of 512. The block…
user404315
  • 1
  • 1
  • 1
0
votes
1 answer

How to create a full backup of a remote ubuntu 16.04 server?

I just finished configuring a dedicated remote ubuntu server and want to create a backup with DD in order to be able to rebuild fast in case of hardware issues. The system has 2 SSD drives with 500GB and a remote FTP server ready for backup. I…
merlin
  • 2,093
  • 11
  • 39
  • 78
0
votes
1 answer

Is it possible to clone raid member disks in an array with dd

I'm looking to expand the capacity of my qnap NAS by tripling the drive size from 2TBx8 to 6TBx8. However, I'm afraid the raid 5 will die before I can rebuild the array 8 times!! Can I remove and clone each disk independantly and add them back to…
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57
0
votes
1 answer

Two identical servers. One with extremely poor performance

I have these two servers with the following specs: OS: RHEL 6.3 Hardware: Dell PowerEdge R610, 12 cores, 64GB RAM Drives: 6 x Samsung 840 Pro SSD RAID controller: Intel RS25AB080, 1GB Cache RAID Level: 5 When we test disk performance using the dd…
0
votes
1 answer

How to use dd to dump an image to unallocated space

I have a bin file (chromiumos_image.bin) which contains some (around 12) partitions, which I need to dump into the unallocated space between 2 other partitions. The partition table is this: My partition table, as seen in gparted I want to dump my…
0
votes
3 answers

How to mount the dd image of a swap file

I have several dd images from a single drive. One of them is the swap. I mounted all of the images in Ubuntu just fine except for the image of the swap. This is how the dd images break down: hda8 is /, hda1 is /boot, hda6 is /home, hda5 is /usr,…
Todd7912
  • 3
  • 3
0
votes
0 answers

Shrinking an img file that contains linux partitions

I've got an img file (4,02GB) containing a Linux OS. My goal is to shrink this img filed down to < 4GB. The img contains a linux partition that only holds about 2,5GB of data. I need to be able to copy that img file to an eMMC that is just under…
ddewaele
  • 333
  • 1
  • 4
  • 12
0
votes
1 answer

Segmentation fault on dd command

I ran this command on Ubuntu to resize the /tmp and after that there is segmentation fault coming. dd if=/dev/zero of=/dev/xvda1 bs=1024M count=2 Its our live server. Is there any way to get it working or get the data? Thanks.
0
votes
1 answer

Backup old disk to external disk (new)

One of the 2 x 500GB drives on server is crashed can read but not write the data, which both are on Hardware RAID 0. So I connected an external 1TB new drive to backup the data and replace those 2 x 500GB. I just wanna be sure that "dd" can do the…
WiTon Nope
  • 46
  • 5
0
votes
1 answer

Copy LVM volume group spanning two physical volumes on two disks

[update] i have copied the two primary partitions using gparted. now i am stuck trying to copy a single volume because it is made of two physical volumes each on separate disk...ideas? /sda5, /sdb1 = vg0 need sdc1 = need same info from vg0 on old…
2legit2quit
  • 171
  • 1
  • 2
  • 10
0
votes
1 answer

Deleted MBR on virtual machine on purpose, but entries are preserved

I'm playing with Master boot record. I decided to delete and restore it on my vmware machine. With Ubuntu LiveCD I'm trying to erase partition entries and signature with command: dd if=/dev/zero of=/dev/sda bs=1 skip=446 count=66 or: dd…
user3345632
  • 103
  • 3
0
votes
1 answer

Remote bash script execution via ssh causes local script to stop

I have a setup which behaves in a way i cannot get my head around. So I have a local bash script generateTrafficOnHosts.sh which reads IP addresses from a file. It then calls a bash script getTraffic.sh on each remote host, i.e. each IP address it…
Filex
  • 1
  • 3
0
votes
1 answer

fio on virtual disk created with dd to stress disk

I am trying to create a script for my coworkers to use in the field that will stress the internal disks to a Linux server. I plan to put some logic in for finding the /dev/sd's available and such. But I wanted to put in a write test. I am aware that…
TaylorSanchez
  • 171
  • 1
  • 7