Questions tagged [dd]
dd is a traditional utility for binary data copies
921 questions
0
votes
1
answer
190
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/<...
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
1
answer
66
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
...
2
votes
2
answers
104
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 ...
0
votes
1
answer
90
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
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?
0
votes
2
answers
177
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
343
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 ...
-1
votes
1
answer
151
views
Both original and cloned Disks fail to boot post cloning using dd
I've attempted to clone a HDD to a SSD using dd using the following command
sudo dd if=/dev/sda of=/dev/sdc bs=32M status=progress
as per this page. (I used sudo because it didn't give me permission ...
6
votes
2
answers
1k
views
dd backup fails with "File too large" error despite ample free space on FAT32 partition [duplicate]
I am attempting to back up a drive, but alas I am met with the following issue:
trisquel@trisquel:~$ sudo dd if=/dev/sda of=/media/trisquel/Backup/ImageBackupOfSeptember202024/full-backup.image status=...
0
votes
1
answer
116
views
SDcard Image behaves differently than Original
I created my OS on my Raspberry pi 2 zero W on an SDcard. Now I want to distribute it so I made an Image from the SDCard (using dd). But the two cards behave differently especially at startup. Did ...
0
votes
0
answers
126
views
Can't dd broken SSD
When trying to sudo dd if=/dev/sda of=dump.dd conv=noerror,sync on my Kingston SSD (SA400S37/120G, SBFK71E0) the dmesg log shows the following:
usb 4-4: new SuperSpeed USB device number 8 using ...
0
votes
0
answers
37
views
How can I get the _real_ progress of dd, ignoring fast/staging buffers? [duplicate]
I'm using the dd command to write to a USB stick. My command is pretty straightforward:
dd if=myimage.iso of=/dev/sdd bs=1M status=progress
and indeed, I seem to be getting the progress reported:
...
1
vote
1
answer
135
views
Swapping contents of two drives with the same capacity
I have two flash drives, for example, and due to USB speeds prefer have the contents of one on the other and vice versa. This includes the MBR and EFI bootloaders. I am not referring to swap space. ...
2
votes
2
answers
330
views
Create FAT-formatted disk image that can fit 1G file
I'm struggling to create a FAT-formatted a disk image that can store a file of known size. In this case, a 1 GiB file.
For example:
# Create a file that's 1 GiB in size.
dd if=/dev/zero iflag=...
0
votes
0
answers
111
views
Mass install linux by dd to drive directly?
I need to install an custom OS to many similar/identical laptops. Would it work to live boot a laptop and dd the disk from a template laptop to the new one? Is it possible to trigger secure boot key ...
0
votes
0
answers
119
views
Copy/Clone one USB stick to another with different size and format
I need to upgrade a USB stick I am using as it has become too small (16 GB) and the new stick is 64 GB which is too large, requires NTFS format. I have used this to reformat the new stick: sudo ...
0
votes
1
answer
91
views
Debian installation from USB: "the logical volume vm-sys-net-private on qubes_dom0 could not be deleted"
I tried Qubes OS and found out that it is too heavy and complicated for me. So I tried to install Debian from a flashed USB. However, the installer gives the following error:
the logical volume vm-sys-...
0
votes
1
answer
414
views
Benchmarking lustre filesystem
I want to benchmark the ability of a single lustre client to save in its lustre-mounted filesystem.
I am an application developer and not a storage maintainer, so i am not worried about storage write ...
0
votes
0
answers
608
views
How to use dd for only allocated space?
I want to backup whole disk using DD.
I have a 512 Gb disk with 3 partitions who take only 8 Gb and the rest is unused.
root@routerMARS:~# parted /dev/sda print
Model: ATA MT-512 (scsi)
Disk /dev/sda:...
0
votes
1
answer
71
views
Research and Folleys/Three RO Filesystems and No Way to Get the SD Card Back Operating
I have this SD Card that has three read-only filesystems on it. I am using a Linux computer to try to erase via dd or another command tool.
I am currently trying to write an image to the SD Card. ...
0
votes
1
answer
111
views
DD between different file system
I need to install a new server Linux cloned by DD. In the old server i used xt4 and in the new server i want use i.e zfs. Can use DD command from old ext4 to new zfs?
Thanks to Whom will responde.
0
votes
1
answer
288
views
DD remote disk from windows
I am trying to image a disk for one of our network appliances and am running into an issue with saving the output file.
This is the command:
ssh [email protected] shell "dd if=/dev/md0 |gzip -1 -&...
0
votes
3
answers
303
views
using dd for clean MBR code doesn't work on pfSense
Trying to clean the mbr code part on a disk using the pfsense 2.7.0 live disk (pfsense is based on freebsd) under shell command.
being /dev/da0 my drive following the suggested code for clean just the ...
2
votes
1
answer
319
views
Softirq delayed because of the Heavy I/O Operation
I am trying to copy the contents of a 1 GB ISO file (stored in USB) to my internal storage. As part of a test when i am doing repetitive copy operation from USB to my hard drive continuously I observe ...