Questions tagged [dd]
dd is a traditional utility for binary data copies
903
questions
0
votes
0
answers
22
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:
...
-4
votes
0
answers
85
views
dd command arguments [closed]
DECIMAL HEXADECIMAL DESCRIPTION
----------------------------------------------
6891498 0x6927EA JBOOT STAG header, image id: 0, timestamp 0x25000481, image size: 295211 bytes, ...
1
vote
1
answer
51
views
Linux kernel phantom reads
Why if i write to a raw hard disk (without FS) the kernel also makes reads.
$ sudo dd if=/dev/zero of=/dev/sda bs=32k count=1 oflag=direct status=none
$ iostat -xc 1 /dev/sda | grep -E &...
1
vote
1
answer
61
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. ...
0
votes
1
answer
52
views
Piped dd command limits its output to 65536 bytes, why?
My colleague and I are both using a Docker container running Ubuntu 22.04.4 LTS (Jammy Jellyfish):
root@c2155d7af4a4:/# grep VERSION= /etc/os-release
VERSION="22.04.4 LTS (Jammy Jellyfish)"
...
2
votes
2
answers
95
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
26
views
dd or cat for disk images [duplicate]
I used to read and write images with dd (normaly bs=1m) as it has been writen so many times but lately I more often than not simply used cat not really noticing any difference. When not using any of ...
0
votes
0
answers
31
views
Questions about disk allocation
After I uninstalled /dev/nvmeon1p1 from /boot and executed the command dd if=/dev/zero of=/dev/nvme0n1p1, I used the mount command to mount /dev/nvme0n1p1 to /mnt, can I ask if this /mnt can be ...
0
votes
1
answer
138
views
/dev/sda is present but /dev/sda1 and /dev/sda2 are missing
I have a file.img file which was obtained by running dd if=/dev/sda of=file.img. This was done on a device with two partitions, /dev/sda1 and /dev/sda2.
In order to flash a new device with the same ...
0
votes
0
answers
43
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
1
answer
44
views
How to view the existing files of a drive binary copy?
Greetings
I've been recently studying the concepts of compression and copying in Linux.
When I've been introduced to the dd command, I have found it quite useful, so as an exercise, I bit-by-bit ...
0
votes
0
answers
45
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
2
answers
119
views
Using dd to back up only contents an image on an SD card
I have a Raspberry Pi (RPi) with a 128 GB SD card. This SD card contains the full OS and settings for the RPi and I would like to back it up. The total size of all files on the SD card are around 350 ...
0
votes
1
answer
26
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-...
2
votes
1
answer
93
views
dd command not filling device
I have a surplus 120GB SSD that I want to completely clear of data. With the drive unmounted, I ran
sudo dd if=/dev/urandom of=/dev/sda bs=4M
but it stopped after copying 8GB, reporting “dd: error ...