Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dd]

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

0
votes
0answers
17 views

Using VirtualBox to boot into a disk image backup created with dd

I was on Ubuntu 16.04, and then I did a clean installation of 18.04. However, before doing that, I made a copy of all my files onto a USB drive so I could copy them into the new installation. I also ...
1
vote
1answer
25 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, ...
0
votes
1answer
22 views

dd an internal partition to a single file onto an external USB drive

Description: I would like to copy a whole data partition (~100 GB) from a computer to a single file on an external USB drive so that I can copy it back on a new empty data partition of an other ...
1
vote
1answer
36 views

How do I restore important data for image.dd? Photorec will lose file names and will scatter the information

A few days ago I was in a middle of copying or cutting folders and data to my external hard drive and it was corrupted. I have tried to locate the lost information on Test Disk but I have now lost it ...
1
vote
1answer
64 views

lubuntu 18.10 x64 installed on USB stick clone to usb stick 2

Help! Creating clone from a cosmic installed bootable USB stick; I have a working running USB stick with lubuntu 18.10 cosmic on it. I installed the stick by a normal lubuntu 18.10 .iso. Now I ...
0
votes
1answer
19 views

Restoring Data from image.dd

A few days ago I was in a middle of copying or cutting folders and data to my external hard drive and it was corrupted. I have tried to locate the lost information on Test Disk but I have now lost it ...
0
votes
0answers
46 views

GPT PMBR size mismatch after dd clone - why it only happens sometimes

I have used dd command to clone disk A to disk B. However, in some cases (not always), after a successful clone, fdisk on disk B gives me: GPT PMBR size mismatch (937703087 != 1000215215) will be ...
1
vote
0answers
28 views

How to recover data from NTFS partition after accidently running EXT4 dd on it?

