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
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
  • 121
0 votes
1 answer
96 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
  • 204
0 votes
0 answers
52 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
41 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
0 votes
1 answer
534 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
  • 165
0 votes
1 answer
827 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
75 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
215 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
126 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
341 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
0 answers
96 views

How to implement the quota size which can be modified later in samba?

I want to give quotas for individual shares, such that I can also modify the quota size in future. I tried doing this using this https://superuser.com/a/976714 answer. Problem is file modified using ...
Ayush Gupta's user avatar
0 votes
1 answer
308 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
145 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
  • 511
0 votes
0 answers
210 views

LVM: Renaming LVs and PVs with vgimportclone on disk cloned with dd

Hello everybody out there using LVM, To have an immediate backup disk to replace my main Ubuntu 18.04 hard drive (which uses LVM), I cloned the main hard drive with dd. This resulted in a clone also ...
NicolasBourbaki's user avatar
0 votes
0 answers
40 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
288 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 ...
Chang Qian's user avatar
0 votes
2 answers
75 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
594 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
0 answers
56 views

lsblk doesn't show mmcblk0, mmcblk2 exists

I am trying to install devsus on an ASUS C201 laptop. I have successfully installed on an external USB, but am trying to install to the internal laptop memory. The instructions direct me to dd the ...
Jason Donaldson's user avatar
0 votes
0 answers
145 views

Using a Squashfs to DD onto a partition to repair the OS

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
  • 101
0 votes
1 answer
585 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
198 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
  • 377
0 votes
1 answer
69 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
  • 23.2k
0 votes
0 answers
47 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
98 views

bootable backup of ubuntu

I have Ubuntu installed on a single 1TB drive. What I want to do is a full backup of the system. I know I can use tar/gzip or rsync for most of the data, but I'm not sure what exactly do I need to do ...
matej's user avatar
  • 121
0 votes
0 answers
846 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
5k 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
3 votes
1 answer
4k 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,554
2 votes
1 answer
5k 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,554
3 votes
1 answer
145 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
  • 247
0 votes
1 answer
784 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
0 answers
221 views

How to correctly view a restored DD (image-->partition) (Clonezilla) from an APFS filesystem?

Currently the partition which contains the restored image is unreadable by Windows.. So I attach that partition (inside the disk via USB) to a Mac computer and it also DOES NOT show up .. What am I ...
hosa's user avatar
  • 65
0 votes
2 answers
466 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
3 votes
1 answer
713 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,165
0 votes
1 answer
40 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
0 votes
1 answer
336 views

What does the dd command do?

If I make a copy with the "dd" command from a block device say 8 GB to a 16 GB block device, the content of the first device is copied to the second device until it is full? (that is, until ...
yellowdog's user avatar
  • 293
0 votes
1 answer
825 views

Searching for strings in a dd image, extracting data from it

I am trying to recover the contents of a text file that became corrupt following a power outage. The file size is still correct (14 MB), but the text in the lower half of it has been replaced by ...
MaxTexts's user avatar
1 vote
0 answers
263 views

remove MBR of corrupted disk with 0 bytes

My Problem is that I have a external SSD drive which got corrupted and shows: Disk /dev/sdc: 0 sectors, 0 bytes And Problem reading disk in BasicMBRData::ReadMBRData()! Warning! Read error 22; ...
ilmio nome's user avatar
0 votes
1 answer
122 views

backup then restore when drive sizes differ

I would like to backup a Windows 10 machine ( 256gb internal drive ) onto an external SSD drive ( 1 tb ) ... however to do this backup if I boot up using a Ubuntu LiveUSB memory stick then issue the ...
Scott Stensland's user avatar
0 votes
2 answers
879 views

DD image with no empty space of the volume

I want to create a DD image of a Volume of OSX from mac with none of the empty space, only the used space with data on it , to reduce the size of he img/dmg/raw file. I've tries multiple software but ...
Mehdi Singer's user avatar
1 vote
2 answers
658 views

Fastest way on Windows to copy 38GB of files to 50 USB drives

If I were doing this, on linux or Mac, I would make an NTFS RAM drive mount it copy the 38GB folder hierarchy to it save the RAM drive to disk insert a USB drive determine the name of the raw device ...
daveyost's user avatar
  • 131
0 votes
1 answer
239 views

pipe-lining using wget or curl on linux

I would like to know how can I download a file from the internet using wget and/or curl by separating the file into even segments and downloading the file using 8 or 16 direct links, substantially ...
mohsentux's user avatar
  • 115
0 votes
1 answer
821 views

Windows dd Command: Access is Denied Error

I need to create a .dd image of one of my drive in windows, For this I chose dd utility. However it is generating aforementioned error while creating image. I have opened command line as Administrator....
aneela's user avatar
  • 111
1 vote
1 answer
611 views

Cannot mount new hard disk after using dd command to copy old hard disk

I wanted to create a backup copy of my external HDD (/dev/sda) to new HDD (/dev/sdb). Initially, old HDD had one ext4 partition and new HDD had one exfat partition. I did the following. $ sudo dd if=/...
darthvader124's user avatar
1 vote
3 answers
1k views

Restoring the partition table and a fsarchiver backup from a dead disk to a new one

My openmediavault server's ssd disk died, and I replaced it with a new one (different brand, same capacity). Now I wanted to restore my last backup made with fsarchiver via the omv backup plugin, and ...
dvilela's user avatar
  • 183
3 votes
1 answer
211 views

Copying raw partition sequentially, in chunks, with error recovery

Normally if I want to copy a raw partition /dev/sdaX (with i/o errors when reading), I would just go with ddrescue <src> <dst>. The case here is that I'd like to be able to copy this ...
Mike's user avatar
  • 206
0 votes
2 answers
438 views

Why are read / write sequential and not parallel?

I copy data from one disc to other sudo dd status=progress if=/dev/sdc of=/dev/sdd ibs=1G obs=1G But I notice that read/write are done sequential: Is there a way to make it parallel to speed up ...
Eugen Konkov's user avatar
-1 votes
1 answer
334 views

dd without any options

What does dd command do when ran without any options ? [hannah@lenovo ~]$ dd ^C0+0 records in 0+0 records out 0 bytes copied, 7.71982 s, 0.0 kB/s Does it delete any files or it's nothing to worry ...
Madhubala's user avatar
  • 1,731
0 votes
1 answer
103 views

I accidentally cloned my 16GB SD card to my 256 GB pendrive using dd. Is there any way to retrieve back my pendrive?

I have a 16GB SD card, which when I connect to my computer, gives cant read superblock error (in Ubuntu). After searching on internet, I saw some solutions using testdisk tool and decided to try it ...
Namboo3's user avatar
6 votes
1 answer
1k views

Linux - accidentally used dd on a LUKS encrypted drive, is there a way to recover?

I accidentally ran dd bs=4M if=image.iso of=/dev/sda oflag=sync when creating a bootable drive instead of targeting the USB stick. I am fairly certain most of the files would be fine - the iso is only ...
circo's user avatar
  • 161

1
2 3 4 5
12