Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 vote
0 answers
10 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 ...
user avatar
  • 31
0 votes
0 answers
23 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 ...
user avatar
  • 51
0 votes
1 answer
35 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 ...
user avatar
  • 5,474
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 ...
user avatar
  • 1,413
0 votes
1 answer
29 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 ...
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 ...
user avatar
0 votes
2 answers
73 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 ...
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 ...
user avatar
0 votes
0 answers
11 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 ...
user avatar
  • 45
0 votes
0 answers
32 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 ...
user avatar
  • 101
2 votes
1 answer
155 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=...
user avatar
0 votes
1 answer
67 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 ...
user avatar
  • 101
0 votes
0 answers
39 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/...
user avatar
  • 486
0 votes
1 answer
38 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 ...
user avatar
  • 161
0 votes
0 answers
126 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 ...
user avatar
1 vote
1 answer
62 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/...
user avatar
  • 193
0 votes
1 answer
134 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 ...
user avatar
  • 1,162
0 votes
1 answer
69 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@...
user avatar
  • 91
2 votes
1 answer
71 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 ...
user avatar
-1 votes
1 answer
73 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 ...
user avatar
1 vote
1 answer
47 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 ...
user avatar
0 votes
0 answers
37 views

dd over usb3 is extremely slow

I'm using dd to wipe an old hard drive. It starts out doing about 70MB/s, but at around 6GB it slows to 1.3MB/s. I've read about the cache filling up, but i think usb3 can write faster then 1MB/s. &...
user avatar
3 votes
2 answers
338 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 ...
user avatar
  • 153
2 votes
0 answers
120 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 (...
user avatar
  • 153
0 votes
0 answers
165 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 ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
  • 171
1 vote
0 answers
714 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, ...
user avatar
  • 23
1 vote
0 answers
30 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 ...
user avatar
  • 21
1 vote
0 answers
81 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 ...
user avatar
0 votes
0 answers
49 views

Backing up a simple Ubuntu server

I have a small server set up, and I'm quite new at this, so it took me around two days to get it all up and running the way I want. Now hopefully, I won't have any reason to make any changes to this ...
user avatar
1 vote
0 answers
88 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 ...
user avatar
1 vote
1 answer
423 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 ...
user avatar
  • 638
0 votes
0 answers
45 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 ...
user avatar
  • 962
0 votes
0 answers
61 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 ...
user avatar
1 vote
4 answers
573 views

Can a Windows 10 ISO bootable USB be created without third party apps?

I want to create a Windows 10 bootable USB drive (or microSD in USB) through Ubuntu without thirdy party apps. I tried dd, but it won't work, no boot. I also tried formatting the device as FAT32 and ...
user avatar
2 votes
1 answer
201 views

'Failed to read last sector' when trying to mount DD file

I have a .dd file and want to check what's inside. Many tutorials suggest Disk Image Mounter, but this option doesn't exist. So I tried the classic way: mkdir /mnt/image and sudo mount -o loop /...
user avatar
-1 votes
1 answer
285 views

GParted does not resize the partition on a .img file?

I am backing up data from an old hard drive one partition at a time to .img files using dd. sudo dd if=/dev/sdc5 of=/home/flex/data/partition.img bs=1M status=progress This gives me a 10GB .img file ...
user avatar
0 votes
2 answers
413 views

how to view the content of /dev/sda file?

I formatted a 160GB drive using: dd if=/dev/zeros of=/dev/sda bs=512 I expect the entire drive is filled with zeros, but how do I check it? I thought I could just cat /dev/sda and see all zeros, ...
user avatar
  • 147
0 votes
1 answer
2k views

What is a dd command to write the Ubuntu ISO to an external hard drive over USB? [duplicate]

In the context of: sudo dd if=/storeM/os-dvd.iso of=/dev/sdb bs=8M sudo dd if=/storeM/bootdisk.img of=/dev/sdc from: Linux: Copy DVD ISO to empty hard disk / partition and boot as if it is a DVD? ...
user avatar
0 votes
0 answers
142 views

Question on cloning(using dd command) entire system to SSD

After reading on threads, I'm still confused and need your help. My laptop is Lenovo G580 20157 - 2 Hard Drives (sda and sdb) sda(500GB) - SSD sdb(250GB) - Ubuntu 20.04.2 LTS see the picture attached ...
user avatar
1 vote
1 answer
501 views

how should I understand 'seek' and 'count' of dd command?

Please see the dd command and the output below. dd if=/dev/null of=./VirtualDisk.img bs=1M count=1024 0+0 records in 0+0 records out 0 bytes copied, 0.000281296 s, 0.0 kB/s I expected 1024 ...
user avatar
  • 1,257
1 vote
2 answers
523 views

Can I use dd to back up a mounted partition?

I usually use a live usb to back up a partition using dd (typically sda2). Can I do this while actually in my system ? I am new to linux but wont the partition be mounted (the partition I am backing ...
user avatar
2 votes
1 answer
209 views

Automating use of dd in a bash script with a day of month variable

I want to automate a backup using dd in a bash script. I currently use this command to create a backup image of my sda2 partition: sudo dd bs=64K if=/dev/sda2 | gzip > /mnt/backup/backup_sda2_**...
user avatar
0 votes
0 answers
35 views

I trying to partition my disk and i always get less space then i partitioned

So i have [root@archlinux ~]# fdisk -l Disk /dev/sde: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Device Start End Sectors Size Type /dev/sde1 2048 534527 532480 ...
user avatar
0 votes
1 answer
47 views

Cloning the `D:` disk: how do I recognize the right `if=/dev/`?

Last time when I cloned my data HDD the task was easy. I had 4TB source and 8TB target. Now it is worse: I have two 8TB disks. My question is obvious: how do I recognize from lsblk the right paths to ...
user avatar
0 votes
1 answer
33 views

Strange thing while burning an ISO file with Ubuntu Studio to usb using dd

I burned an ISO file with Ubuntu Studio and I did it using status=progress. When I started the process of burning I saw that there was already 1 GB (when you use status=progress it shows how much GB ...
user avatar
  • 13
0 votes
1 answer
379 views

Swap file hard disk it appears to have holes

guys i need to enable swap on my ubuntu system and i want to avoid swap on SSD or format my hard disk that doesn't contain the swap partition. So i was trying to create a file swap and use it but, ...
user avatar
0 votes
0 answers
37 views

Copying data to slightly smaller disk

I have a disk (32G) at /dev/sda, I want to clone that into a slightly smaller disk (30G) at /dev/sdb. Both of them have just the one partition (/dev/sda1 and /dev/sdb1 respectively) currently not ...
user avatar
0 votes
0 answers
31 views

can dd be used with an external hdd to clone the image on a new system?

I think I asked that right, but here goes. I have 2 systems A and B. A has failed. I want to clone B and install it on A. Can I use dd to make a clone of B, put that clone on an external HDD to ...
user avatar
  • 23

1
2 3 4 5
10