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

Issue with “dd” since upgrading to 20.04 i7 Desktop

I upgraded from 18.04 LTS to 20.04 LTS on my Desktop i7 machine. I use dd to burn .img files on MicroSD cards for my Raspberry Pi. After upgrading from 18.04 o 20.04 dd will not write to my MicroSD ...
0
votes
0answers
87 views

I am having issues with “dd” 20.04 LTS on Desktop

I upgraded from 18.04 LTS to 20.04 LTS on my Desktop i7 machine. I use dd to burn .img files on MicroSD cards for my Raspberry Pi. After upgrading from 18.04 o 20.04, dd will not write to my MicroSD ...
0
votes
0answers
49 views

dd command to clone an SSD to an NVMe

In my windows 10 system, I boot from a 500 GB SSD that has two partitions, both NTFS. I want to clone that to make bootable an internal M.2 NVMe I have installed. At first, I could get it to copy, but ...
0
votes
0answers
13 views

Copying external disk at OS level

I have a Ubuntu virtual machine. attached external EBS volume to vm,mounted and kept in mount point.Now how to copy original data from root to external disk.I used this command "sudo dd if=/dev/sdb ...
-1
votes
1answer
27 views

Restore disk image to a bigger disk

I've created an image from my ssd (as I switched around Linux and Windows usage on the disks). Right now I want to restore the whole SSD(128Gb) image to my HDD(1TB), but I'm concerned about using dd ...
0
votes
0answers
14 views

Output of Reading Hex from HD has “@^” repeating

I'm trying to wipe a computer that may have had some nasty malware on it. Not sure if it impacted the BIOS as well but I saw Chinese characters in the BIOS at one point and other stuff. When turning ...
0
votes
0answers
21 views

How to duplicate a USB stick efficiently

I have a USB stick who's contents (including partition table) I want to duplicate onto another, larger USB stick. Right now, I have to dd the entirety of a 16 GB stick onto a 128 GB stick and then ...
0
votes
0answers
66 views

I overwrote my external hard drive. Can I recover files?

I was trying to make a bootable USB drive. I entered the following: root@BlackBox:/home/bgp# pv XP32bit.iso > /dev/sdb I let it run, and then became aware that I had the wrong target. I meant to ...
1
vote
1answer
72 views

Problem with live iso run as installed

There was an SSD drive with Xubuntu distro installed. If booted, I can see it has one ext4 partition. It worked fine but was planned to be moved to other HDD and to another machine. I run live iso ...
2
votes
3answers
172 views

How to copy 12GB file from Ubuntu 19.10 to Android if My RAM size is 8GB

I tried different options to copy a 12GB movie from Ubuntu to Android (connected as a Camera for reliable connection, with mtp situation even worse), but surprisingly for me there is a RAM+SWAP ...
1
vote
1answer
80 views

vim - running dd range command using command line

For deleting a range of lines, I know we can use :3,15d and it works. But if we try to run the same command using normal command (:3,15 normal dd), it behaves erratic and deletes some random blocks/...
0
votes
0answers
273 views

How do I mount a bitlocker'ed windows .img file created using dd?

BACKGROUND INFO: I have a dd backup of a Windows drive (BitLocker'ed): dd if=/dev/sdb of=/external-drive/windows.img I now want to mount this .img file so I can test to make sure it works before I ...
35
votes
2answers
7k views

Does “dd” command without parameter or input/output redirection do anything?

I typed in dd in bash and ran it without double checking. Will this do anything to my system? I just executed dd by itself. Was trying to backup a Raspberry Pi device, which I managed to do using dd. ...
0
votes
0answers
49 views

usb is behaving strangely with several sticks and external disk

I have very strange behaviour on Ubuntu 16.04 LTS since about 5 months. It all started with my external 250 GB hard drive, where suddenly I no longer have the ability to create new directories.. I can ...
0
votes
0answers
111 views

Can not “zero” my drive with dd

I was "zeroing" my drive with the dd tool when I get this input/output error: Is my drive good for trash or is there a way to fix it please? Thanks a lot for your answer :) sudo dd if=/dev/zero of=/...
1
vote
2answers
113 views

SFill vs DD on linux (Comparing write speeds)

If I want to write zero's to empty space on a mountpoint using one pass is there any reason to use Sfill over dd? With sfill -l -l -z -v /mnt I'm getting about 13mb/s write. With dd if=/dev/zero | ...
0
votes
0answers
18 views

