Questions tagged [dd]
A common Unix program whose primary purpose is the low-level copying and conversion of raw data.
548
questions
3
votes
1
answer
192
views
Use Rufus to create an image of a partition + restore this partition to disk on Windows
Can we use Rufus to save a local disk partition into an .img image file? Basically the Windows equivalent of:
dd if=/dev/sda4 of=output.img
Also can we use Rufus to write an image, not to a whole USB ...
0
votes
1
answer
28
views
From VirtualBox VM (.vdi file) to a USB bootable ISO image
I have set up a virtual machine with Xubuntu Linux in VirtualBox.
The disk is 4.5 GB a .vdi file.
How can I make an IMG or ISO file from this, such that I can then write it into a bootable USB flash ...
0
votes
0
answers
31
views
How to create an 1:1 image of an unencrypted mounted partition?
I am currently doing a forensic research on android. I am interested in the userdata partition, which is usually encrypted (i did not found a way to disable the file-based encryption on Android 10/11 ...
3
votes
1
answer
34
views
Odd behavior by 'du' with `dd` on a BTRFS disk showing 0 filesize.. Anyone got some clues or thoughts around it?
Been tinkering with btrfs with consideration of moving from ext4 to that.
However, when wanting to compare R/W speeds, I seem to have come across an (to me at least) unusual behavior by du on the ...
0
votes
0
answers
30
views
How to access xfs partition encrypted with LUKS backed up with dd
How to access xfs partition encrypted with LUKS backed up with dd?
Some time ago I've backup up two disks from old laptop. One of them was encrypted with LUKS and inside it there was xfs partition. ...
0
votes
1
answer
50
views
dd: error writing to output file no more disk space, Is this normal?
I have a 4 disk NAS configured as a raid 5 but unfortunately the raid recently became unrecognisable, but the NAS boots fine otherwise. I'm in the process of cloning disks so raid recovery can be ...
0
votes
0
answers
41
views
How to correctly view a restored DD (image-->partition) (Clonezilla) from an APFS filesystem?
Currently the partition which contains the restored image is unreadable by Windows..
So I attach that partition (inside the disk via USB) to a Mac computer and it also DOES NOT show up ..
What am I ...
0
votes
2
answers
50
views
Why my images created with DD have different sizes
I am working on cloning my Raspberry PI microSD cards in order restore then quickly.
I use DD linux tool with SSH because they are difficult to access physically.
From my computer, my command is : ssh ...
3
votes
1
answer
119
views
How to read tmpfs as a block device in linux?
A typical linux machine mounts a tmpfs to store temporary files:
$ df
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 953M 702M 203M 78% /
tmpfs 1.5G ...
0
votes
1
answer
14
views
Can a broken cdrom drive cause I/O errors in programs like dd, ddrescue, etc.?
Can a broken cdrom drive cause I/O errors in programs like dd, ddrescue, etc. even if the disc itself doesn't contain bad sectors?
Note that I'm interested in purely technical, factual answers, not ...
0
votes
1
answer
63
views
What does the dd command do?
If I make a copy with the "dd" command from a block device say 8 GB to a 16 GB block device, the content of the first device is copied to the second device until it is full? (that is, until ...
0
votes
0
answers
16
views
DD'd my secondary internal drive - recover anything?
So I "failed successfully" at DD-ing a 20G image to a USB drive. As a result, I now have a 20G GPT partition table (MBR, UEFI and a BTRFS partitions) in the beginning of my former ext4 ...
0
votes
1
answer
112
views
Searching for strings in a dd image, extracting data from it
I am trying to recover the contents of a text file that became corrupt following a power outage. The file size is still correct (14 MB), but the text in the lower half of it has been replaced by ...
0
votes
0
answers
26
views
remove MBR of corrupted disk with 0 bytes
My Problem is that I have a external SSD drive which got corrupted and shows:
Disk /dev/sdc: 0 sectors, 0 bytes
And
Problem reading disk in BasicMBRData::ReadMBRData()!
Warning! Read error 22; ...
0
votes
1
answer
30
views
backup then restore when drive sizes differ
I would like to backup a Windows 10 machine ( 256gb internal drive ) onto an external SSD drive ( 1 tb ) ... however to do this backup if I boot up using a Ubuntu LiveUSB memory stick then issue the ...
0
votes
0
answers
59
views
DD image with no empty space of the volume
I want to create a DD image of a Volume of OSX from mac with none of the empty space, only the used space with data on it , to reduce the size of he img/dmg/raw file.
I've tries multiple software but ...
1
vote
2
answers
87
views
Fastest way on Windows to copy 38GB of files to 50 USB drives
If I were doing this, on linux or Mac, I would
make an NTFS RAM drive
mount it
copy the 38GB folder hierarchy to it
save the RAM drive to disk
insert a USB drive
determine the name of the raw device ...
0
votes
1
answer
49
views
pipe-lining using wget or curl on linux
I would like to know how can I download a file from the internet using wget and/or curl by separating the file into even segments and downloading the file using 8 or 16 direct links, substantially ...
0
votes
0
answers
31
views
Any easy way to verify in-line raw NTFS image
I just got a new laptop probably with Windows 10 on it, and I created a raw dd image of its hard drive for safe keeping by booting off of a Debian live USB and running the following:
dd if=/dev/...
0
votes
1
answer
129
views
Windows dd Command: Access is Denied Error
I need to create a .dd image of one of my drive in windows, For this I chose dd utility. However it is generating aforementioned error while creating image. I have opened command line as Administrator....
0
votes
0
answers
35
views
writing image to hard drive and mount it without reboot
live rootfs update script
My goal is to copy a disk image over the only harddrive of the system while the system is running and copy data to the new partitions afterwards.
I tried to do this by:
...
1
vote
1
answer
85
views
Cannot mount new hard disk after using dd command to copy old hard disk
I wanted to create a backup copy of my external HDD (/dev/sda) to new HDD (/dev/sdb).
Initially, old HDD had one ext4 partition and new HDD had one exfat partition.
I did the following.
$ sudo dd if=/...
0
votes
1
answer
56
views
dd shows more than write speed of my SSD
I was testing write speed of my SSD, but I saw different behaviors and much more speed than the actual speed.
These are results:
saeed@vbinna:~$ dd if=/dev/zero of=here bs=1M count=1024
1024+0 records ...
0
votes
3
answers
453
views
Restoring the partition table and a fsarchiver backup from a dead disk to a new one
My openmediavault server's ssd disk died, and I replaced it with a new one (different brand, same capacity). Now I wanted to restore my last backup made with fsarchiver via the omv backup plugin, and ...
3
votes
1
answer
72
views
Copying raw partition sequentially, in chunks, with error recovery
Normally if I want to copy a raw partition /dev/sdaX (with i/o errors when reading), I would just go with ddrescue <src> <dst>.
The case here is that I'd like to be able to copy this ...
0
votes
2
answers
97
views
Why are read / write sequential and not parallel?
I copy data from one disc to other
sudo dd status=progress if=/dev/sdc of=/dev/sdd ibs=1G obs=1G
But I notice that read/write are done sequential:
Is there a way to make it parallel to speed up ...
-1
votes
1
answer
68
views
dd without any options
What does dd command do when ran without any options ?
[hannah@lenovo ~]$ dd
^C0+0 records in
0+0 records out
0 bytes copied, 7.71982 s, 0.0 kB/s
Does it delete any files or it's nothing to worry ...
0
votes
1
answer
57
views
I accidentally cloned my 16GB SD card to my 256 GB pendrive using dd. Is there any way to retrieve back my pendrive?
I have a 16GB SD card, which when I connect to my computer, gives cant read superblock error (in Ubuntu). After searching on internet, I saw some solutions using testdisk tool and decided to try it ...
5
votes
1
answer
780
views
Linux - accidentally used dd on a LUKS encrypted drive, is there a way to recover?
I accidentally ran dd bs=4M if=image.iso of=/dev/sda oflag=sync when creating a bootable drive instead of targeting the USB stick.
I am fairly certain most of the files would be fine - the iso is only ...
0
votes
0
answers
84
views
Unable to boot DD'd Windows 10 drive
NOTE: Already posted at https://unix.stackexchange.com/questions/657563/unable-to-boot-ddd-windows-10-drive . After no activity there for almost 5 days, and no option I have used in the past to move ...
0
votes
1
answer
174
views
I used dd command to burn the iso file of windows10 but the usb has not been detected in BIOS
I use linux OS.
I downloaded the iso file of win10 from https://www.microsoft.com/en-us/software-download/windows10ISO
And burned it to the usb using
sudo dd if=Win10_21H1_English_x64.iso of=/dev/sdb ...
0
votes
1
answer
23
views
Backup ext4 on LUKS to an external drive if the size of the target drive is less than the size of the source drive
I have a few spare 1TB marked SSDs that I'd like to use for my primary NAND backup. I'd prefer to have dd for dumping everything as it is - but the tricky part is that my NAND has about 1.5 GB more ...
0
votes
0
answers
106
views
Will tools like shred, wipe or dd (or hard drives in general) check that a write was successful?
I usually use shred to delete complete hard drives.
But I was wondering if and how tools like shred, wipe or dd verify that the expected bits end up on the hard drive.
Does a hard drive always check ...
0
votes
0
answers
1k
views
Cloning a Windows 10 Hard Drive with dd
I'm migrating a Windows 10 install from a SATA 3 SSD to an NVMe drive for a friend. The plan was to image the drive, give the original disk back to my friend so he can use it in the meantime, and once ...
0
votes
1
answer
36
views
Cloned Disk with dd in Linux Live Image
I used dd to clone with an Ubuntu Live Image from a smaller SSD to a bigger one. During the cloning process Ubuntu freezed. I waited some time and did a hard shutdown. After rebooting it seems the ...
1
vote
1
answer
79
views
How come I can't write to the last byte of the the last block?
I was doing some tests by writing random patterns of data at a block size of 512 bytes (the size of blocks on my drive) and dd fails at the last block saying that the device ran out of space.
I was ...
0
votes
2
answers
17
views
After cloning, the system Windows 8.1 shows the size of the smaller disk
I have ask a related question elsewhere. I have cloned 4TB HDD onto 8.TB but the
system (Win 8.1) shows the size of the lower of the 2 disks, i.e. the size of the source while cloning.
How do I assign ...
2
votes
0
answers
193
views
Bad Superblock when mounting LVM SSD
I made a complete copy of my Fedora boot ssd using dd however the new drive does not boot correctly and is not mountable when connected via usb enclosure on a different machine. I get a bad superblock ...
0
votes
1
answer
99
views
how to dd /dev/sdX to /dev/mmcblkX?
I made a Debian 10 system image in virtual machine and written it to external HDD. I wanted to copy the system to a laptop's disk, but it has SSD disk that shows up as /dev/mmcblk.
My system has 3 ...
0
votes
2
answers
123
views
Hard drive stops working during ddrescue and is making odd sounds
We have an older HDD (WD Black 500 GB) that was still in use for the data it had but then at some point, Windows wouldn't boot with the drive installed. I checked with a Linux installation and the ...
4
votes
1
answer
130
views
How can I recreate an installer iso from a usb (Mac/Windows) using dd?
I have read many "how do I write an iso to USB" questions. I am looking for a way to reverse the process. My question is about taking a USB stick containing a Windows installer or Mac ...
0
votes
0
answers
29
views
Getting blocks of zeros after flashing SD card with dd
I've got a problem with writing an SD card with an image. What I want to do is to create an image of an SD card from files present on my hard drive.
My plan is to:
Create a loop device and connect it ...
1
vote
1
answer
136
views
Migrate Operating System to a new Disk with dd or other linux tools
I have 1 TB HDD, and a new 250 GB SSD.
The HDD has these partitions:
499 MB (EFI)
256 GB (Boot, Page File) - Only 120 GB of this partition is used. the rest is free.
499 MB (Recovery Partition)
736 ...
1
vote
0
answers
57
views
How to checksum a SquashFS filesystem on partitionless HDD
# lsblk -f /dev/sda
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda squashfs 4.0
# mount -v /dev/sda /mnt
mount: /dev/sda mounted on /mnt.
$ df -B1
Filesystem 1B-blocks Used ...
1
vote
2
answers
320
views
Luks header overwritten with dd
I've copy and pasted too fast from a tutorial and overwritten the LUKS header from one of my drives with dd. The used command was:
dd if=/dev/urandom of=/dev/sdb bs=512 seek=1 count=100
And now:
...
0
votes
0
answers
131
views
How to mirror an NVME SSD onto another?
I'm not sure what the technical terms are for this, but I'm having the following problem:
The internal SSD of my laptop died and set itself to readonly. It has all the recovery partitions and all that ...
0
votes
1
answer
99
views
What's the difference between dd into a file and dd into a physical disk
The size "openwrt-19.07.6-x86-64-combined-squashfs.img" image is 20MB. If I change the file name to "openwrt.raw", I can import it into virt-manager and boot into the system. But ...
0
votes
1
answer
79
views
How can I use the dd command to clone a USB drive?
I have created a USB with a Linux distro on it and would like to clone it to another USB drive. The drive with the distro on it is 256GB, the distro is on roughly 8GB partition of USB drive. The drive ...
0
votes
0
answers
59
views
dd vs diskutil: which is faster when it comes to writing zeroes?
When I want to erase a disk, both dd and diskutil are viable options. To erase a disk with dd, I usually run something like dd if=/dev/zero of=/dev/$device bs=4096. The equivalent of this in diskutil ...
0
votes
1
answer
31
views
Can I use dd with a mounted partition?
I would like to backup my /home (nvme0n1p3) partition to a backup.img file using dd. Can I do that while the partition is mounted?