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
26 views

Ubuntu 22.04 wont boot after disk clone

I am attempting to migrate my OS boot disk from a 512GB to a 1TB drive. I booted off a live USB and used dd to clone the orignal drive to the new drive. Then I shut it down and unplugged the old ...
Tyler Smith's user avatar
-1 votes
0 answers
67 views

Boot problems with ubuntu VM

I have a physical server running Ubuntu. It has 2 disks in a software raid. I made image of one disk using dd where I had booted from a GParted live bootable USB. Now I am trying to boot from this ...
user1769446's user avatar
-1 votes
1 answer
42 views

Cloning a dual boot SSD to larger SSD

I have just completed cloning my original 256Gb drive to a new 1TB SSD using dd. The original drive initially came with W11 on it and I added dual boot with Ubuntu 22.04 but the Ubuntu stopped working....
user890375's user avatar
0 votes
1 answer
97 views

What do partclone.dd and partclone.imager do differently?

I'm writing some backup software that needs functionality like partclone(8), and having some trouble with the man pages. In particular, I don't see any difference between the pages for partclone.dd ...
ForDummies's user avatar
0 votes
0 answers
157 views

Is it possible to install two ISO on single USB using only DD?

I have a 16 GB Pendrive and I would like to put Windows 11 ISO and Ubuntu 22.04 ISO and make it bootable. I would like to pick the ISO to launch every time the USB is inserted. I saw that there are ...
koxige9113's user avatar
0 votes
0 answers
69 views

Ran dd twice, the second time it is apparently copying the entire drive -- including the blank space

Note: I am using ubuntu server. I have an nvme main drive, and I have two of the same 2tB hard drives. I connected one of my hard drives and ran dd if=/dev/nvme0n1 of=/dev/sda2 status=progress It ...
icor103's user avatar
  • 101
0 votes
0 answers
131 views

Restore or mount whole drive image backup from dd

I had some weird behavior every night on my ubuntu server, where one of my NVME disks would stop working, and I'd get IO errors until I reboot, in which case everything would work fine. The drive in ...
Gaidin's user avatar
  • 151
6 votes
1 answer
175 views

I accidentally formatted my drive. Can I use a backup .img file to recover it?

I have accidentally formatted my drive. Attempts at data recovery have been unsuccessful, but I had created an .img file of the drive with dd if=/dev/sd<x> of=filename.img before that. So I ...
fugee ohu's user avatar
0 votes
0 answers
39 views

Best way to clone SSD to larger SSD with Ubuntu [duplicate]

I have Ubuntu as OS on 256GB SSD and have bought a larger 1TB SSD. Is Clonezilla a good option to clone SSD? Will Clonezilla use same size on new SSD and leave remaining GB’s as unallocated space? Is ...
MartinT00161717's user avatar
0 votes
1 answer
165 views

Is dd for /boot and LVM snapshot for root logical volume the proper strategy for full backup of UEFI PC Ubuntu Server?

I'm planning to create full backup of my Ubuntu Server installation in UEFI mode on 512GB disk. There is one mandatory UEFI Parition (1GB), /boot is standard EXT4 separate boot partition (2GB) and the ...
keldorn's user avatar
  • 83
-1 votes
1 answer
84 views

Create image from unallocated hdd

I want to create file.img from unallocated hdd to another hdd ( backup the hdd ) to rescue my partitions and files in it . When I dd if=/dev/sda of=dev/sdb/file.img It shows dd: failed to open '/dev/...
Mahmoud Sobeih's user avatar
0 votes
1 answer
252 views

Why Does a Win10 Drive Cloned with DD or GParted Have GRUB?

I have a desktop computer with Windows 10 installed on its sole internal (NVMe) drive. I boot this machine with Ubuntu 22.04, installed on a USB drive. In Ubuntu, I use GParted to copy partitions from ...
Ray Woodcock's user avatar
2 votes
2 answers
654 views

dd is vastly slower than gparted to copy partitions. How is that possible?

I tried to copy partitions from a 500GB internal M.2 SSD to an external USB3.x enclosure around an M.2 2TB drive. My first attempt used an A to C cable, and the command: dd if=/dev/nvme01p3 of=/dev/...
Dov's user avatar
  • 811
1 vote
0 answers
55 views

DD question copying 2 select partions to target

Using ubuntu for few weeks now and its excellent. Really like the dd copy tool but i would like some advice on using it. I copied all my installers to a partitioned ssd i now need to reverse but each ...
wertyu2007's user avatar
0 votes
0 answers
108 views

How to copy image data from file to HDD in Linux, with skipping some cylinders in HDD

I need to copy edited image to HDD correctly for my HDD portable media player. Results of fdisk -l: I need to skip 25 cylinders from the end of the data partition, and write to HDD edited RAW file. I ...
Yan4ik's user avatar
  • 1
0 votes
0 answers
73 views

Trying to restore Drive that I accidentally used DD on

I was attempting to use the DD command to create a bootable Ubuntu server USB. By accident, I ran the command to my boot drive. It ran for a few minutes, then I noticed and pressed control+z to halt ...
dpc's user avatar
  • 1
0 votes
1 answer
38 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 ...
user17227456's user avatar
2 votes
1 answer
1k 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
1k 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
209 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
1 answer
112 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
  • 179
0 votes
0 answers
87 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
492 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
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
509 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
128 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
108 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
319 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
2k 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
2k 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
98 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
301 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
181 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
1 vote
1 answer
588 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
  • 6,299
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,523
0 votes
1 answer
920 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
47 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
817 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
56 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
17 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
517 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
865 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
2 answers
6k 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
566 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
  • 496
0 votes
1 answer
365 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
  • 213
0 votes
0 answers
694 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
2k 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
  • 251
0 votes
1 answer
1k 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,181
0 votes
1 answer
310 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
  • 119
5 votes
1 answer
2k 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
2 3 4 5
10