I was trying to copy my EXT4 partition as backup and I accidentally putted my NTFS partition containing my data on the dd command. Now my data is lost :( I've tried testdisk but it wasn't able to ...
1
vote
1answer
443 views

GRUB loads Ubuntu installation from wrong SSD

Since the original SSD of my Laptop (sdb) is relatively small (100GB) I recently installed another SSD (sda) with a larger capacity (500GB). My idea was to clone the old SSD (sdb) onto the new SSD (...
2
votes
0answers
41 views

How to get back to command line from grub rescue after shutting down halfway through dd if=/dev/zero [duplicate]

I was intending to use dd to wipe my laptop's HD, but accidentally pressed enter with only [dd if=/dev/zero/ without an of=... argument, then could not enter any further commands, so I cut the ...
1
vote
1answer
48 views

What's Going Wrong Here (Erasing My Home Partition)

I'm using the DD command sudo dd if=/dev/zero of=/dev/sda4 bs=10M from a Xubuntu live USB. SDA4 is my Home partition, which has been wiped normally before attempting to use this command. This is ...
0
votes
1answer
214 views

How to mount a whole disk image formatted in UFS filesystem

I am trying to mount a raw disk image created by dd command from whole one disk. My disk has a UFS file system on its drives. mount command needs a special drive to mount. How can I do it?
0
votes
0answers
17 views

how to run bash script with pxe

how to run bash script with pxe? I want pxe partition and run dd img. pxe mount samba or nfs and the bash like sudo dd if=/mnt/mbr446.img of=/dev/sda sudo dd if=/mnt/sda1.img of=/dev/sda1 bs=4M sudo ...
2
votes
0answers
34 views

DD command broke partition table Ubuntu

I have two exact same model and capacity hard drives with the first one having Ubuntu Server 16.04 (/dev/sda) on it and the second (/dev/sdb) having formerly been part of RAID configuration on ...
0
votes
0answers
19 views

Hdd image format raw\dd write on hdd disk [duplicate]

I have hdd image format raw|dd. Can i write this image on hdd disk. That md5 image = md5 written hard disk?
1
vote
0answers
1k views

cc1: error: code model kernel does not support PIC mode

This is my simple drivers Makefile: obj-m+=hello_world_module.o KDIR=/lib/modules/$(shell uname -r)/build all: make -C $(KDIR) M=$(shell pwd) modules clean: make -C $(KDIR) M=$(shell pwd) ...
5
votes
2answers
1k views

dd doesn't work

I do $ df -h ... /dev/sdc1 1,5G 1,5G 0 100% /media/username/Ubuntu 17.04 amd64 $ umount /dev/sdc1 $ df -h ... #sdc1 now not listed $ sudo dd if=./memtest86-usb.img of=sdc 307200+0 ...
0
votes
2answers
155 views

dd manpage is so vague, how to create disk image

I am booting a live disk Ubuntu and I want to back up my entire SSD (sdb) with all 3 partitions (sdb1, sdb2, sdb3) to an image file on an external hard disk. This guide suggests this command: dd if=/...
0
votes
0answers
29 views

What I supposed to see during Wiping the hard disk with dd command? [duplicate]

I have an issue with upgrading my laptop to ubuntu 18.04 It's slow and not working well in many things( sometimes restarts on its on, slow while using it, freezes, does not detect the usb) all of ...
1
vote
0answers
160 views

Cloning Windows 8.1 with Ubuntu dd

Will there be any problem/caveat when I have a hda disk with Windows 8.1 system and with a bootable flash disk I enter under Ubuntu system this command: dd if=/dev/hda of=/dev/hdb bs=1M
2
votes
0answers
61 views

sha256sum of image on dvd doesn't match to original ISO

I tried to check sha256sum of ISO after it was burn on DVD I used this command and got result that differs from original ISO's check: dd if=/dev/sr0 | sha256sum Does it mean that it was written ...
1
vote
0answers
14 views

Why does dcfldd always fail on cd-roms that also contain music?

Ive been working on digitizing my entire library of physical discs, using dcfldd to make disc image copies of every cd-rom & dvd Ive ever owned so I can take them off to the thrift store and save ...
2
votes
1answer
107 views

DD command is not working as intended

So i tried using this DD command to transfer my USB, ISO file og the Ubuntu download over to my SSD. I did this because i couldn't find my SSD but only my HDD before when i tried to install Ubuntu. As ...
1
vote
1answer
282 views

Set date and time from http header in router with curl or wget

This technique should be similar or the same as on Ubuntu; though the following code does not work on the router. One method is the following: dateFromServer=$(curl -v --silent https://google.com/ 2&...
0
votes
1answer
564 views

use dd Cloning Tool and Ubuntu installed on usb for upgrade or downgrade Ubuntu

I upgraded from Ubuntu 16.04 to Ubuntu 18.04, made some wrong selections while upgrading, Can I use Ubuntu installed on usb stick (dd The Native Linux Cloning Tool) to upgrade or downgrade Ubuntu ?
1
vote
1answer
79 views

clone physical partition to an image - which dd options should I use?

I want to convert a physical partition (Windows C:\ drive) into an image file with dd. dd if=/dev/sda1 of=/path/to/W7.img (run from a live DVD which I start the original machine with) is what I can ...
0
votes
2answers
41 views

How to backup entire disk for Ubuntu Server quickly and easily

I want to create an image of Ubuntu Server installation so that when I need to create a new server I can really quickly install the image on a new USB drive. I was planning to use DD for this but my ...
0
votes
1answer
661 views

how to create dynamic qcow2 image from Windows C:\ drive?

I want to convert a Windows 7 C:\ Drive from my previous laptop into a qcow2 image which I wan to use to create a KVM virtual machine from on a new (linux based) computer. I guess the simplest way ...
0
votes
0answers
43 views

Copy/backup entire decrypted LUKS partition mounted from live USB

After booting from Live Ubuntu 16.04 USB, can use these instructions to successfully decrypt and mount a LUKS partition. Question: How to copy/backup-- perhaps using dd -- this entire partition to an ...
2
votes
2answers
860 views

Run a linux partition on VirtualBox

On my computer, I had multiple partitions and operating systems. /dev/sda1 -> recovery /dev/sda2 -> linux /dev/sda3 -> swap /dev/sda4 -> windows I made an image backup of the linux ...
1
vote
1answer
285 views

booting dd image on virtualbox

I have been through a lot of questions regarding backing up your data, most recommended method is Clonezilla live CD but that wont work for me due to the server being remotely hosted by a company so I ...
2
votes
1answer
48 views

Accidentally zeroed first 4kb of primary HDD

To start, this is similar but not the same to Accidentally did dd /dev/sda because I restarted my computer. I was making a bootable usb, and when I went to clear the partitions of the usb, I did: ...
3
votes
1answer
110 views

Mount dd image for my USB

I'm trying to mount a .dd image. I followed 2 methods without success ... Method 1 1st step: root@evilcode1:/root# blkid qassam.dd qassam.dd: UUID="524F4B6665E82B4E" TYPE="ntfs" 2nd step: I ran ...
1
vote
0answers
32 views

Data remain on hard disk after dd command

After several experiments with Ubuntu mini, I have discovered something strange. When I want to start a new installation, I boot the system to the Ubuntu mini image, I let it continue to the language ...
2
votes
1answer
2k views

What is the 'bs' option in dd?

I've found conflicting information on the internet on whether the bs in a command like dd bs=512 if=/home/Downloads/ubuntu.iso of=/dev/sdb stands for "bytes per second" or "block size". I couldn't ...
0
votes
0answers
16 views

How to backup a bootable usb key as a local drive plain folder? [duplicate]

I'd like to backup a windows 10 install boot usb drive and a bootable E2B USB drive. I found ways to copy them to a /dev/XXX but i would prefer not having to create partitions ?
4
votes
2answers
1k views

Why unmount a partition before overwriting the disk?

How to create a bootable Ubuntu USB flash drive from terminal? Why do guys here use umount first? I assume USB flash drive should be formatted first, so does umount format the disk, or just detach ...
10
votes
2answers
1k views

fallocate vs dd for swapfile?

I'm wondering what the difference is between creating a swapfile with fallocate -l 1G /swapfile and dd if=/dev/zero of=/swapfile bs=1024 count=1024 both seem to work fine, but does one have an ...
0
votes
0answers
105 views

Can't see eMMC drive in bios on Asus MINI after Lubuntu installation on flash drive

Before trying to install Lubuntu (Linuxium version) on a flash drive for my Asus Mini T102ha, I've done a complete backup of the eMMC drive installed with Win10 by using dd on /dev/mmcblk0 in order to ...
0
votes
1answer
60 views

Need to use dd, but no /dev/sd* [duplicate]

Using Beaglebone. Need to run dd to backup an image and then restore it. dd bs=64K if=/dev/sdX of=/dev/mmcblk1/myImage.img But I don't see any sdX, where X is a number. So, what should be the ...
1
vote
0answers
77 views

How can I use dd to make a Windows 7 USB installer in Ubuntu? [duplicate]

Why didn't dd make a bootable Windows USB stick? Has anyone tried to burn a Windows 7 USB installer in Ubuntu? Usually I run dd to burn linux ISOs, and I thought it would work for Windows 7, but the ...
0
votes
1answer
123 views

How child process still running when i exit terminal window?

When I execute dd if=/dev/zero of=/dev/null Then close terminal window i see that dd still running and it's PPID is difference than first time. What is happening for dd process ? whenever killing ...
0
votes
0answers
42 views

Transferring data between drives of dissimilar capacities

I have a 80 GB hard drive which contains a copy of Ubuntu and a total of about 20 GB of data. I would like to transfer this data over to a SSD that is 60 GB in capacity. I've looked at tools such as ...
2
votes
2answers
2k views

SD card cloning using the dd command - more questions

This is a bit of a follow on from another users question found here: SD card cloning using the dd command I have used the dd command to clone or make backup copies of SD cards with limited success. ...
1
vote
0answers
22 views

dd with find in one command

i try backup boot of my android with command line. how i can correctly write it? with cp all right but dd - wrong. q415:/ # find /dev/block/platform -name boot -exec dd if={} of=/sdcard/boot.img \; ...
0
votes
0answers
58 views

Can I use a DD command in a init.d startup script in ubuntu core 16?

Can I use a DD command in a init.d startup script in ubuntu core 16? I want to create a script that will automate the restoring of a backup image using DD command in a live ubuntu core environment, ...
0
votes
0answers
86 views

Can't even try Ubuntu from live USB, initramfs, after accidentaly using dd to write sda for a short period of time

I know there are already some answers targeting both the problem with the initramfs prompt, and the problem about accidentally using dd and writing sda, however, I found no help with those questions, ...
0
votes
0answers
25 views

criterion to define bs = XX [duplicate]

what is the criterion for setting the "bs = ??" Can I choose according to what I wish or is there a limit? Because this option is required, I could not use the command without setting it
1
vote
0answers
30 views

Can't mount dd image - shows correct used space

So one of my HD starting to give me Input/Output errors 1.5 weeks ago and I immediately went into 'backup' mode. The drive in question is a 4TB HD and I have created a dd image of it already (took 5 ...
0
votes
0answers
123 views

Things to do after cloning smaller ssd to larger ssd in ubuntu

I cloned a 500GB ssd to a 1050GB ssd but I was having many issues later. I only cloned the partitions I need then later resized them. The swap partition is the only one that I didn't clone because I ...