Skip to main content

Questions tagged [dd]

dd is a traditional utility for binary data copies

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: ...
einpoklum's user avatar
  • 9,653
-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, ...
minto's user avatar
  • 535
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 &...
Alex's user avatar
  • 608
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. ...
markoj's user avatar
  • 13
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)" ...
Bart Vandewoestyne's user avatar
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=...
jdeanwallace's user avatar
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 ...
wiebel's user avatar
  • 23
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 ...
Darcy Walter's user avatar
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 ...
Silviu Bajenaru Marcu's user avatar
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 ...
johndue's user avatar
  • 41
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 ...
KhodeNima's user avatar
  • 101
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 ...
RDK's user avatar
  • 23
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 ...
ironfish's user avatar
  • 135
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-...
jvkloc's user avatar
  • 101
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 ...
Peter bill's user avatar

15 30 50 per page
1
2 3 4 5
61