Skip to main content

Questions tagged [dd]

A common Unix program whose primary purpose is the low-level copying and conversion of raw data.

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

Is it possible to move partitions around on Mac OS using dd and gdisk?

Please bare with me, if this question seems dumb. I'm not experienced with filesystems and partitions. I have an IMG file from a 16GB sd card. My issue is: I have a 32GB sd card and do not want 16GB ...
Skeeve's user avatar
  • 101
0 votes
1 answer
84 views

Is there a tool like `dd` but respect sparse-ness of input file?

I am creating disk images with multiple ext4 partitions on it. Each ext4 partition content is created with mkfs.ext4 and the resulting filesystem image files are "sparse". When I use dd to ...
josch's user avatar
  • 908
0 votes
0 answers
72 views

Raspberry pi fails to boot from USB after cloning disk (HomeAssistant)

My SSD I was running HomeAssistant on was getting a bit to small so I got a larger disk. I cloned my disk via: sudo dd if=/dev/sdc of=/dev/sde bs=64K conv=noerror,sync status=progress (where indeed ...
Matthijs's user avatar
  • 133
0 votes
0 answers
33 views

Can I dd from one opened luks container to another?

I want to migrate my encrypted data from one drive to another. Both source and target should be encrypted. I've read in some other question, that I should create a new container, so that the superkey ...
Armin's user avatar
  • 101
3 votes
1 answer
184 views

Why does DD'ing a raw image change the image when read back

I have a .RAW image. The image contains a single partition. I have created a loopback based device. I created a single partition on that device. I'm writing my .RAW to the partition. sudo dd if=/tmp/...
bearrito's user avatar
0 votes
1 answer
123 views

What path to write a Windows ISO to create a bootable thumb drive?

Was looking to use PXE, but now just directly downloading the Windows 10 ISO as: nicholas@mordor:~$ nicholas@mordor:~$ ll /media/nicholas/ total 18 drwxr-x---+ 5 root root 5 Feb 19 18:23 ....
Nicholas Saunders's user avatar
0 votes
1 answer
103 views

Disk cloning trouble due to slight size mismatch between source and target

I tried to clone sdb onto sdc but that failed due to a marginal size mismatch. I tried recovery options using gdisk to no avail. What are my options now for starting again from scratch? The source ...
Erwann's user avatar
  • 141
0 votes
1 answer
70 views

From disk end, how to count MB (Megabytes) to the first non-zero location?

I am using Kubuntu 22.04.3 LTS x86_64. While re-purposing a disk using: neofetch --stdout |grep 'OS:' Instead of long process of dd zero the whole disk just dd zero some first bytes of disk and then ...
joseph22's user avatar
  • 367
0 votes
1 answer
403 views

Doing a disk copy with dd on RAID1 devices on Ubuntu

I want to make exact copies of two drives using dd. The two drives are mounted on Ubuntu as a single RAID1 device. The RAID (consisting of two drives) is bootable. If I make exact copies of the two ...
Sunny's user avatar
  • 369
0 votes
1 answer
80 views

resize ext4 container file [closed]

I created an ext4 file container with 16GB of space. dd if=/dev/zero of=./container_16GB.img bs=1M count=16384 mkfs.ext4 container.img It is nor problem to mount this container file but is it also ...
user0815's user avatar
0 votes
0 answers
243 views

Issues while trying to make an ISO from a DVD in macOS

I have already read most of the questions and answers relating to this issue, which is supposed to be simple, but I still can't do it. The unmount step goes ok: sudo diskutil unmountDisk /dev/disk4 ...
Eduardo's user avatar
  • 123
0 votes
2 answers
335 views

How to clone desktop NVMe into a bigger one?

I currently have a 2TB Samsung NVMe with several partitions, C being the system partition (Windows 11). I purchased a 4TB WD NVMe that I'd like to upgrade to. The Samsung is installed in one of the ...
Annathema's user avatar
0 votes
2 answers
51 views

How to prevent small ISO from marking incorrect size on large target drive?

I am trying to write a 20GB iso to a 200GB hard disk. However, when I do this, the partition table from the ISO seems to carry the 20GB drive size marking with it, so that KDE Partition Manager thinks ...
TheLabCat's user avatar
0 votes
2 answers
301 views

How to merge two drives into larger new one

I have a setup (UEFI) with two SSDs, which contain a Windows partition, a Linux partition, boot and swap partitions and a data partition. I want to move all of these to a single new SSD. How do I go ...
Tare's user avatar
  • 111
0 votes
2 answers
976 views

How to update the usb stick with files after burned with 'dd'?

I have a test.iso file not bootable, it is just an image with some files and folders. I write my usb stick with this test.iso file by using ''dd' command. dd if=/root/test/test.iso of=/dev/sdd bs=4096 ...
antonio1's user avatar
0 votes
1 answer
419 views

Image a drive to network share from Windows

I have used both dd and clonezilla to image drives, and that's great for us Linux folks; but I have clients that run Windows and I'd like to be able to be able to either clone to an external drive (I ...
bkeahl's user avatar
  • 19
1 vote
1 answer
208 views

Linux dd command

I need to clone a faulty SSD. There are some I/O errors on the device. I would like to use a Linux dd command to make a copy. I have some questions therefore. What would be the best bs value in terms ...
gordom's user avatar
  • 69
1 vote
2 answers
566 views

How to increase file size to go unnoticed in windows defender?

The maximum file size that windows defender can scan is 2G, so I ran this command on a Linux machine to increase the file's size. Then I copied it over to my windows machine. dd if=/dev/zero bs=1G ...
Carson Ouckama's user avatar
1 vote
0 answers
42 views

Reading tar tape with blocking factor 2048 on CentOS 7

I am trying to read a tar tape on CentOS 7 which was written on CentOS 5. I used blocking factor 2048. I can read tapes written with blocking factor 1024, but not 2048. Attempting to read the tape ...
John Varsik's user avatar
1 vote
2 answers
236 views

dd not zero filling flash drive

I have a sd card, wich works fine, and ubuntu 23.04, and dd does not fully mirror a disk image. example: expected: $ dd if=/dev/zero of=/dev/sdb $ strings /dev/sdb $ actual: $ dd if=/dev/zero of=/dev/...
jp_'s user avatar
  • 160
3 votes
1 answer
2k views

Why are the results of the dd command not reflected immediately?

hi i currently have a question about the result after using dd command. [root@localhost sdb2]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 898M 0 898M ...
gyunn35's user avatar
  • 41
9 votes
3 answers
4k views

Why does dd pause for 5 seconds, then continue for 20 seconds and then pause again?

I am creating a copy of a hard drive that has lost data on it so I can attempt to recover data from a copy of the disk and keep the original safe. I am using dd on a Mac and it worked for other drives ...
Foxyz's user avatar
  • 449
0 votes
1 answer
400 views

Is it possible to migrate a bootable NVMe SSD to a different one via a dd image?

I have a Linux Mint installation on a M.2 NVMe SSD in a laptop. I'd like to move this installation to a new laptop with a fresh SSD. Is it possible to create an image using dd on the old laptop and dd ...
lmoly's user avatar
  • 310
0 votes
0 answers
109 views

Can I force Linux to write data at the start of a file system?

TLDR; Is there a command to force Linux to write a file (for example a PDF file, MP3, anything really) at the start of a file system ? I don't thing that # dd does the trick, because the inode table ...
ChennyStar's user avatar
0 votes
1 answer
96 views

What happens to the free space of HDD2 if dd is used to write the smaller device HDD1, to HDD2?

What happens to the space left on sdb in this case? I assume dd will write the data at the beginning, replace the partition table, and the free space will be untouched (not usable). sda = 10 GB sdb = ...
MikeSkril's user avatar
3 votes
1 answer
5k views

GPT Table repair after dd disc clone

I used dd to clone a 500gb Hard Drive to a 256gb SSD before doing this I edited the partitions so that the last 280gb (roughly) was unallocated using GParted. Eventually dd ran out of room at 240gb, ...
Pizza's user avatar
  • 195
0 votes
1 answer
3k views

Steam deck ssd clone using dd, while following guide, ran out of battery. How to run command again?

So I was running a dd command to clone the ssd of my steam deck to a new one I have connected externally with an adapter enclosure. Problem is like a dummy I didn’t check my battery before starting ...
Hello's user avatar
  • 1
-3 votes
1 answer
181 views

Can a dd command destroy the input file?

Assuming that I have the correct input file and the correct output file in the dd command. Is there a risk that if something change in the input file during the process it could corrupt the input file ...
J.C's user avatar
  • 105
0 votes
0 answers
495 views

Create a new hard drive for wdmycloud on larger disk

I am trying to follow the instruction wich can be found here I have followed all the instruction in the file "Replace HDD - English.txt" I have a new hard drive with 6therabyte my old hard ...
J.C's user avatar
  • 105
1 vote
1 answer
470 views

dd + gz = Even Worse /// Mount Valid Partition of Whole-Disk dd Image

I've got a 250G backup of a whole disk via dd, which was then piped to gz, thanks to the advice of one of my -genius- friends. Looks like the EFI boot partition was corrupted (pretty sure it's an ...
numonium's user avatar
0 votes
1 answer
1k views

How does “dd” determine where to start copying disk blocks?

Say we have a hard drive disk and the blocks are numbered as: 0, 1, 2, 3, 4, etc… I assume that this command will read the disk blocks from block 0 and in sequence (1, 2, 3, 4…) right? sudo dd if=/dev/...
cifer's user avatar
  • 103
0 votes
1 answer
892 views

How to restore data after accidentally starting DD on a hard drive but stopping it before it went too far? [duplicate]

Today I've plugged new ssd into my PC and started an dd command for USB drive. It was too late as I recognized, that the drive letters moved around and I started flashing an ISO image over all my data....
WinterMute's user avatar
0 votes
2 answers
321 views

How to copy files into specific offset of a harddisk?

Source harddisk: Size 500G. 210G of data. Used hexdump to check beyond 280G are all zeroes. hexdump -C /dev/sdd2 --skip 280G --length 10G # all zeroes Destination harddisk: Size 600G. Used hexdump ...
midnite's user avatar
  • 571
0 votes
0 answers
230 views

DD copy prematurely reports "no space left on device". Beyond hardware failure, what could have caused that?

I have an embedded device booting from SD card with 8GB internal flash (enumerating at /dev/mmcblk1). I used to be able to manipulate the flash just fine (as in, I know that it is actually 8GB and ...
KubaFYI's user avatar
  • 133
1 vote
0 answers
741 views

Is it safe to use `dd conv=sparse` to migrate my system to a new SSD?

Back when HDDs were dominant, it's common to use the dd command to migrate system disks. But that creates a problem with SSDs: unused space from the source disk will also be written once, with either ...
Fred Qian's user avatar
  • 432
0 votes
2 answers
145 views

How do I create a backup of my hard drive in small sections?

I have an old laptop with a 500Gb non-removable (soldered) hard drive. I am attempting to recover some data from the drive. After some reading, I've discovered that I should create a copy of the drive ...
SlimyHare's user avatar
0 votes
0 answers
2k views

The most complete backup of /dev/sdX with dd, tar, gz, xz

What is the most complete way to backup/restore entire /dev/sdX (to/from a file) including device partition table and partition flags, all possible metadata, owners, file permissions, ACLs, creation/...
Monerig's user avatar
  • 31
0 votes
1 answer
2k views

Clone windows hard disk and resize ntfs partitions from linux

I have a 500gb hard disk with two main NTFS partitions, one for a Windows OS and the other for data for use by that OS as well as the boot partition at the beginning of the disk. The data partition is ...
111111's user avatar
  • 101
0 votes
2 answers
443 views

How to get SHA1 of first 4096 bytes of an mp4 file or stream?

I am trying to use command line tools to match the hash value that Plex.app computes for movie files (apparently, it's an SHA1 hash of the first block (4k) of a movie instead of the entire movie). I ...
John's user avatar
  • 415
0 votes
1 answer
203 views

error of "You don't currently have permission to access this folder" from osfmount when opening \users\user from a raw file produced by dd

I'm getting an error of "You don't currently have permission to access this folder" from osfmount when opening \users\user(or whatever user profile folder), from a raw file produced by dd (...
barlop's user avatar
  • 24.2k
0 votes
0 answers
75 views

dd fails to restore partition

Being my own sysadmin for 24 years have never had to do a dd partition level restore of a backup - now my first attempt to so fails. Everything I've read implies this should be straight-forward, but ...
user48297's user avatar
0 votes
0 answers
2k views

Cloning an SD card onto a larger SD card - exFAT

I'm using Ubuntu 18.04, and attempting to clone the SD card (128G) from my Android phone to a larger one (256G) for more capacity, without losing the file structure referencing my phone apps use. I ...
Jonathan Davis's user avatar
2 votes
2 answers
9k views

Rufus Linux DD mode to Flash drive Normalization

NEED help, My primary language is not English, so here it goes: I already destroyed one of my flash drive Transcend Jetflash 790 32GB. GOT a replacement from the warranty. I'm trying to dual boot ...
Tanvir mahmud's user avatar
4 votes
1 answer
10k views

Use Rufus to create an image of a partition + restore this partition to disk on Windows

Can we use Rufus to save a local disk partition into an .img image file? Basically the Windows equivalent of: dd if=/dev/sda4 of=output.img Also can we use Rufus to write an image, not to a whole USB ...
Basj's user avatar
  • 1,900
4 votes
1 answer
14k views

From VirtualBox VM (.vdi file) to a USB bootable ISO image

I have set up a virtual machine with Xubuntu Linux in VirtualBox. The disk is 4.5 GB a .vdi file. How can I make an IMG or ISO file from this, such that I can then write it into a bootable USB flash ...
Basj's user avatar
  • 1,900
3 votes
1 answer
359 views

Odd behavior by 'du' with `dd` on a BTRFS disk showing 0 filesize.. Anyone got some clues or thoughts around it?

Been tinkering with btrfs with consideration of moving from ext4 to that. However, when wanting to compare R/W speeds, I seem to have come across an (to me at least) unusual behavior by du on the ...
DhP's user avatar
  • 243
0 votes
1 answer
1k views

dd: error writing to output file no more disk space, Is this normal?

I have a 4 disk NAS configured as a raid 5 but unfortunately the raid recently became unrecognisable, but the NAS boots fine otherwise. I'm in the process of cloning disks so raid recovery can be ...
shreckuare's user avatar
0 votes
2 answers
780 views

Why my images created with DD have different sizes

I am working on cloning my Raspberry PI microSD cards in order restore then quickly. I use DD linux tool with SSH because they are difficult to access physically. From my computer, my command is : ssh ...
Mickael Bertainchant's user avatar
4 votes
1 answer
1k views

How to read tmpfs as a block device in linux?

A typical linux machine mounts a tmpfs to store temporary files: $ df Filesystem Size Used Avail Use% Mounted on /dev/sda1 953M 702M 203M 78% / tmpfs 1.5G ...
Duke Nukem's user avatar
  • 1,235
0 votes
1 answer
57 views

Can a broken cdrom drive cause I/O errors in programs like dd, ddrescue, etc.?

Can a broken cdrom drive cause I/O errors in programs like dd, ddrescue, etc. even if the disc itself doesn't contain bad sectors? Note that I'm interested in purely technical, factual answers, not ...
cssdev's user avatar
  • 13

1
2 3 4 5
12