Questions tagged [dd]

dd is a common Unix program whose primary purpose is the low-level copying and conversion of raw data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

On dd utility detail

Apologize if it'd be too meticulous getting to know few Linux works but cant help How is dd utility copying in some HW / SW condition at least here, copied 3.5 GB onto Usb disk with OS give freed 7 GB ...
itil memek cantik's user avatar
1 vote
1 answer
81 views

Cloning/Copying partition to existing disk with unallocated space

I have an 240GB SSD which I am upgrading to 1TB SSD. Unfortunately I do not have multiple SSD slots on my laptop but have a 1TB HDD with 440GB of used partition space and 488GB of unallocated space. ...
jayendra.rakesh's user avatar
5 votes
2 answers
790 views

High CPU usage with while loops running dd command

I'm using this command to read continuous data from named pipes: { while :; do dd iflag=fullblock iflag=nonblock bs=65536 count=1 2> /dev/null | redis-cli -x PUBLISH myChannel ; done } < myFifo ...
james hofer's user avatar
0 votes
0 answers
72 views

How to clone a bios_grub partition?

I want to create a clone of my SSD. My partition table looks like this: However when using Clonezilla (which uses Partclone) in the dd mode, it fails to clone the first 1MB bios_grub partition (BIOS ...
slazien's user avatar
0 votes
0 answers
73 views

Periodic incremental backup of a raspberry pi to another PC?

Hi I have a Raspberry Pi and would like to do an incremental back of the pi to another PC. Below is one method I found. Install WSL/Ubuntu on the windows PC. Change the directory to /mnt/c/ on the ...
SEU's user avatar
  • 129
0 votes
1 answer
54 views

Can I install a distribution from one partition to another using dd?

If I'll do dd if=isofile.iso of=/dev/sda2 will it work? I need to install a system from iso to the other partition with no use of external drives (from sda1 to sda2 for example).
Ya Y's user avatar
  • 169
0 votes
0 answers
53 views

Comparision of methods for implementing directory size quota in Linux?

I came across two solutions for implementing directory size quotas in Linux. One was using making images using the dd/fallocate/etc command and mounting it using loopback interfaces, resizing can be ...
SUNITA GUPTA's user avatar
0 votes
1 answer
206 views

How can I implement quotas in samba?

I want to create smb shares that are limited by a given quota size also I want to be able to modify the quota size in the future. While searching for a solution I came across the setquota command but ...
SUNITA GUPTA's user avatar
0 votes
0 answers
27 views

How to verify a zipped drive image using DCFLDD

DCFLDD has a verify function where an output of a previoius disk image creation can be validated against the source disk. Can verify work with a zipped image file without first unzipping the file ?
danik56's user avatar
1 vote
0 answers
26 views

Performance test went wrong and the dd command created 13TB of data on /dev/mapper/device. Why system didn't crash? HDD-250GB

So I wanted to do some performance test with encrypted and normal data storage on my embedded device. That is not what I was expected to see at all! Can you please explain it to me what just happend. ...
What_is_my_name's user avatar
0 votes
1 answer
186 views

used dd to copy a partition from one hard drive to another and it broke the partition

So I have two hard drives. Hard drive A (HDDA) had a version of windows 7 that suffered a Windows Explorer error that caused it to go through a constant reboot cycle and caused us to lose access to ...
LabHelp's user avatar
  • 11
0 votes
0 answers
49 views

Can't mount a USB Flash after using `dd`

i'm newbie in Linux. And i was practicing using dd with my USB flash. Here's what it looked like at the very beginning: sdb 8:16 1 7.5G 0 disk └─sdb1 8:17 ...
Konst's user avatar
  • 1
0 votes
1 answer
64 views

OS rescan disk after DD write command

When I executed "dd if=/dev/zero of=/dev/sda bs=1M count=1" (sda is a SATA device), when the command was done. And the OS will rescan the disk, looks like try to scan the partition ...
Billy Chiu's user avatar
0 votes
1 answer
81 views

Can dd with no options other than an output file and /dev/urandom input file cause other files on the partition to be overwritten?

I have a USB-mounted hard drive with 7 GB of free space that I tried to fill with pseudo-random data using these commands: $ cd /media/username/volume_name $ sudo dd if=/dev/urandom of=...
CodeBricks's user avatar
0 votes
1 answer
519 views

Recover data from RAID 1 member

I am trying to recover data from a drive that was part of a RAID1. First a little background. The RAID1 consisted of 2 disks (/dev/sde and /dev/sdf). It was built ~6 years ago using mdadm. In recent ...
Peter's user avatar
  • 101
2 votes
1 answer
927 views

copying 500 Gig from one portable to another using dd

Hi All: I'm using Ubuntu 22.04. I know there have been a lot of posts regarding dd but I'm still confused. I have a 1 Terabyte portable drive ( WD Passport ) with directories and files that add up to ...
mark leeds's user avatar
0 votes
0 answers
70 views

PuTTY Syntax for copying linux disk to Windows drive directory

I am trying to get PuTTy to copy a linode disk to an .img file on a windows pc. I am logging into the linode server as administrator and it shows up as 'root' in the PuTTy window. I ran this command: (...
Bernard Bailey's user avatar
2 votes
0 answers
225 views

Why do NVME-read-command and dd have different results?

Why do NVME-read-command and dd have different results? sudo dd if=/dev/nvme0n1p1 of=lba.0.dd bs=4096 count=1 results: abcdefaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.... sudo nvme ...
Hossein's user avatar
  • 51
0 votes
1 answer
117 views

Linux dd wiping security

I have some questions regarding the "dd" utility, if someone can help. Please answer only if you are sure about the answer ! I have a scenario here in which I have a HDD with Bad Sectors ...
Adam's user avatar
  • 51
0 votes
1 answer
349 views

Startup Disk Creator vs dd

Does Startup Disk Creator create a bootable USB stick the same way dd does if the following command is used? dd if=whatever.iso of=/dev/sdx bs=4M status=progress Is the produced USB stick the same in ...
Stormlord's user avatar
  • 5,824
0 votes
0 answers
24 views

Fastest and effective way to make data unrecoverable on a 1TB external USB drive [duplicate]

I have a 1TB USB external drive that I need to return for warranty and need a fast way to hide my data in case anyone tried to recover data from it! I know about dd, shred etc... but I'm afraid (I'm ...
Frank's user avatar
  • 1,473
0 votes
1 answer
498 views

How does dd work with the oflag and conv parameters?

In the following link How do I increase the size of swapfile without removing it in the terminal? for swap file resize purposes the dd command is used as follows: sudo dd if=/dev/zero of=/swapfile ...
Manuel Jordan's user avatar
0 votes
0 answers
46 views

Recover Deleted Windows os [duplicate]

so I'm studying cybersecurity and I'm currently working with bitlocker security, and on one of my tests, I tried to copy a whole windows nvme disk using a live Ubuntu stick and DD (note that the drive ...
dacomet's user avatar
0 votes
2 answers
604 views

Create a browsable rootfs image

How to create a browsable rootfs image in Ubuntu? E.g. that I can extract files that I need in a matter of minutes? Have already considered dd and tar-gzing root fs, but both don’t answer the criteria ...
Denis Kulagin's user avatar
1 vote
0 answers
55 views

Lost all files by using dd [duplicate]

I did get a new ssd and tried doing duplicate of the old ssd into the one, usind the dd command, but after finishing progressing the 250 Gb, everything from old and new ssd just disappeared. This is ...
Mokhled Redjimi's user avatar
0 votes
0 answers
12 views

Installing and using dcfldd on 20.04.4 LTS [duplicate]

I was unable to install dcfldd onto my live-ubuntu-usb which I want to do in order to wipe my HD that I am planning to sell. I tried both with simple sudo apt install dcfldd As well as by trying to ...
216ann's user avatar
  • 43
2 votes
0 answers
320 views

Write cache / delay as long as possible

I am trying to setup Linux to delay the writes as much as possible (minutes). To those wondering why: this is Chia plotting. It is very write intensive done in SSD/NVMe, if the system crashes you have ...
rufo's user avatar
  • 121
2 votes
1 answer
613 views

create clone with dd to another drive

So I want to backup what I have done to Raspian using my Ubuntu laptop and followed the advice at the below link. so using this command... sudo dd if=/dev/mmcblk0 of=~/sd-card-copy.img bs=1M status=...
styleruk's user avatar
0 votes
1 answer
3k views

Cloned disk refuses to boot

I have a Ubuntu box which is currently running on an old 500GB HDD. As I got hold of a 240GB SSD and the HDD was only used partially (10% used) I decided to clone the HDD to the SSD. Since the HDD is ...
Fabricio's user avatar
  • 101
0 votes
0 answers
332 views

How to use dd to clone single drive to raid1?

Running dd if=/dev/sda of=/dev/md126 is taking some time so it seems like it's working but I am not sure what else may need to be done after to make the system bootable. When trying to mount /dev/...
Enigma's user avatar
  • 486
0 votes
1 answer
220 views

ext4 FS image gets corrupted on first mount

I"m in the process of replacing my M.2 SSD with a new and larger one. I want to save an image of my existing partitions before I take out my old SSD so that I can refer to it when setting up my ...
rothloup's user avatar
  • 193
0 votes
0 answers
461 views

dd Input/Output error trying to image an Ubuntu Mate USB flash image

We are trying to make backup images of our Raspberry Pi test stations using the standard dd command but can not get past an IO error. dd has an IO error and ddrescue has a unaligned error but gparted ...
lynnejohn's user avatar
1 vote
1 answer
890 views

Can I umount root '/' to make an iso file of root partition?

I have Ubuntu installed on /dev/sda1 and an external USB disk mounted in /mnt/backup. I want to make an iso file of my /dev/sda hard-disk, and for this I planned to use dd if=/dev/sda of=/mnt/backup/...
Jack's user avatar
  • 223
0 votes
1 answer
659 views

Backup of Windows 10 (nvme) with DD

I am a complete newbie when it comes to using DD so please bear with me. I have a brand new laptop HP 250 G8, it has a NVME SSD disk in it. It comes with a preinstalled Windows 10. I wanted to backup ...
ArekBulski's user avatar
  • 1,171
0 votes
1 answer
247 views

moving KVM image from one server to another and then resize

host1 has a 40G guest image inside an LV. host2 has a 50G guest LV partition available. dd to transfer host1/guest(40G) --> host2/guest(50G). gdisk to correct the location of the GPT table - root@...
David's user avatar
  • 111
3 votes
1 answer
694 views

Use img file as block device

I created an img file using dd (sudo dd if=/dev/zero of=/home/danialbehzadi/dong.img bs=1000K count=32) and now I want it to be used as a block device, so I can restore a filesystem saved by ...
Danial Behzadi's user avatar
-1 votes
1 answer
204 views

How to install GRUB Legacy (0.97) on an USB pen-drive from Ubuntu 20.04/21.10?

How to install GRUB Legacy (0.97) on an USB pen-drive from Ubuntu 20.04/21.10? Ubuntu does no longer provide GRUB Legacy in their repository. grub-install command will install GRUB 2.xx. Probably I ...
Piotr Henryk Dabrowski's user avatar
1 vote
1 answer
120 views

Read DVD image with dd until empty

I want to compare the SHA hash of the .iso file that I burned to a DVD with the image of the DVD itself to see if they are identical if the burning was succesful. The problem is that they are not, not ...
Orchid67732's user avatar
3 votes
2 answers
880 views

Retrieve data from disk after dd

On Linux laptop, I mistakenly entered the wrong main HDD name in a dd command sudo dd if=/path/to/clonezilla-iso-file of=/dev/sda status=progress (clonezilla ISO file was 306 MB). [This is a more ...
Yannis's user avatar
  • 153
2 votes
0 answers
336 views

No bootable device after using dd on the wrong disk: how can I save the data

When creating a Clonezilla live USB, I mistakenly entered the wrong device name in the dd command: sudo dd if=/path/to/clonezilla-iso-file of=/dev/sda status=progress where sda was the laptop's HDD (...
Yannis's user avatar
  • 153
0 votes
0 answers
483 views

I copied my hdd to ssd with ddrescue it worked earlier but didn't work this time why?

I generally use this command sudo ddrescue /dev/sda /dev/sdb --force to clone my hdd ubuntu to ssd and the ssd would boot and work like a charm but .. this time the new ssd drive is not booting. does ...
NavinRaj Pandey's user avatar
0 votes
0 answers
41 views

Dumping all data from old HD to new HD

Please advise the easy way dumping all data from an old 4TB HD, ext 4, to a brand new 4TB HD, NTFS format, no OS on the old HD. The new 4TB HD will be used for data storage ONLY in another dual boot ...
user108763's user avatar
0 votes
1 answer
130 views

how to clone sd card without mbr with ubuntu?

I clone an sd card (32Go) and I copy it to a sd card of different size (64Go). I use those commands: sudo dd if=/dev/sdc of=Debian.img status=progress sudo dd if=Debian.img of=/dev/sdc status=progress ...
John's user avatar
  • 171
2 votes
1 answer
4k views

Using dd with conv=sparse for creating partition or full disk images?

For some reason there don't seem to be too many questions or answers about using dd for creating "smaller" image files with the conv=sparse option here. So when using dd for image creation, ...
user79's user avatar
  • 33
1 vote
0 answers
36 views

How to recover an overriten partition?

So I thought I try something fancy today and learn how to use the terminal to install a raspberry pi image on a flash drive. The result was not as I imagined. Apparently I've overwritten my partition ...
Flajt's user avatar
  • 21
1 vote
0 answers
538 views

Shrink down an image file which is made by with the Ubuntu's "Disks" application

So I've made a backup image file from my Ubuntu system with the Disks application. My SSD storage is 180GB which is quite big due to the fact that my system is only 20% of it. So there are a numerous ...
r4nd3l8888's user avatar
1 vote
0 answers
146 views

Why Can't dd Create a Bootable ISO from an Ubuntu VM?

I have an Ubuntu 21.04 guest in VirtualBox, on either Linux or Windows hosts. I can run dd (from that guest or from some other boot in the VM) to create an image of the guest, or to clone it to an ...
Ray Woodcock's user avatar
1 vote
1 answer
2k views

.img file restore to disk partition

I had created a backup.img file from a hard disk having two partitions. Now I want to write these partitions to another hard disk. But the problem is I don't know how? If I use dd than it write the ...
Ajay's user avatar
  • 653
0 votes
0 answers
93 views

I think I wrote on my boot partition with dd - can I restore it?

Today I tried to make an copy of a Micro SD card to another on Ubuntu 20.04. I used dd to first write an image of the first SD card to my hard drive, then switched SD cards and wrote the image from my ...
smcs's user avatar
  • 982
0 votes
0 answers
88 views

Can't make a live USB using Linux subsystem

I'm trying to install Linux-lite Tried Rufus but uefi option didn't show up in boot sequence. So I thought I would use the dd command using Linux bash on Windows. Obviously lsblk doesn't work So I got ...
Roo Tenshi's user avatar

1
2 3 4 5
10