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
3 votes
1 answer
4k 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. ...
MarianoM's user avatar
  • 665
6 votes
2 answers
9k 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 ...
ssssstut's user avatar
  • 677
1 vote
1 answer
3k 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....
bernd feinman's user avatar
1 vote
1 answer
136 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, ...
na-no.'s user avatar
  • 846
0 votes
1 answer
903 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 ...
s.k's user avatar
  • 1,280
1 vote
1 answer
9k 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 ...
LifeIsATest's user avatar
1 vote
1 answer
2k 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 ...
leeuwtje's user avatar
  • 231
0 votes
1 answer
2k views

Restoring Data from image.dd [duplicate]

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 ...
LifeIsATest's user avatar
0 votes
1 answer
3k 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 ...
max sim's user avatar
  • 11
1 vote
0 answers
138 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 ...
HQuser's user avatar
  • 121
1 vote
1 answer
1k 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 (...
Mantabit's user avatar
  • 111
2 votes
0 answers
51 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 ...
A Green's user avatar
  • 21
1 vote
1 answer
71 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 ...
Kupo's user avatar
  • 141
0 votes
1 answer
4k 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?
user3123721's user avatar
2 votes
0 answers
247 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 ...
astralmaster's user avatar
2 votes
0 answers
7k 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) ...
Sridhar Sri's user avatar
5 votes
2 answers
6k 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 ...
CodeBy's user avatar
  • 253
0 votes
2 answers
2k 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=/...
Shayan's user avatar
  • 1,501
1 vote
0 answers
1k 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
user2925716's user avatar
2 votes
0 answers
285 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 ...
R S's user avatar
  • 2,449
1 vote
0 answers
69 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 ...
BruceJohnJennerLawso's user avatar
2 votes
1 answer
688 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 ...
Pottepl4nt3n1055's user avatar
1 vote
1 answer
4k 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&...
Tyler's user avatar
  • 213
0 votes
1 answer
1k 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 ?
abo sal's user avatar
  • 21
1 vote
1 answer
2k 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 ...
vrms's user avatar
  • 501
0 votes
2 answers
1k 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 ...
Roaders's user avatar
  • 231
1 vote
2 answers
7k 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 ...
vrms's user avatar
  • 501
2 votes
2 answers
4k 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 ...
user1414745's user avatar
11 votes
1 answer
15k 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 ...
Faez abdulkarem's user avatar
2 votes
1 answer
172 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: ...
Micfireball's user avatar
3 votes
1 answer
4k 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 ...
evilcode1's user avatar
1 vote
0 answers
74 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 ...
Stormlord's user avatar
  • 6,337
7 votes
1 answer
30k 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&...
user8292439's user avatar
  • 3,798
5 votes
2 answers
3k 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 ...
mk1024's user avatar
  • 669
40 votes
2 answers
16k 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 ...
user8292439's user avatar
  • 3,798
0 votes
1 answer
78 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 ...
user3635998's user avatar
1 vote
0 answers
89 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 ...
John's user avatar
  • 11
0 votes
1 answer
761 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 ...
Sinoosh's user avatar
  • 2,031
0 votes
0 answers
50 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 ...
hg2's user avatar
  • 21
4 votes
2 answers
9k 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. ...
witenitenz's user avatar
0 votes
0 answers
148 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, ...
Lemuel's user avatar
  • 11
0 votes
0 answers
239 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, ...
Maximiliano Redigonda's user avatar
1 vote
0 answers
81 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 ...
TimLavelle's user avatar
0 votes
0 answers
337 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 ...
answerSeeker's user avatar
6 votes
1 answer
919 views

High copy speed at begining of copying

When I copy file (doesn't mater which process I use - krusader, cp, dd, ...) firstly its very fast, like way too fast (around 7000 MB/s to USB 2.0 pen-drive). Then it suddenly slows down (usually at ...
Jav's user avatar
  • 73
0 votes
2 answers
42 views

Can I make an image from the disk starting at x address?

I'm trying to get a specific data from the disk starting at specific address (don't know if it was physical address or not, ex: 0x00000000DA88FFFF, with size 0x5776). Actually I'm new with disk imager ...
Aziz's user avatar
  • 11
0 votes
1 answer
3k views

backup windows partitions with dd [duplicate]

I am on Ubuntu, I have 2 external hard drives, of of them is an SSD. The HDD is from a laptop with windows 10 on it, the SSD is completely empty, I want to use it to copy everything on the HDD to the ...
answerSeeker's user avatar
3 votes
2 answers
2k views

Live USB, mount second partition on same device

How to mount second partition on the same USB disk where Live Ubuntu was installed? I was using dd to create a live USB. I have created second VFAT partition using fdisk and formatted it using mkfs....
kometonja's user avatar
  • 155
37 votes
6 answers
27k views

Accidentally did dd /dev/sda

I written an ISO image to my hard disk using sudo dd if=image.iso of=/dev/sda. I meant /dev/sdc, and now running sudo fdisk -l returns only one partition on /dev/sda while there is supposed to be 6. ...
Baaing Cow's user avatar
1 vote
1 answer
172 views

dd or equivalent everything on a disk without dding the entire disk

I have a very specific kernel structure on an sd card I'd like to copy and send to a friend. I know I can simply dd the entire SD card, but the kernel is ~2GB, which wastes the other 14GB of the disk....
Brydon Gibson's user avatar

1 2 3
4
5
10