What are the different ways to copy and back up devices? [duplicate]

The dd command is one method to copy files from one device to other device. Other method is using Clonezilla. What are other ways to do it. What are the differences? In what conditions it's preferable ...
3
votes
3answers
1k views

Need help regarding dd command on Ubuntu app for windows 10

I installed Ubuntu app on Window 10 OS and trying to run dd command. But the dd command is not listing all drives present in system. I am not sure whether is it Ubuntu app limitation or something is ...
2
votes
1answer
1k views

What is oflag in dd? [duplicate]

What is oflag for in the dd command? What are the options oflag=? Currently I am doing dd if=/dev/zero of=/dev/sdb bs=4096 To wipe out a disk.
0
votes
0answers
26 views

Windows 10 installation driver not found after using dd [duplicate]

I wrote Windows 10 iso file to a usb using dd. This is the command I used: sudo dd if=windows.iso of=/dev/sdb1 bs=1MB conv=fdatasync status=progress The computer that I want to reinstall Windows 10 ...
6
votes
3answers
3k views

“Re-size” the .img for smaller SD-card. How to SHRINK a bootable SD card image

Context I have a 16 GB SD card with a Linux based OS for a Raspberry Pi. Most of the space is empty. I want to share the SD .img with other people but if I use the command dd if=/dev/sdXX of=/home/...
9
votes
2answers
3k views

Why does dd not make working bootable USB sticks for Microsoft? [closed]

Please don't refer me to the (mostly wrong) answers that have been posted on this subject. None are correct. For the last several years I have made a million bootable sticks like this: dd if=(this)....
0
votes
0answers
19 views

It seems Xubuntu does ´touch´ a microsd card in a way that is recognizable by retropie for instance - what does it do?

if i for instance insert one of my Retropie microsd cards in my other desktop pc which runs Xubuntu 18.04 LTS, if i do not lock the microsd card with the switch in the SDHC-microsd card adaptor, ...
3
votes
0answers
32 views

Cgroup - CPU share doesn't go down

I tried to run a process dd if=/dev/zero of=/dev/null bs=20M Then I got the PID using top. Afterwards, I created a foo directory under /sys/fs/cgroup/cpu/ and edited the following 1) Added 128 to ...
1
vote
2answers
269 views

Logical volume back up and recovery using dd

I have created a snapshot for a logical volume as below: sudo lvcreate -v -s -L 100M -n lv2_snap /dev/vg1/lv2 I'm able to mount that snapshot, check the files, looks good. Then, take a disk dump of ...
2
votes
0answers
61 views

How can I automate the installation of an Ubuntu image using a USB device?

I have to automate the installation of a Linux image. The perfect behavior would be that I plug the USB, turn on the device and it runs the dd command in order to flash the image stored in the USB ...
9
votes
1answer
840 views

Fix /dev/sdb after using dd with no device inserted

I was creating a bootable usb with dd using this command, which I've used many times before on my system without issue. This time, however, I forgot to plug in the usb so it tried to write to a device ...
1
vote
2answers
54 views

Backup uSD card into smallest img/zip file

I want to backup my self-made RPI based mp3-player. There is a 16GB uSD card inside, with only 4GB of data used. When i use dd to copy the whole uSD card as backup, I get a 16GB img file. zipping it ...
5
votes
1answer
3k views

What conv=fsync does in dd command-line utility

I am copying yocto build linux image to sd-card from Ubuntu 14.04 system. The command is: $ sudo dd bs=4M if=filename.rpi-sdimg of=/dev/sdX conv=fsync What does mean here of conv=fsync I red ...
0
votes
0answers
88 views

How to repair broken flash-device?

May be it was wrong decision, but I had no opportunity to make it in another way. I'd tried to burn image of Windows by means of dd on Ubuntu. I used it as usually, but once it'd gotten stuck on some ...
0
votes
0answers
30 views

Create a boot disk to automatically clone HDDs

Is it possible with Linux to make a lightweight, bootable USB/ISO that simply clones one disk to another? I want the process to be automated so it just boots up and runs "dd if=/dev/sda of=/dev/sdb ...
0
votes
2answers
42 views

Copy file1 to file2 except the final byte in 1 command

I need to find out how I could copy a file1 to a file2 except the last byte. I've been looking around and came on the dd command but the skip option only allows to skip at the start of the input file. ...
4
votes
2answers
1k views

