As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [dd]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

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 ...
Dmitry's user avatar
  • 23
0 votes
0 answers
17 views

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 ...
Expired's user avatar
0 votes
1 answer
64 views

How to recover partition/filesystem from failed dd command

I have a server with two SSDs of 250GB each.sda contained all my stuff while sdb was empty. I was trying to copy drive sda to drive sdb using the following command: dd if=/dev/sda of=/dev/sdb conv=...
Expired's user avatar
0 votes
0 answers
31 views

How to determine/ensure max bytes dd is copying some data that's available in a partition

How do we determine and next ensure the max bytes copied, i.e. read and written, when dd is copying data available in a partition into another one/device with both the same ext4 filesystem ? as the ...
itil nonok's user avatar
5 votes
4 answers
1k views

Cloning data from a damaged SSD

The SSD went into read-only mode, so you need to move the partition to a working SSD, but I encountered the fact that the LVM size is different: #lvm pvscan PV /dev/sdc3 VG pve lvm2 [&...
Джон Смит's user avatar
0 votes
1 answer
41 views

dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning

Executing this Command : dd if=/dev/sda1 of=/disk1/boot1.img I got this Error : dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning I tried that Command on my centos machine and got that ...
achhainsan's user avatar
0 votes
0 answers
54 views

Windows Images created with dd cannot be restored

I used a live USB Linux system to create images of Windows Installations (Win 8 and 10) on hard drives like this: dd if=/dev/sdb bs=64k conv=noerror, sync | gzip -c > /dev/sdc1/win.img.gz However,...
curious_weather's user avatar
1 vote
1 answer
84 views

copying one virtual raid disk to another using dd

Using a Dell-Perc Raid controller in Ubuntu I have a virtual disk as a raid 0 array composed of 4 physical drives (1Tb SSDs). I would like to copy the virtual disk onto another virtual disk also raid ...
haz's user avatar
  • 111
1 vote
1 answer
162 views

Thin-LVM readonly mode

I use this command to move data of one thin lv to another lv on separate server. dd if=/dev/vg/my-lv bs=24M | throttle -v -s 512 -w 2 -m 2000 | ssh -oStrictHostKeyChecking=no -i /var/my-ssh-keys/...
Jevin Gala's user avatar
0 votes
1 answer
32 views

Can I mksqashfs a whole Mint 20 OS then restore with unsquashfs on a different drive?

I have a very strict system with the bare minimum applications on for security reasons since I work with medical data. Sometimes the laptops we use messup for one reason or another, won't boot, can't ...
Definity's user avatar
  • 127
1 vote
2 answers
2k views

Using DD to clone a 600GB drive using SSH to remote location with only 60 GB of allocated data [server migration]

Please, excuse my horrible english. I'm triyng to find the way to clone a HDD server to a remote destination location, using SSH and, if possible, compress data on-the-fly to minimize unnecessary data ...
Diego Ferrarese's user avatar
0 votes
0 answers
69 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 ...
TheBeege's user avatar
-1 votes
1 answer
394 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 ...
ihorc's user avatar
  • 43
5 votes
3 answers
827 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 ...
Christopher Schultz's user avatar
0 votes
0 answers
200 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 ...
serveraddict's user avatar
3 votes
1 answer
133 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 ...
Rich Fedor's user avatar
1 vote
2 answers
4k 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 ...
Massimo Pasquini's user avatar
1 vote
3 answers
446 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=/...
anthony COPPET's user avatar
0 votes
0 answers
48 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 ...
J B's user avatar
  • 101
1 vote
1 answer
550 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 ...
Guerlando OCs's user avatar
0 votes
1 answer
76 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 ...
S. Imp's user avatar
  • 516
0 votes
0 answers
35 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 ...
user640121's user avatar
0 votes
0 answers
182 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 ├─...
Kalib Zen's user avatar
  • 137
0 votes
1 answer
46 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 ...
Algo7's user avatar
  • 297
0 votes
1 answer
4k 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 ...
dazz's user avatar
  • 293
0 votes
0 answers
120 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 --...
Destiny Fan's user avatar
1 vote
1 answer
40 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 ...
Stephen's user avatar
  • 333
1 vote
2 answers
811 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 ...
manifestor's user avatar
  • 5,899
1 vote
1 answer
97 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 ...
frazierjason's user avatar
0 votes
0 answers
971 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 ...
jcwp's user avatar
  • 1
0 votes
2 answers
1k 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. ...
bobbolous's user avatar
  • 103
0 votes
1 answer
90 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 ...
Dovid Bender's user avatar
0 votes
0 answers
689 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 ...
Ivan Kovacevic's user avatar
0 votes
0 answers
71 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. ...
macrophone's user avatar
0 votes
1 answer
520 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 ...
Payedimaunt's user avatar
0 votes
1 answer
3k 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 ...
user630702's user avatar
1 vote
0 answers
26 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 ...
Cpt.Whale's user avatar
  • 307
0 votes
0 answers
958 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 ...
Lucas's user avatar
  • 1
0 votes
0 answers
87 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 ...
Gabriel Llorens Valles's user avatar
1 vote
2 answers
252 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....
Rinaldo Jonathan's user avatar
0 votes
1 answer
369 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 ...
theo's user avatar
  • 25
0 votes
4 answers
2k 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 ...
Ponyboy47's user avatar
  • 103
1 vote
1 answer
752 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, ...
piwai's user avatar
  • 11
3 votes
2 answers
1k 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. ...
dave's user avatar
  • 303
0 votes
2 answers
290 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 ...
Sandra's user avatar
  • 10.2k
2 votes
2 answers
340 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 ...
chakmeshma's user avatar
0 votes
1 answer
984 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), ...
Erick's user avatar
  • 1
0 votes
1 answer
7k 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 ...
user463133's user avatar
1 vote
1 answer
2k 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 ...
Pavel Tankov's user avatar
0 votes
2 answers
673 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 ...
Matt Dunne's user avatar

1
2 3 4 5