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
1 answer

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=noerror,sync I ran the command over ssh. However…
0
votes
1 answer

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 Error. How do I fix that Error? It's xfs file…
achhainsan
  • 123
  • 7
0
votes
0 answers

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, when I try to restore them (on the same machines…
0
votes
1 answer

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 login, botting process gets corupt etc. When this…
Definity
  • 127
  • 6
0
votes
0 answers

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 hours remaining. I figured I could just wipe the…
TheBeege
  • 47
  • 2
  • 8
0
votes
0 answers

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 is effectively a ticking time bomb. My system is…
serveraddict
  • 103
  • 4
0
votes
2 answers

ddrescue a non-solaris disk gets I/O error

I am trying to get a disk image of a SCSI disk using ddrescue on Solaris10 (Sparc). The disk is non-solaris, and ddrescue gets an immediate I/O error (as does dd). I used format to label the disk as Solaris, and now ddrescue reads it fine. Is…
rleir
  • 372
  • 1
  • 7
0
votes
0 answers

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 empty with no issues in df, like…
J B
  • 101
0
votes
1 answer

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 that might index this array and interact only with…
S. Imp
  • 526
  • 1
  • 4
  • 19
0
votes
0 answers

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 cmd. Wanted to know why such discrepancy if both…
0
votes
0 answers

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 ├─sda1 8:1 0 953M 0 part …
Kalib Zen
  • 137
  • 7
0
votes
1 answer

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

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 key to another drive and boot it on another…
Algo7
  • 297
  • 1
  • 8
0
votes
1 answer

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 the last number of but dd doesn't accept that, it…
dazz
  • 293
  • 3
  • 11
0
votes
0 answers

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 --format VDI But when I try to boot into the vdi…
0
votes
0 answers

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 bytes Sector size (logical/physical): 512 bytes / 512…
jcwp
  • 1
  • 2
1 2 3
13
14