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
0answers
29 views

Disk Image (made from DD) is Corrupted

Recently I made a complete backup of my computer (the entire /dev/sdb drive), which had Windows 7 on it (along with Lenovo Recovery & some other partitions), using a Ubuntu Live USB (21.04), on a ...
-1
votes
1answer
40 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 ...
0
votes
2answers
59 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, ...
1
vote
1answer
72 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? ...
0
votes
0answers
27 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 ...
1
vote
1answer
30 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 ...
0
votes
2answers
29 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 ...
2
votes
1answer
91 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_**...
0
votes
0answers
33 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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
49 views

dd command writes “no space left on device”, new HDD cloning

I've bought a new 8TB harddisk WD Gold. I have booted Ubuntu via flash disk stick and I tried to write in the opened terminal prompt dd if=/dev/sda of=/dev/sdc bs=1M and I'm sure everything was ...
0
votes
1answer
26 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 ...
0
votes
0answers
25 views

What is the single command to run dd if=/dev/zero of=/dev/null three times as a background job [duplicate]

I run in my ubuntu the command dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null yes it did create 3 dd process but when i run jobs it only create 1 process. ...
0
votes
1answer
89 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, ...
0
votes
0answers
22 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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
24 views

Duplicating disks with dd reports I/O errors. How can I find if / what files are affected by IO errors on those blocks

Task being performed: duplicating a laptop disk (HD) to an SSD (mounted on USB external disk enclosure) with dd. After completion SSD installed in laptop and use as internal disk. Problem: while dd ...
1
vote
1answer
27 views

Using dd to clone a server with multiple partitions

Is it possible to use dd to clone multiple partitions to one .iso file? I have a system I want to clone to another box, with multiple partitions. Can dd be used to perform this task? From what I can ...
0
votes
0answers
26 views

understanding df -h output for use with dd

What do the different sda devices represent in this df -h output? Aren't /var /usr /opt all apart of / (the root directory)? Does this mean those directories are partitioned differently? -bash-3.2$ df ...
0
votes
2answers
67 views

I have to reboot after dd to a microsd, otherwise can't read/write to it

Often I dd my raspbian image using: sudo dd if=2021-01-11-raspios-buster-armhf-full.img of=/dev/sda bs=4M conv=fsync I made a little script that changes some files, like /etc/shadow. However, it ...
2
votes
1answer
106 views

Cloning Ubuntu from a usb key to a partition of internal SSD

I have Ubuntu installed on a usb drive for a while now. I could not installed it along side Windows because my SSD was in RAID mode and not AHCI, so Ubuntu was not able to detect it. But recently I ...
0
votes
1answer
51 views

“dd” command copy “.img” file to SD card and remain a free space

I have the 16GB SD card and the 1.5GB .img file. This .img file consist of 2 partition: boot: 2MB sys: ~1.5GB I copy .img to SD card with this command: dd if=*.img of=/dev/sdb bs=4M After above ...
0
votes
0answers
36 views

ubi-partman failed with exit code 10 -installing Lubuntu 18.04 using dd image

Trying to install Lubuntu 18.04 onto a laptop using a dd image (meaning I don't have to create a partition). When the installation was about 3/4 of the way done, I got the following message: ubi-...
0
votes
1answer
38 views

How can I recover a deleted disk image file that was made using dd?

I accidentally deleted a disk image that I created using dd. The drive that the disk image file was on has an XFS file system. I was looking to use photorec but it does not appear to have the ability ...
0
votes
0answers
53 views

how to get in a variable the result of status=progress from dd command

I launch this in a shell sudo dd if=$source of=$usb bs=4M conv=fdatasync status=progress 2>&1 | stdbuf -o1 tr '\r' '\n' | stdbuf -o1 cut -d' ' -f1 | sed 's/[a-z]*//g' and the result is ...
1
vote
1answer
93 views

Compare two linux systems

I was looking for an answer for few hours, but I am still not sure how to compare two Linux Systems with each other. I have an access to them via ssh. What I was trying: Previously I thought that the ...
0
votes
1answer
50 views

Monitoring command dd [duplicate]

When I copy a hard drive I often use the dd command I have one question about monitoring. To see the progress of the copy I do like this sudo dd if=$source of=$pathToUsb bs=4M conv=fdatasync status=...
0
votes
1answer
32 views

Moving large QEMU image files from damaged HDD to new drive impossible

Hmmm... I have a very strange thing at hand: Due to a system's HDD wearout failure (defective blocks) we obviously had to replace the HDD. Everything worked well until we started to move two files of ...
1
vote
2answers
115 views

root cron job doesn't work (18.04 LTS SERVER)

As a root I run three dd processes in the background dd if=/dev/urandom of=/dev/null & dd if=/dev/urandom of=/dev/null & dd if=/dev/urandom of=/dev/null & As a root I edit a crontab and ...
1
vote
1answer
61 views

Mount *.img ( dd-rescued image file)

I have recovered 1TB external hard disk using DD-Rescue-GUI. The image is stored in a 2TB external hard disk. I tried to mount it but could not succeed. I also tried the solution in the Mounting Disk ...
1
vote
0answers
58 views

Flashing an SD card with the dd command - Problem

I have a weird problem regarding the dd command. I have a wic image which has 4 partitions and which I flash onto an sd card with the following command: sudo dd if=<image.wic> of=/dev/sda bs=1M ...
0
votes
0answers
93 views

Restored SD card fails to boot with prompting “initramfs”

What I did: format a blank SD card sudo mkfs.ext4 /dev/sdf create img file from the other SD card. The card has Ubuntu server 20.04 system. sudo dd if=/dev/sde of=~/backup.img bs=4096000 ...
0
votes
1answer
119 views

Ubuntu on USB - dd or not to dd?

1.) What is the official/recommended way to make ubuntu usbs from image files?, for old releases and newer releases respectively? My dded dongles don't even initialize when booting!, and I'm fairly ...
1
vote
1answer
51 views

