Questions tagged [dd]
dd is a common Unix program whose primary purpose is the low-level copying and conversion of raw data.
130
questions with no upvoted or accepted answers
5
votes
0
answers
3k
views
How to use a `dd if=/dev/sda of=/dev/sdb` drive?
Given: a sudo dd if=/dev/sda of=/dev/sdb duplicate drive of the main boot drive.
How does one safely, reliably :
mount a dd duplicate drive as a second drive?
setup the dd duplicate drive as ...
3
votes
0
answers
158
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 ...
3
votes
0
answers
3k
views
"isolinux.bin missing or corrupt" when trying to boot 16.04 from USB
I wiped my USB drive using GParted and then installed the Ubuntu 16.04 ISO to the drive using Disks (gnome-disks) by selecting the "Restore Partition Image..." option and then writing the ISO to the ...
3
votes
0
answers
2k
views
Ubuntu 16.04 not booting from USB
I tried to create a bootable USB for Ubuntu 16.04. When booting from the USB I only see a black screen with a blinking cursor though.
Here are the different attempts I've tried:
Download the Ubuntu ....
2
votes
0
answers
304
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 ...
2
votes
0
answers
523
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 ...
2
votes
0
answers
385
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 (...
2
votes
0
answers
967
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 ...
2
votes
1
answer
2k
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=/...
2
votes
0
answers
292
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 ...
2
votes
0
answers
242
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 ...
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) ...
2
votes
0
answers
284
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 ...
2
votes
1
answer
195
views
How do I restructure RAID 10?
We would like to alter the partition without losing data. Here is the sketch of the plan. I am wondering if it is doable using mdadm; and if so, please kindly point some reference on how to carry out ...
2
votes
0
answers
4k
views
resize2fs: Invalid argument while trying to resize /dev/sda1 (dd problems)
I was attempting to copy my Ubuntu installation to a larger HDD following this guide with the dd command. The guide says:
"It's recommended you dd to an identical partition for optimal results."
...
1
vote
0
answers
55
views
DD question copying 2 select partions to target
Using ubuntu for few weeks now and its excellent.
Really like the dd copy tool but i would like some advice on using it.
I copied all my installers to a partitioned ssd i now need to reverse but each ...
1
vote
0
answers
26
views
Performance test went wrong and the dd command created 13TB of data on /dev/mapper/device. Why system didn't crash? HDD-250GB
So I wanted to do some performance test with encrypted and normal data storage on my embedded device.
That is not what I was expected to see at all!
Can you please explain it to me what just happend. ...
1
vote
0
answers
38
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 ...
1
vote
0
answers
839
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 ...
1
vote
0
answers
288
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 ...
1
vote
1
answer
854
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 ...
1
vote
0
answers
474
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 ...
1
vote
1
answer
278
views
What happens when the process of zeroing out an hard drive is interrupted?
I was zeroing out my hard drive using the dd command and there was an interruption. What does this mean for the hard drive? If I run the command again, will the zeroing take off from where the ...
1
vote
0
answers
9k
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 ...
1
vote
1
answer
147
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 ...
1
vote
2
answers
285
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 ...
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 ...
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 ...
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
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 ...
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&...
1
vote
0
answers
69
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 ...
1
vote
0
answers
79
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 ...
1
vote
0
answers
505
views
Why dd is not working?
I have an SD that is giving me a lot of problems. Data started to get corrupted, specially pictures and now I am trying to wipe it and give it another use.
I am still able to see the pictures that ...
1
vote
0
answers
1k
views
Recover data from corrupted sd card
My cell phone and computer can't access my SD card anymore which is maybe because of a corrupted block/sector. I tried everything as it contained some useful data i desperately need. It is still ...
1
vote
0
answers
349
views
Trying to copy hard drives with dd I get "physical block size is 2048 bytes, but Linux says it is 512"
I am trying to copy (using dd) from one hard drive to another on a network of only two computers (a Ethernet cable between them). The computers are the same model and the hard drives are also the same ...
1
vote
0
answers
90
views
dd Command Becoming Non-Resposive While Writting Floppy Image
I am trying to write a floppy image using dd. I am running this command:
dd if=fdboot.img of=/dev/fd0 bs=1024 conv=sync status=progress ; sync
(Though I've also tried a simple dd if=fdboot.img of=/...
1
vote
0
answers
121
views
Using remaining space on a startup disk
While using applications like dd, Startup disk creater, etcher I can see that a lot of space on the startup disk is unusable. This is normally equal to the diskspace minus the ISO size.
How can this ...
1
vote
0
answers
856
views
Using zenity progress bar with bzcat to dd copy
I know there are ways to add a progress bar to dd, but I can't seem to get anything to work with my specific situation. Here is what I have so far:
bzcat /file/path/goes/here.dd.bz2 | pv -n | dd of=/...
1
vote
0
answers
135
views
How to backup the first 3 of 5 partitions
I'm figuring out how to backup the first 3 of 5 partitions, in order to be able to restore them in case of disk failure or in case I messed up my system. Partition 4 and 5 are setup in RAID 1 ...
1
vote
0
answers
872
views
Change filesystem blocksize when installing 15.10
so,
I'm very much out of my depth in the whole world of *nix here. I'm searching all over about file system block sizes, and I found this script which determines what I can tell are read-speeds with ...
1
vote
0
answers
464
views
How to recovered destroyed partition(dd command)
So I have been using a ubuntu livecd to help backup my windows os that won't start. I used the sudo dd if=dev/sda4 of dev/sdc1 accidentally and OVERWROTE the whole 700gig external hard drive and it ...
1
vote
0
answers
549
views
Making a backup copy of the DVD "Iron Man 2"
I am trying to make a backup copy of my DVD Iron Man 2 (I live in a country where it is OK).
This particular DVD has special tricks to prevent buyers from doing that (see dicussion for Mac).
I ...
1
vote
0
answers
306
views
Unable to login after dd clone
I have a test system with two 80GB drives: /dev/sda has Windows7 installed on it and /dev/sdb has Ubuntu 14.04. I imaged the Ubuntu drive to a third USB HDD using
dd if=/dev/sdb of=/media/...
1
vote
1
answer
384
views
Restoring backup from dd image has really weird results
I've been using Clonezilla for weekly image backups, which is obviously a little bit of a hassle. I've been trying to switch to dd, so I can have cron run it for me.
This is what my backup script ...
1
vote
0
answers
161
views
dd: Trying to recover my file system
ubuntu: 14.04
By mistake I ran the following command
dd if=/dev/zero of=/dev/sda2 bs=1024 count=1
and now grub is unable to recognize file system and so the linux is not starting. I think I have ...
1
vote
1
answer
2k
views
Raid10: how to tell which disks are in mirror?
When I do "cat /proc/mdstat", there seems no such information as to tell which disks are in mirror.
% cat /proc/mdstat
md126 : active raid10 sda1[0] sdd1[3] sdc1[2] sdb1[1]
... near-copies
Thanks ...
1
vote
0
answers
205
views
Syncing/Mirroring two partitions (Sata, USB) : RAID or not?
My 12.04 Ubuntu server has a 120Go internal SATA sda5, ext4 partition. I also own a 500 Go USB2 external hard-drive from which I could easily free 120 Go.
Now, I've been meaning to set up mirroring (...
1
vote
1
answer
3k
views
Why is DD taking so long?
Background:
I have an 8-disk Network Attached Storage device. I've been having issues with it where the hard drives fail on a regular basis. I figured out what the problem is with this: firmware ...
1
vote
0
answers
586
views
How to move ubuntu 12.04 on another drive
How I can move my ubuntu on another drive?
I know about clonezilla but problem is that destination drive is smaller the source one. Gparted can't copy-paste partition if destination not the end last ...