move system to new SSD with dd command

The question is quite simple. I have search for an answer for a while but not sure I got the correct answer. Since mistakes could easily destroy my drive and data, I really want things to be clear. ...
0
votes
0answers
53 views

Cannot write image to sd card

Situation: I connected a mini SD card (via a mini-SD to USB adaptor) to my PC. I run Ubuntu 16.04 on VmWare and connected the USB to the virtual machine. I have a SD image ls -l *.sdcard -rw-r--r-...
4
votes
2answers
201 views

cat | dd inconsistent behavior

From a given a file, I have a requirement to create a copy that is padded with zeros to a specific size. If you create a file with the following. echo test >testfile The output of the following ...
2
votes
2answers
796 views

gparted error message

Edit: I have just noticed that even after reformating the usb stick that in gparted there is a red circle with an exclamation mark and clicking on it brings up the warning. plain floppy: device "/...
0
votes
1answer
63 views

Safest way to duplicate failing sd card

I have a 64 gb SD card that is starting to have problems. I want to duplicate as much of it as I can. Is DD the safest/best option to deal with failing sd cards?
1
vote
2answers
92 views

Backing up data [duplicate]

I'm completely new to Ubuntu and I was warned that I should backup data. How do I do all of this? I don't any about this dd, partitions or stuff so I need some help.
0
votes
0answers
38 views

What is the file extension I should use for dd?

I recently copied an entire partition (98 gb) to my backup drive and have since formatted the entire drive (corrupted files.) I ran a live version of Ubuntu and when I ran the dd command I specified ...
0
votes
0answers
163 views

Is it possible to clone a windows 7 usb installer with dd command

A friend of mine might lend me a windows 7 installer (usb stick). I want to know if I can clone it using the dd command to make another bootable win 7 usb installer. If not, wich other method do you ...
2
votes
1answer
383 views

How to catch function keys (F3, F4…) value in a variable into a script shell?

I'm searching for a way to catch the value of function keys in a variable, when a user push the function key. I have tried with dd command but only the letters or numbers keys are trapped: dd command ...
0
votes
2answers
73 views

Does zeroing a drive equivalent to 'Nuke it from orbit'? [duplicate]

Say I have two OS on my computer, one is Windows, and another is Ubuntu. My Windows apparently has been infected by nasty malware, and it currently making it unusable. However Ubuntu doesn't seem to ...
1
vote
1answer
1k views

Does running dd if=/dev/zero often can damage the drive?

Sometimes I zeroed my HDD once a month, using dd if=/dev/zero of=/dev/sda command, and start over again. Don't worry, I've always backup my file onto external drive, so it's not a problem. I often ...
0
votes
1answer
2k views

DD a BitLocker/TPM encrypted drive

Is it possible to create a bit identical image of a Windows 10 SSD using an Ubuntu live cd/usb? If I boot into the laptop with the live/cd/usb, I can't see the drive using fdisk or gparted. The ...
0
votes
0answers
102 views

Using dd command to clone entire Linux install [duplicate]

Can I use dd command to clone my entire Ubuntu install along with grub into external hard drive and use it for portability?
0
votes
1answer
103 views

How can I recover data from lost and found files present on root.disc from Windows? [duplicate]

After changing size of Ubuntu folder (the command I used was dd, folder loop0) the kernel panicked, my Ubuntu is dead and I cannot recover it with GRUB or any recover tool (vmlinuz is not even present)...
2
votes
1answer
1k views

Use of block size in dd and ddrescue

I have seen examples of using the dd and ddrescue command, and I see that instead of asking the user for the size of the block on their device, they recommend using bs=1M and I do not understand why. ...
3
votes
2answers
2k views

Fastest way to migrate to a bigger SSD (18.04)

I've seen a few postings about migration with older Ubuntu versions. What's the fastest way to migrate 120GB (80GB full) to a 1TB SSD under Ubuntu 18.04? live duplicate or via image possible how to ...
0
votes
1answer
871 views

dd-backup of corrupted disk

I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy. 'sudo dd if=/dev/sdd of="/media/me/out/theimage....
1
vote
1answer
71 views

Complete data transfer with dd - Is that possible?

I am planning to create a /home partition. The only problem is that my hard drive is MBR, not GPT, and I have used the maximum 4 partitions that are available (Windows 7, a NTFS partition for data, ...

1
2 3 4 5
8