Freeing space from deleted files

I had some files deleted that I tried to recover with TestDisk. Because I was in panic, I selected to create an image (.dd file) in the /home directory. The HDD was quickly full, so I terminated the ...
0
votes
1answer
44 views

I've DD'd a drive, lost the files and want to get them back - how would you do it?

I had a 2TB USB drive (LVM2/xfs), and accidentally dd'd an CentOS image (5GB) onto it. I have been trying to recover the data that was on that USB dDrive by creating a (testdisk) ddrecover image that ...
1
vote
1answer
159 views

Unexpected behavior with dd cloning a LUKS encrypted disk

I did something stupid, corrupted my main linux install, and am juggling disks to back everything up. In the process I've run into a dd and/or LUKS issue I don't know how to deal with. dd does not ...
0
votes
0answers
30 views

No return when trying to access the root directory

I have a fat16 I am currently trying to look at the root directory, but I'm getting little to no return with the following command: sudo dd if=Project1.dd bs=512 | hexdump -C -s $(( 2132*512 )) -n $(( ...
0
votes
2answers
434 views

How to open .DD file to analyze it?

I am new to this process and I'm struggling a bit. I was given a .dd file to analyze as an assignment in my current college course. I am using Sans Sift in a virtual box environment, but I have no ...
0
votes
0answers
67 views

ACCIDENTALLY ISSUED DD COMMAND AGAINST EXTERNAL HDD

I recently issued dd if=/home of=/dev/sdb and turned out to ruin the exfat filesystem on my external harddrive. I immediately issued ctrl-c to stop writing. Read few threads indicating the use of ...
0
votes
1answer
334 views

dd: warning: partial read (2147479552 bytes); suggest iflag=fullblock

I am trying to increase the swap memory size to 32GB. I am having 16GB of RAM and 256GB of SSD. I want to increase the swap memory size and using this tutorial to increase the swap memory. I am trying ...
0
votes
0answers
121 views

Create a loop device from partition image

I have a partition.img. It was created with dd if=/dev/sdb1 of=partition.img conv=noerror,sync. Now I want to have a loop device that: 1) has a GPT partition Table 2) its only partition is partition....
0
votes
0answers
189 views

“Can't open /dev/fd0 : no such file or directory” Error while trying to use mdir from mtools package

I'm trying to create a floppy image for my hobby OS and the procedure is as follow: I create the floppy image using dd command dd if=/dev/zeros/ of=myimgimg bs=2M count=5 I use mkdosfs command to ...
0
votes
0answers
32 views

Restore disk image to a live system?

ref - https://askubuntu.com/a/950466 This is possible? Currently, Im booting into Recovery DVD and extract image using dd dd of=/dev/vda , then switch back to main boot option and it works fine BUT ...
0
votes
1answer
43 views

Installation kit modified during install. Is this a security issue?

I use to create my usb stick install kit with: # dd if=downloads/ubuntu-20.04.1-desktop-amd64.iso of=/dev/sdd and it worked for me. I also use to verify the install kit before and after install with: ...
0
votes
0answers
48 views

Secure and sure way to clone an identical LUKS External HDD

I am using Lubuntu 18.04. LUKS such a wonderful SW until you get trapped into a mental pain of never-ending loops. And the worst thing is that I do not know where I made a mistake and why that ...
0
votes
0answers
55 views

Clone live Ubuntu VPS remotely

I have an Ubuntu 18.04 VPS hosted with a bunch of clowns and desperately need to migrate away. They are not playing ball at all and take a week to reply to emails. I tried the "dd" method ...
1
vote
0answers
253 views

How to read a RAID 0 array created in Windows (NTFS)

A customer came in with a corrupt hard drive. We took the hard drive, and cloned the data, via testdisk, onto a raid 0 array. The reason being is that the HDD was 2TB and the largest SSD we had atm ...
0
votes
0answers
39 views

Making iso compatible with Mac and Windows from DVD

I have got a DVD that include app created with Adobe Director 11.5. I want to make iso this DVD like native DVD that when mount in mac just see mac files and when mount in windows just see windows ...
0
votes
1answer
684 views

bluetooth 4.2 is not working in ubuntu 20.04

I am new in linux family. Recently i moved windows 10 to ubuntu 20.04 in my new laptop (hp-15s du1030tx) . That time my wifi and bt are not working . I fix my wifi driver problem . And i try to fix my ...
0
votes
1answer
295 views

How to Recover Data from Harddisk after formating using dd command [duplicate]

How do I recover data from an external hard disk? I used the dd command by mistake on the disk. Specifically, I used: dd if=xyz.iso of=/dev/sdb Please help me retrieve the lost data.

1
2 3 4 5
9