Questions tagged [dd]

dd is a traditional utility for binary data copies

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 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
56 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
31 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
34 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
36 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
77 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
21 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
68 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
0 votes
1 answer
41 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 ...
Marco Montevechi Filho's user avatar
0 votes
3 answers
280 views

How to extract the bootloader from an iso?

I found a project on GitHub that emulates a Windows XP operating system, and I have a problem with an iso. https://github.com/lrusso/VirtualXP/tree/main I want to extract it, change things and ...
ArtEze's user avatar
  • 55
0 votes
0 answers
88 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:...
filimonic's user avatar
  • 131
0 votes
2 answers
69 views

Erase external SSD completely, including SWAP

I have an external SSD which I need completely wiped. I had Mint installed on it, with SWAP and some root dir. Those I somehow cannot get rid off. I tried sudo dd but that just wipes sdc and those ...
Boq7's user avatar
  • 3
0 votes
0 answers
22 views

How to rescan/rebuild /dev/sdx after "raw" dd restoration [duplicate]

I'd like to know how to request Linux to update /dev/sdx after doing a "raw" dd restoration of a whole hard disk partitions ? I have to use dd instead of sfdisk to restore the partition ...
Louthrax's user avatar
0 votes
1 answer
50 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. ...
For Ward's user avatar
0 votes
1 answer
147 views

How do I access all the files on a disk image?

To backup a remote server, I ran this command on my local machine: ssh user@remote "dd if=/dev/vda | gzip -1 -" | dd of=image.gz I then decompressed image.gz and tried to mount it by double ...
JacksonHunt's user avatar
0 votes
1 answer
56 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.
Olindo Pindaro's user avatar
0 votes
0 answers
33 views

Command to create a disk image in which bad sectors are replaced by zeroes [duplicate]

From time to time I have HDDs and microSD cards which have bad sectors. I realized that all photorec, (ext/ntfs/...)undelete and dd fail or are incredible slow. Other users seem to have the same ...
zomega's user avatar
  • 972
0 votes
1 answer
61 views

Handle Partition Changes Embedded System

I have to update some outdated embedded systems. But the RAUC Update contains four partitions, while the old systems have only three partitions. The additional Partition is at the start of the disk ...
Cellcon's user avatar
  • 135
0 votes
1 answer
126 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 -&...
John Balan's user avatar
0 votes
0 answers
41 views

Searching a 1T block device for a specific byte sequence at a specified offset

I'm performing data recovery after an accident with dd. In the longer term, I'll need to use some recovery tools to try and repair the file system In the meantime, there's an image on the system that ...
user587941's user avatar
0 votes
3 answers
172 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 ...
user3450548's user avatar
  • 2,920
1 vote
1 answer
304 views

Creating a compressed image of an exFAT USB drive using dd

My system is running Ubuntu 22.04.3 LTS. I plug a USB drive into that system. That USB drive (/dev/sdb) contains an Ubuntu installation, mostly in an ext4 partition (/dev/sdb3). That installation ...
Ray Woodcock's user avatar
2 votes
1 answer
125 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 ...
Eswar Reddy's user avatar
1 vote
3 answers
197 views

Write image to current root-partition

I'm currently playing with building disk images (based on Debian) for a raspberry-like computer. My current workflow looks like: create disk image (about 16GB uncompressed; or 3GB compressed) power-...
umläute's user avatar
  • 6,472
-1 votes
1 answer
69 views

How can i delete and format sd card partitions that have file system in it?

Ok,I have steam with steam os in it sooo in a way on another i install steam os in sd card (install steam os in the sf did not end well and got file system that i can not delete or work it) and got ...
عمر جواد كاظم's user avatar
0 votes
0 answers
15 views

Flashing a bootloader without the use of sync doesn't work [duplicate]

So some background I was scripting building an SD Card Image for the Anbernic RG350M device. This involves flashing a boot loader to the image. See below. dd if="./select_kernel/squashfs-root/...
AeroMaxx's user avatar
  • 189
0 votes
1 answer
160 views

using a cron job to automatically backup the same drive using dd

so I want to backup my system drive (full drive not just partition) every month using dd, in an external hard drive. So I have something like this in my crontab 0 9 1 * * dd if=/dev/sda | gzip -c &...
vzografos's user avatar
0 votes
1 answer
141 views

dd not enough space

I have a drive that is about 1TB big. It is mostly free space. When you add up the size of all the partitions, it is less than 256GB. I have another drive that is 256GB. I would like to clone the data ...
user168226's user avatar
1 vote
1 answer
97 views

How to edit grub file after restoring data on a new drive via dd?

I have a dual boot system with ubuntu 20.04 and windows 10. Because of being low on space I am upgrading my ssd to 512 gigs. I have booted into live ubuntu drive, and backed up each partition ubuntu, ...
Destroyer's user avatar
1 vote
1 answer
833 views

Is it safe to use /dev/disk/by-id/ instead of /dev/sda?

I am currently using a simple way to back up the drive dd if=/dev/sda of=/dev/sdb. However, before each operation, I have to check fdisk -l to see if sda and sdb have been swapped during boot. This is ...
DarekH's user avatar
  • 77
1 vote
0 answers
170 views

Safest way to clone OS disk besides dd and Clonezilla

I would like to clone my OS drive, to a same/larger disk. And I will do this periodically. On Windows I use AOEMI Partition Assistant to clone disks. The GUI is very good and idiot-proof. However, ...
intrigued_66's user avatar
3 votes
1 answer
583 views

dd - No space left on device with microSD cards

I'm working on Raspberry Pi OS on a Pi3B. I'm working with a script that does a few things for partitioning and there are times I want to wipe the drive, so I use (as root): dd if=/dev/zero of=/dev/...
Tango's user avatar
  • 353
