Questions tagged [dd]
dd is a traditional utility for binary data copies
921 questions
0
votes
1
answer
204
views
How can I extract files from a disk image backup (.image file)? [duplicate]
I backed up my old device using dd and am trying to access its contents.
The following has been attempted:
usr@pop-os:~/Backups$ sudo mkdir /mnt/<dir>
mount -o loop <file>.image /mnt/<...
13
votes
2
answers
1k
views
Can I safely utilize `dd` to backup my drive to a singular image file?
This post might be a bit redundant, but I am trying to back up my SSD using dd. Many (if not all) of the guides out there for this tool save the drive per partition. However, I would like to save it ...
2
votes
1
answer
411
views
“Bad magic number in super-block” after a dd of Mobian (Debian) image
General overview
I try to install the Mobian OS on my Pinephone thought the dd’s method as described in the official Debian documentation. Basically, I have to make a dd from an image to a partition ...
0
votes
2
answers
73
views
how to copy a HD to another if the CPU is freezing after a few GB?
how to copy a HD to another if the CPU is freezing after a few GB ?
I had to copy w11 of a friend notebook from a 128GB nvme to a 1TB nvme.
I put nvne128gb in a usb adapter and the nvme1TB inside the ...
0
votes
1
answer
67
views
dd cannot write to an ext4 HDD using oflag=direct
I attempted to write a file to an ext4 voulume on an external USB hard disk drive:
$ dd if=/dev/zero of=file bs=1M count=10 iflag=fullblock oflag=direct
dd: failed to open 'file': Invalid argument
...
0
votes
1
answer
101
views
dd with 1M buffer is running at only 1 MB/s - disk usually can be accessed at full speed
I am running the command dd bs=1M if=/dev/zero of=/dev/md7 status=progress. It started very slow at 4 MB/s but now has dropped to 1 MB/s. This is a standard SATA disk that was running perfectly ...
2
votes
2
answers
106
views
Recovery of a compressed image not possible due to lack of Space - general understanding of compression methods
I used gzip to compress an image which is quite huge still.
dd if=/dev/sda2 bs=1M | gzip -c -9 > sda2.dd.img.gz
then I changed the partitioning of the Drive because I wanted to install Linux.
And ...
1
vote
0
answers
288
views
Why doesn't lsblk list the drive where Windows 11 is installed? (I can boot into Windows, so I know the drive is functional)
I used dd to write the SystemRescue ( https://www.system-rescue.org/ ) image to a USB stick drive. I used this USB stick to boot into Computer#1 and then used dd to clone the internal system drive to ...
0
votes
1
answer
97
views
dd: padding input stream with zeros till end of disk / size
I'm having a stream of binary data coming in via stdin which I want to write to a block device /dev/mmcblk0p2.
The size of the input stream is arbitrary and since it's coming in via stdin, it's not ...
0
votes
1
answer
170
views
Why is dd unable to read /proc/pid/mem?
Why is GNU Coreutil's dd unable to read /proc/pid/mem? PHP is able to read it, check this:
$ dd if=/proc/357668/mem bs=100 skip=93824992231424 count=1 iflag=fullblock
dd: /proc/357668/mem: cannot skip ...
0
votes
0
answers
29
views
Can I mount a specific partition from an image file? [duplicate]
Say I have an .iso file from this dd command:
dd if=/dev/sda of=./image.iso
In the case where the drive contained multiple partitions, how could I say, only mount the second one?
1
vote
1
answer
367
views
Is dd the best way to write an image to a drive?
I'm using this pipeline to write an image file to drive $drive:
wget -o logfile -O - https://route/to/image.gz | \
gunzip -c | \
dd of="$drive" bs=4M conv=fdatasync 2>/...
0
votes
2
answers
180
views
Move a Linux/Windows setup to a larger SSD
I want to move a dual boot Windows 7 and Linux Mint installation to a larger drive. Right now they exist on a 500GB Samsung SSD. Windows has 289.84 Gib, Linux has 175.42 Gib.
I was thinking of dd or ...
0
votes
1
answer
528
views
How to use dd with status in busybox?
I use busybox (and buildroot). How to use status? For example
dd if=disk.img of=/dev/sda bs=4M conv=fsync status=progress
0
votes
1
answer
352
views
How can I benchmark disk throughput using dd? (writing to /dev/null is instantaneous?)
I'm trying to perform a simple disk benchmark (throughput) of my ZFS filesystem using dd.
Here is my command:
dd if=/tank/media/video/largefile.mp4 of=/dev/null bs=1M count=1000
However, it finishes ...