Questions tagged [dd]
This command is used to do low level copying of data.
212
questions
0
votes
0
answers
33
views
Resizing RAID-1 devices after dd clone
I had 2 x 250 GB disks with 3 md devices - raid 1 setup on them. One of them is for /. I dd-cloned those disks to another 2 x 2 TB SSDs. What is the best solution to increase the raid device sizes? &...
8
votes
4
answers
8k
views
Best way to copy large amount of data between partitions
I'm looking to transfer data across 2 lv of an HP-UX server. I have a couple of those transfers to do, some of which are mostly binary (Oracle tablespace...) and some others are more text files (logs.....
1
vote
2
answers
7k
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 ...
61
votes
8
answers
190k
views
dd on entire disk, but do not want empty portion
I have a disk, say /dev/sda.
Here is fdisk -l:
Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (...
0
votes
0
answers
118
views
Why did dd report a "No Space" error after cloning a USB drive?
In Ubuntu 22.04 LTS, I use this command to clone one Samsung USB GPT drive to another identical drive:
sudo dd if=/dev/sdb of=/dev/sdc bs=16M conv=sync,noerror status=progress
This operation ...
0
votes
0
answers
69
views
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 ...
11
votes
4
answers
5k
views
Linux / BSD "quickly" wipe a USB drive?
I'm clearing a drive with dd. It's a USB device and 120GB and it's taking a very long time:
dd if=/dev/zero of=/dev/da0 bs=1M status=progress
I have tried messing with the block size (smaller and ...
0
votes
1
answer
44
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 ...
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 ...
0
votes
0
answers
98
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 ...
0
votes
1
answer
269
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=...
5
votes
4
answers
2k
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 [&...
0
votes
1
answer
97
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 ...
236
votes
29
answers
610k
views
Using DD for disk cloning
There's been a number of questions regarding disk cloning tools and dd has been suggested at least once. I've already considered using dd myself, mainly because ease of use, and that it's readily ...
1
vote
1
answer
181
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 ...
0
votes
0
answers
131
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,...
1
vote
1
answer
443
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/...
3
votes
1
answer
2k
views
On a system with 64GB mem the Linux Buffer run full while copying with dd to dev null and io stops till manual drop_caches
I am running a server with linux software raid 10. It is a dual CPU system with 64GB Ram. 2x16GB dimms related to each of the CPUs. I want to use dd to backup kvm virtual machines and run into a ...
1
vote
3
answers
2k
views
Large delay starting "dd" write in background in bash even when using nohup
I wrote a small script to print the memory usage during a large sequential write of a file.
#!/bin/bash
rm result
echo 3 > /proc/sys/vm/drop_caches
sync;
echo start
nohup time dd if=/dev/zero of=...
0
votes
1
answer
43
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 ...
6
votes
2
answers
4k
views
Does it involve network to copy a file within a NFS share? [closed]
I am assuming the following ways to copy a file with in a NFS share:
Process 1:
The client requests for the data to be copied from NFS share (if cache is not there) and the chunks of data are ...
2
votes
2
answers
7k
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 ...
0
votes
0
answers
83
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 ...
4
votes
2
answers
15k
views
How to copy KVM disk image to LVM
Problem
I'm getting a No space left on device error when doing a dd command. I'm trying to move a KVM qcow2 file to an LVM partition and thought that the LVM partition needed to be the same size as ...
-1
votes
1
answer
587
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 ...
0
votes
0
answers
228
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 ...
5
votes
3
answers
844
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 ...
5
votes
4
answers
32k
views
Cloning LVM partitions
I need to clone a CentOS installation from a 1TB disk partitioned with LVM, to several identical machines. The disk is mostly empty since only the operating system and some software are installed and ...
12
votes
6
answers
17k
views
/dev/zero equivalent in windows?
I am trying to use the windows version of dd to copy a RHEL iso to a USB stick. However, I wanted to zero out the drive first to ensure there is no filesystem on it before writing it out. Is there an ...
3
votes
1
answer
183
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 ...
1
vote
3
answers
713
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=/...
0
votes
0
answers
70
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 ...
1
vote
1
answer
977
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 ...
0
votes
1
answer
165
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 ...
0
votes
0
answers
42
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 ...
8
votes
2
answers
12k
views
Cloning a bitlocker encrypted disk
Our company's had its laptops for just over 2 years now and they have all become slow and many of them have had their harddisks dying randomly lately. I noticed that many of my colleagues use a tilted ...
0
votes
0
answers
229
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
├─...
0
votes
1
answer
54
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 ...
1
vote
1
answer
7k
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 ...
0
votes
0
answers
204
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 --...
8
votes
5
answers
4k
views
Does filling up disk with dd removes files securely?
I want to remove my files securely without worrying about anyone restoring them, I know I can use shred but it takes too long even with -n 1 so I thought maybe if I remove files and write on the disk ...
1
vote
1
answer
45
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 ...
9
votes
3
answers
17k
views
Why is Clonezilla faster than dd?
On my SSD imaging (Source and Destination are 2 SSDs) I get 12GBpm using CloneZilla while with dd I get only 5GBpm. What makes Clonezilla so much faster than dd?
0
votes
3
answers
3k
views
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 ...
1
vote
2
answers
1k
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 ...
0
votes
2
answers
2k
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.
...
1
vote
1
answer
110
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 ...
1
vote
2
answers
7k
views
cloning with dd - is non-partitioned space considered the same as empty space within filesystem for resulting image size?
note: all = all that i've found
All the "cloning with dd" information talks about how dd copies all the "empty space", but literally all writings seem to be responding to a ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
2k
views
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 ...