Questions tagged [dd]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
37 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
0answers
25 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 ...
0
votes
0answers
25 views

Clone only part of 3 TB disk for rescue

I had a 3TB RAID disk (single partition) that I formatted with ext4, single partition. Then I realized, I need a file on the disk. :-/ I have not written any files to disk so far. I ran photo-rec ...
0
votes
0answers
26 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
1answer
36 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 ...
0
votes
1answer
58 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
0answers
17 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 --...
1
vote
1answer
34 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 ...
1
vote
2answers
76 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 ...
1
vote
1answer
25 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 ...
0
votes
0answers
117 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
2answers
158 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. ...
0
votes
1answer
66 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 ...
0
votes
0answers
123 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 ...
0
votes
0answers
41 views

I used dd to back up a partition and cannot access the backup with ROX-file manager

root# dd if=/dev/sda4 of=/dev/sdc2 status='progress' bs=4096 dd completed successfully When I try to mount sdc2 I get a message 'unable to mount sdc2' Question1: Why is this? Question2: Say I restore ...
0
votes
0answers
88 views

How to restore .img file into a directory?

I have a mounted backup disk with snapshot images taken using LVM and the dd command. Briefly, the backups are made with: lvcreate --snapshot -L 100M --name snap /dev/target dd conv=sparse if=/dev/...
0
votes
0answers
40 views

how to mount an dd image of a raid (file exists)

I have created a hdd image using sudo dd if=/dev/md0p1 of=/media/kic/usbdisk/hdd.img. after the backup is done, I try to mount the file for a quick check. but sudo mount hdd.img /mnt/image fails with "...
0
votes
0answers
26 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. ...
0
votes
0answers
36 views

Migrate a VM from atlantic.net to AWS

I have a number of servers on cloud.atlantic.net put up many years ago, and now we have most of our stuff on AWS. The nice thing about AWS is it allows me to shut down (and not pay for) a rarely used ...
0
votes
1answer
186 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 ...
0
votes
1answer
379 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 ...
1
vote
0answers
21 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 ...
0
votes
0answers
583 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 ...
0
votes
0answers
39 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 ...
1
vote
2answers
112 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....
0
votes
1answer
130 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 ...
0
votes
2answers
463 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 ...
1
vote
1answer
401 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, ...
3
votes
2answers
789 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. ...
0
votes
2answers
163 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 ...
2
votes
2answers
200 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 ...
0
votes
1answer
563 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), ...
0
votes
1answer
5k 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 ...
1
vote
1answer
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 ...
0
votes
2answers
408 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 ...
1
vote
1answer
168 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)...
1
vote
1answer
476 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 ...
0
votes
1answer
171 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-...
1
vote
1answer
1k 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 ...
0
votes
1answer
512 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 ...
0
votes
1answer
314 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, /...
0
votes
2answers
160 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 ...
0
votes
1answer
4k 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 ...
2
votes
1answer
8k 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 ...
2
votes
2answers
4k views

Backup and Restore Using dd and gzip

I've seen various posts discussing the use of dd for creating an image of a drive and only storing 'used data'. Before posing the problem/question, let's assume a few things. Assumptions The drive ...
0
votes
3answers
2k 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 ...
0
votes
1answer
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 ...
0
votes
1answer
914 views

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 ...
0
votes
1answer
105 views

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 ...
1
vote
1answer
5k views

Repair FAT filesystem on image

I've got a USB pen drive with a corrupted FAT filesystem. Now I try to repair it. So to first try what I can get from it without endangering the original hardware further, I've created an image with ...