Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [dd]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

migrate vps from linode to proxmox img not booting

I would like to create a fallback instance of a VPS running on Linode to an on premise Proxmox. I downloaded a raw image of the server using ssh root@foo.com "dd if=/dev/sda | gzip -1 -" | ...
user avatar
  • 1
0 votes
0 answers
17 views

Disk doesn't show any partition table or partition changes

I wanted to clone an encrypted drive to a new drive, so I set up CloneZilla to do a disk-to-disk clone. At the beginning, it said 9 hours to run, so I let it run overnight. The next day, it had 145 ...
user avatar
0 votes
0 answers
29 views

Mount an LVM partition image cloned with dd

Im trying to mount a partition with dd based on this article: https://www.utilities-online.info/articles/Mount-an-LVM-partition-image-cloned-with-dd. However I keep getting the same error. My steps: ...
user avatar
-1 votes
1 answer
82 views

dd the entire SD card to one partition on HDD [closed]

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 ...
user avatar
  • 33
5 votes
3 answers
792 views

Best way to remove text from the beginning of a huge file

I have a huge MySQL backup file (from mysqldump) with the tables in alphabetical order. My restore failed and I want to pick up where I left off with the next table in the backup file. (I have ...
user avatar
0 votes
0 answers
68 views

What's the best means to clone the root linux hard drive to a new drive?

I bought a new enterprise grade SSD to replace my Samsung SSD. It was $500, not cheap. Anyway, the purpose is to have a more reliable and longer-lasting root hard drive, since a non-enterprise drive ...
user avatar
3 votes
1 answer
70 views

Will this DD command work?

I've mounted my Google drive and would like to make a live backup image of my raspberry pi. Would this command work? sudo dd status=progress if=/dev/mmcblk0 bs=10M conv=sync,noerror | gzip -9 - | dd ...
user avatar
1 vote
1 answer
778 views

Why Linux "dd" is erroring with "no space left on device" while copying a single partition to a smaller device?

I'm trying to copy the single partition /dev/sda1 to /dev/sdc1, but I'm getting the error "no space left on device" and I honestly don't get why. I'm working on an Oracle Cloud ...
user avatar
1 vote
3 answers
115 views

Can't make good size image with the command DD

Need to make an image disk of my DD. This a is a 4to hard drive with 2 partitions (total used :1,7 TO). How to get an 1,7 TO correct image with the dd command ? Disque status with fdisk Used : dd if=/...
user avatar
0 votes
0 answers
28 views

df shows negative bytes used.... only during dd

I have begun a dd to copy a partition on one usb drive, to a 2nd usb drive. While I have freshly reformatted the destination partition (/dev/sdc1), and it checks out with fsck normally and shows it is ...
user avatar
  • 1
0 votes
1 answer
82 views

Does it matter to partition something before dd?

Normally, to burn an ISO to a disk, let's say an ISO for installing Ubuntu, we dd to the /dev/sda, not to the partition like /dev/sda1, so in this case, where the target file is /dev/sda which is ...
user avatar
0 votes
1 answer
57 views

desperate attempt to head off RAID 0 failure, can i copy a disk with dd?

A colleague has been using a 10TB RAID 0 array to edit a film. He suddenly realized it's 98% full. The array has started seriously acting up, but cooperates grudgingly if you shut down all processes ...
user avatar
  • 506
0 votes
0 answers
28 views

speed difference between FS created by LVM and parted cmd

I was testing read/write operation on FS to check speed via dd cmd. /app - created with LVM /app1 - created with parted when I run below cmds, can see huge diff in speed for both operation with same ...
user avatar
0 votes
0 answers
84 views

How to resize img file created with dd on LUKS-LVM partition?

I have installed a new Debian 10 on /dev/sda with LUKS + LVM. It has the following partition structure: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 79G 0 disk ├─...
user avatar
  • 137
0 votes
1 answer
42 views

Can I migrate a Windows 10 with a license key to another computer using dd? [duplicate]

Not trying to do anything malicious or violate copyrights. Just out of pure curiosity. If dd creates a full clone of a disk, will it work if I use dd to make a full copy of windows 10 with a license ...
user avatar
  • 297
0 votes
1 answer
1k views

Clone disk with multiple partitions using dd

I have used dd before to clone hard drive's but I'm now attempting to clone an entire hard drive consisting of 3 partitions to another drive. My partitions are named nvme0n1p1 to 3, I tried leaving ...
user avatar
  • 293
0 votes
0 answers
47 views

Virtualbox not recognizing GRUB

I ripped a Linux Mint partition into a file using the dd command: sudo dd if=PART_PATH of=OUTPUT_PATH/ubuntu.bin Then I converted it into a *.vdi VBoxManage convertdd PATH_TO_ubuntu.bin ubuntu.vdi --...
user avatar
1 vote
1 answer
39 views

where is the disk capacity stored?

In short, if I do dd disk-to-disk (e.g. /dev/sda to /dev/sdb), is the capacity of the whole disk also copied? For example, if sda is actually 1TB and sdb 2TB, after the dd, which would a Linux system ...
user avatar
  • 263
1 vote
2 answers
213 views

How can I transfer a dedicated bare metal server into a VM?

I have the following problem: We have a dedicated (bare metal) hardware server (Debian 10) on which we have no direct physical access. Now I want to transfer all data and applications that are on this ...
user avatar
  • 4,947
1 vote
1 answer
46 views

How to read binary contents of free disk space in CentOS

Is there a way I can use dd or another tool to view the binary contents of free disk space in CentOS? In case it matters, it's a Linux logical volume with XFS format, holding data only (not a common ...
user avatar
0 votes
0 answers
437 views

DD of LVM Partition to another disk drive not working - no space left on device

I have a vmdk attached to my Linux VM instance (/dev/sda). The disk has 2 partitions, as shown below: Disk /dev/sda: 17.2 GB, 17179869184 bytes, 33554432 sectors Units = sectors of 1 * 512 = 512 ...
user avatar
  • 1
0 votes
2 answers
503 views

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. ...
user avatar
0 votes
1 answer
74 views

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 ...
user avatar
0 votes
0 answers
225 views

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 ...
user avatar
0 votes
0 answers
45 views

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. ...
user avatar
0 votes
1 answer
313 views

How to compress and split a backup on a remote ftp server avoiding empty space and using dd

The case is the following: we have two servers, a remote server with ONLY an FTP access, and a local server linux where we have to configure a script for backup all system using dd command. The ...
user avatar
0 votes
1 answer
1k views

DD command to destroy data

Should I delete the important files of the disk and then boot into live disk and run dd command or is it okay to run dd on /dev/sda without having to delete? I'm asking this because I've already ...
user avatar
  • 5
1 vote
0 answers
24 views

DD data of drive to new drive within VM

I inherited a CentOS 7 vm with a messy disk system. Here's a breakdown: The VM has 2 hard disks, and the OS has two LVs with luks-encryption on top. Output from lsblk: NAME ...
user avatar
  • 297
0 votes
0 answers
792 views

Reduce Volume AWS EBS EC2 LVM Partition

Problem I have a physical machine with 1 TB disk and it was copied via command line dd, the disk was imported into S3 and successfully converted to AMI. But now I have a cost problem and I need to ...
user avatar
  • 1
0 votes
0 answers
60 views

How can I automate the installation of an Ubuntu image using a USB device?

I have to automate the installation of a Linux image. The perfect behavior would be that I plug the USB, turn on the device and it runs the dd command in order to flash the image stored in the USB ...
user avatar
1 vote
2 answers
154 views

how can I sync 2 almost identical disk after dd

Lets say I have /dev/sda and /dev/sdb. Before, I run dd if=/dev/sda of=/dev/sdb bs=128M, and it succeeded. Then after some time, there is update on first disk, and I want to clone it to second disk....
user avatar
0 votes
1 answer
230 views

The most efficient way to save LVM snapshot to a file

I have a tricky problem with a backup strategy. The problem is with disk performance and so far I cannot do a lot about it (as well as meddle with, let's call it, pipeline design), so I was wondering ...
user avatar
  • 25
0 votes
2 answers
865 views

Copy LVM Volume Group to a new single hard disk

I have a headless Ubuntu (18.04) server with 3 hard drives each partitioned to a single lvm volume group for a combined size of 6Tb. I recently purchased a new hard drive that is 8Tb and I want to get ...
user avatar
  • 103
1 vote
1 answer
553 views

Recovering deleted plain text (emails) files from raw disk image

I'm hosting my own linux mail server for my family. Yesterday my father lost all the mails in his Inbox folder. I'm still not sure whether it's due to a terrible user error or compromised password, ...
user avatar
  • 11
3 votes
2 answers
985 views

Unable to mount cloned partition via ddrescue

I have a problem with mounting the cloned partition. To clone it, I used as root: ddrescue -f -n /dev/sda3 ./sda3_rescue.img ./rescue.log The partition which I cloned, was a broken NTFS partition. ...
user avatar
  • 293
0 votes
2 answers
174 views

Why does dd make the host unresponsive?

As root I yesterday did dd if=/dev/zero of=/var/lib/libvirt/images/dat.img bs=1G count=1000 and for many hours it made the server completely unresponsive. The raid controller is an HP P410 with 4 ...
user avatar
  • 9,873
2 votes
2 answers
283 views

Bad Sector on disk causes the whole server to crash

Our dedicated server's hard disk was recently diagnosed with bad-sectors, and each time certain data on the disk are about to get accessed, the whole server goes non-responding before i i issue a ...
user avatar
0 votes
1 answer
698 views

dd "no space left on device" cloning SSD to USB drive

So I have a weird error, while dd'ing partition 3 (partition table below) from my laptop's SSD to a larger USB drive with an identical partition table. After writing ~3-4GB (expecting to write >75GB), ...
user avatar
  • 1
0 votes
1 answer
6k views

HDD cloning with dd

I'm cloning a larger HDD(750GB) to a smaller SSD(250GB). I shrunk the partitions and there is only 83gb of used space. (I defragmented and did a chkdsk). Also, sum of partition sizes is smaller than ...
user avatar
1 vote
1 answer
1k views

Is it faster to wipe out multiple hard disks with dd=/dev/zero simultaneously?

I have 3 hard disks 1T each. I want to wipe them out completely. I decided yo use dd like so: dd if=/dev/zero of=/dev/sdb bs=1M dd if=/dev/zero of=/dev/sdc bs=1M dd if=/dev/zero of=/dev/sdd bs=1M ...
user avatar
0 votes
2 answers
491 views

Cloning multiple SATA drives using dd with the assistance of software RAID1

So, I clone lots of Windows-based NTFS drives from images each day and I'm halfway through a project that could potentially help me and others to speed up this process dramatically. I currently have ...
user avatar
1 vote
1 answer
219 views

Find out exact location of GRUB / GRUB not working after copying disk image

I prepared an Ubuntu server image with VirtualBox. To transfer the image to the server's SSD I first dded the MBR (512 bytes) and then the LVM partition (PV containing the root partition shrunk to 3GB)...
user avatar
1 vote
1 answer
609 views

Initramfs error after image restore using dd

I need to create backups of a Ubuntu system in a way that I can easily restore the data and system as it is exactly in a ready to go state. So, I decided to go with dd to create a whole HHD images. I ...
user avatar
0 votes
1 answer
200 views

dmesg errors not showing in ddrescue

We had a disk in a raid go bad and we are suspicious another one might have minor errors. So to be safe we are trying to recover both disks using ddrescue. The various help pages recommend a two-to-...
user avatar
  • 153
1 vote
1 answer
2k views

dd using all memory and swap

I have a dedicated Centos 6.9 linux server with a company that crashed due to hardware failure and has been restored with the old HDD's on a usb caddy. I am trying to move lvm partitions over to the ...
user avatar
1 vote
1 answer
622 views

dd's relation with page cache

The free command output of my server is currently like below: # free -m total used free shared buffers cached Mem: 995 780 205 0 ...
user avatar
0 votes
1 answer
413 views

writing zfs dataset to block storage

Is there a proper way of writing a ZFS dataset, in my case which is an ext4 ubuntu filesystem, to a blank SSD? The data looks like this is that's at all helpful tank/filesystems/ubuntu_1604/(/etc, /...
user avatar
  • 262
0 votes
2 answers
169 views

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 ...
user avatar
  • 183
0 votes
1 answer
5k views

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 ...
user avatar
2 votes
1 answer
9k views

PXE booting .IMG and .DD images

I have read many forum posts but still can't PXE boot image files. usb-image.dd is my image file. Instead of using USB sticks I would like to boot live Linux by using PXE. DEFAULT menu.c32 PROMPT 0 ...
user avatar
  • 151