0 votes
3 answers
80 views

Analogy of dd command real case when performing RW test

I'm doing these two tests: #1 dd if=/dev/zero of=./testfile1 bs=512M count=1 conv=fsync And #2 dd if=/dev/zero of=./testfile2 bs=1M count=512 conv=fsync Can I say: #1 is meaning copying (write ...
Muhammad Ikhwan Perwira's user avatar
2 votes
1 answer
633 views

How to increase the size of a LUKS file-container

There are many tips on how to resize (increase) a LUKS2 encrypted device / partition / LVM volume. But how to increase the size of the LUKS container created in the file? I once created: dd if=/dev/...
DarekH's user avatar
  • 77
1 vote
2 answers
142 views

Why is this dd command with a count and bs param running past its count?

I have a dd command with bs=1M and count=40960M (40GB) and it's consistently running past its count every time I try to run it. This is the exact command, and the output captured before I stop it: dd ...
Dan Herbert's user avatar
0 votes
2 answers
990 views

Upgrade HDD on PlayStation 4, clone with dd and enlarge the partition using GParted?

Will it work if I use the dd command to clone the almost full 1TB hard disk drive from my PlayStation 4 to a new 2TB drive, then resize the partition using GParted to utilize the full capacity of the ...
nestoribio's user avatar
2 votes
1 answer
80 views

Disk size is variable

I was flashing a new operating system to a device, but after the process was complete, I couldn't boot into it. I then checked the disk, and I noticed something strange. Different tools report ...
TKirishima's user avatar
0 votes
0 answers
179 views

USB-Flash-drive no longer enumerated by system, how to repair

One of my memory sticks has stopped being usable. It's not that old, and has a fairly low R/W life used. But any attempt to format or write to it seems impossible now. When inserted it creates a new ...
CapnJack's user avatar
0 votes
3 answers
4k views

Is the dd command enough to delete all data from a hard disk?

I need to remove all data from an hard disk where lubuntu 22.04 is installed. I was thinking to boot from an Ubuntu liveUSB image and, from a terminal, use the command: # the Hard Disk is the device ...
User051209's user avatar
0 votes
1 answer
56 views

Regain full disk space after copying a small image file to a large USB device

I'm copying an image file (size: 2GB) to an USB disk on /dev/sda (size: 2TB) using dd: sudo dd if=2023-05-03-raspios-bullseye-arm64-lite.img of=/dev/sda bs=4M status=progress conv=fdatasync After dd, ...
Wolkenarchitekt's user avatar
0 votes
1 answer
274 views

Why is dd randomly throwing a "No space left on device" error even though there is plenty?

I am trying to flash an image on a ssd, but have to start multiple attempts until it finally succeeds. The image is 3 GB in size, the ssd has 1.8 TB. I've seen other people have problems with inodes, ...
falste's user avatar
  • 3
0 votes
0 answers
176 views

Debian did not work on USB

I have been facing difficulties reinstalling Debian using the legacy and MBR approach on a GPT USB. Previously, I used to install Linux distributions on USB flashes and create a dd image for backup ...
Amr Alasmer's user avatar
-3 votes
1 answer
183 views

How to burn correctly the FreeBSD 7.2 ISO image in a USB stick

I've found that FreeBSD 7.2 should have kqemu,so I want to try how much good it was. I've written the iso image to my USB stick ( /dev/sdj ) with this command : xzcat 7.2-RELEASE-amd64-dvd1.iso | dd ...
Marietto's user avatar
  • 531
0 votes
0 answers
586 views

How to resolve dd error reading?

I have dd error reading # sudo dd if=/dev/sda1 of=backup.img bs=4M status=progress 16478679040 bytes (16 GB, 15 GiB) copied, 154 s, 107 MB/s dd: error reading '/dev/sda1': Input/output error 3928+1 ...
Dims's user avatar
  • 3,255
1 vote
1 answer
272 views

How to use dd to clone a disk but exclude some partitions?

How to use dd to clone a disk but exclude some partitions? So I got (on a Raspberry Pi 4B): Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 532479 ...
Meniny's user avatar
  • 111
2 votes
1 answer
126 views

How to calculate and re-partition the three partitions using the end of partition sector values a, b, c, and d at the beginning of the BASH script?

Let us say that we have the following bash script on a Linux machine, beginning with: #!/bin/bash #This setsetcor script takes four arguments: setsector a b c d #Both a, b, and c and d are integers ...
Stephen Elliott's user avatar
0 votes
0 answers
56 views

How to Restore completely deleted Virtualbox Linux.VDI on Linux ? Already restored it but to DD image, don't have a backup

so I accidentally deleted the Linux.VDI from my Virtualbox it's a Linux/Ubuntu64 VDI, I had a success by restoring the file but only to a Linux.dd , I have tried different things to get it back ...
nblack7hass's user avatar
0 votes
0 answers
129 views

How to rebuild the filesystem of a recovered partition

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten. I immediatly stopped using the drive,I made an ...
Expired's user avatar
2 votes
1 answer
86 views

Reading an image with dd from a hard disk connected to a raid controller does not make it over 4GB

I am trying to create an image of a HDD connected to a Promise Fastrack TX2300. I am trying to do this with the live Linux 'grml'. The hardware on which this is taking place is long past its best days:...
hirnwunde's user avatar
  • 131
2 votes
0 answers
99 views

Interpreting safecopy's output to a device file

So recently we've had a dying hard drive that we tried to copy all the data from using safecopy. The documentation as well as any guides I could find specified that safecopy's output has to be an ...
Bobcat's user avatar
  • 21

1
2 3 4 5
18