Questions tagged [dd]

dd is a traditional utility for binary data copies

Filter by
Sorted by
Tagged with
0
votes
2answers
223 views

“dd” Utillity Copied More Than Expected

I just bought a ssd to change with current hdd. So, I decided to copy whole 750 gb partiton (of course used part of it which is approximetly 76 GBs) using "dd" utility. However, I entered this command:...
-1
votes
2answers
67 views

I have cloned my main diskdrive by dd but

Step 1: I have cloned my main diskdrive by dd cmd: bash -c "dd if=/dev/sda |pv| gzip > /media/disk/sda-backup.gz" Step 2: Now I like to make the cone work running from USB stik. I have a 120Gb usb ...
1
vote
0answers
58 views

Strange df output after ddrescue clone

My old harddisk was having I/O error last week so I tried to copy the data out to another new disk intending to rescue the data. I use ddrescue: ddrescue -f /dev/sda1 /dev/sdb1 my_mapfile After I ...
1
vote
1answer
459 views

how to write live rescue disc image (ISO) with dd for UEFI boot?

How would I prepare ALT Linux Rescue disc to install Linux for dual boot with Windows 10? Ideally, the USB thumb drive should boot in UEFI mode for a GPT type hdd. The note on UEFI specifies: ↑ ...
0
votes
1answer
981 views

dd script with timings

Trying to figure out the best approach to a script that will do the following: Create a loop script that creates a 10GB file using dd where, upon completion, removes the file, then repeats 25 times ...
1
vote
3answers
140 views

What is happening when I read a corrupt optical media with dd and it's really slow?

I have a DVD that I can't rip or copy using regular commands. If I try to copy it it will first copy at normal speed, but then slow down and take a very long while to do seemingly nothing. Right now ...
0
votes
1answer
1k views

Does `dd` I/O read error alway indicate hardware failure?

I've purchased two 2TB drives. One has been formatted with an HFS+ (non-journaled) filesystem, and ~800GB of files written with rsync. I'm attempting to create a backup on the second with a basic dd ...
0
votes
2answers
526 views

SD Formatting problem

I have a 8Gig SD card that I've been trying to format but for some reason nothing seems to be able to do it. I've tried checking for overlapping start and end bits but clearly there is no overlap in ...
1
vote
1answer
97 views

Confused with results after dd operation on RAID6 configuration

I am working with the RAID6 configuration with 4 disks involved, each of size 8TB. Hence the total capacity = (n-2) * s, where n = number of disks and s = size of disks. So in my case it is 16TB. ...
4
votes
1answer
1k views

How to clone remote Linux system and make an image file with it locally?

This question has bothered me for a while. I have a remote machine with CentOS, which can only be accessed via ssh. I need to clone everything this system has and replicate it in my local with ...
0
votes
1answer
121 views

MIME type & File signature of .DD image file?

Please tell me the mime type & file signature of .DD image file which is a disk image created with DD command line tool in Linux/Unix.
2
votes
1answer
593 views

Issues zeroing an LVM volume

I have a system with two LVM volumes on an eMMC device, and I'm trying to "wipe" one of the volumes by filling it with zeros. This is my first time working with LVM, so I'll show what I tried and didn'...
1
vote
1answer
152 views

XFS Resize Possible?

Can I dd XFS home to backup drive then nuke home & resize root recreating new XFS home then dd file structure back?!? Cannot upgrade Mint 17.3 to 18 as not enough room in root. Would this work ...
0
votes
1answer
143 views

Recover LVM after overwrite with dd

Know that my chances are small (if even there are :(). I have a HDD of 500G with 1 logical volume (ext4). By accident I overwrote it with an ISO of 1,5G: dd if=linuxmint-18-xfce-32bit.iso of=/dev/...
1
vote
0answers
281 views

How to make a USB bootable if there is a partition table that have to be kept

How to create a bootable usb if I want to keep the partition tables of my usb? A simple dd on the subpartition (e.g /dev/sdb1) is not going to work. Example: I have the partition # lsblk /dev/sdb ...
0
votes
2answers
2k views

Reading only 1GB using dd command

I have a USB hard drive of 32 GB, I want to know the time it takes to copy 1 GB of data from the USB drive. I tried using dd if=/dev/sdb1 of=/dev/null The output is this dd if=/dev/sdb1 of=/dev/...
1
vote
2answers
6k views

How to make a bootable usb from commandline?

The question is common, but I am not able to solve it with the explanations I found here. Situation: 4GB usb stick Manjaro operaing system iso image file of linux mint First, I did: lsblk # and ...
12
votes
4answers
13k views

Why dd takes too long?

I need to copy one disk to another. I tried with the command below and it takes nearly a day to copy 1 TB of disk. dd if=/dev/sda of=/dev/sdb I have tried the same on a Unix system with the ...
1
vote
1answer
418 views

Full Image of internal HDD, drive - dd / dd_rescue - with TrueCrypt [bad sectors] [read error]

Background I had a problem under Windows with ndis.sys [sys don't start] Status: 0xc00000e9 Info: Windows failed to load because a critical system driver... To repair I had to fully decrypt drive [...
2
votes
3answers
851 views

Usb size wrong after dd write of a ISO-Image

I have just used dd to place the Kali Linux ISO file onto my USB. I then tried to install Kali Linux via the USB, but I couldn't since the install-image was corrupt. I booted back into my other Linux ...
2
votes
1answer
380 views

Print line at offset X in memory dump +/- 10 lines on each side

I have a huge memory image I'm investigating and digging through (64gb+). Too large to load into memory/vim. I ran strings on the memory file with the offsets included and saved it to a file so that I ...
2
votes
2answers
4k views

“Error: Can't have a partition outside the disk!” even though number of sectors is fine

I am looking at an image file which was created using dd with an SD card with Raspbian (with Qt 5.7 on it that I compiled a while ago) as input. When invoking sudo parted raspbian_jessie_qt5....
1
vote
0answers
218 views

unetbootin and dd command does not work when booting the usb, stuck on black screen with underscore

after creating a live usb with kali linux, both "dd" command and "unetbootin", the USB does not boot in my other computer in which i have kali linux installed as well. When I select the USB from the ...
2
votes
1answer
100 views

What might cause a block device to somehow be smaller than its partitions?

I'm trying to wipe an IOSafe external drive, and I'm running into a major problem. When I run dd to wipe the full disk (/dev/sdb) it errors out at the 1.8 GB mark (it's a 2 TB disk), saying no space ...
1
vote
2answers
1k views

How to monitor dd progress with pkill?

To install an OS, the official raspberry pi site proposes to run dd bs=4M if=myiso of=/dev/sdb followed by pkill -USR1 -n -x dd In order to show the progress. Executing this last command, I do ...
2
votes
3answers
5k views

Using DD to copy only half (part) of removable device

I had a 32GB SD Card with this structure (or very close): luis@Fresoncio:~$ sudo fdisk -l Disk /dev/mmcblk0: 29.2 GiB, 31393316864 bytes, 61315072 sectors Units: sectors of 1 * 512 = 512 bytes Sector ...
1
vote
0answers
302 views

Can't boot Debian from USB

I'm having a few problems installing Debian 8. I created a bootable USB using dd if=iso-file.iso of=/dev/sdb, then I changed the BIOS settings to boot from the USB stick, but when I reboot, nothing ...
0
votes
2answers
407 views

How can I run 2 dd in parallel writing on the same device

I am looking for a way to put zeros and burn myiso.iso in parallel. The command dd if=/dev/zero of=/dev/sdb && (sleep 1; dd if=myiso.iso of=/dev/sdb) should be ok since the speed at which ...
2
votes
1answer
55 views

Less complicated way to do Server Data Migration?

This is perhaps too specific/personal a question for S.O. but here it is: I've inherited a server currently running a single hard drive, which through default Ubuntu 16.04 server setup, is running ...
2
votes
3answers
1k views

dd not using entire disk space

I am trying to create a Live USB using the dd utility. The first thing I did was wipe the USB using the following command: ~ $ dd if=/dev/zero of=/dev/sdb bs=512 count=1 The 8GB USB has a total ...
2
votes
2answers
2k views

How To dd or cp Entire Disk On Debian Remote Machine To Local Machine?

I have read this post - How to dd a remote disk using SSH on local machine and save to a local disk However, the following code doesn't work: "dd if=/dev/sda | gzip -1 -" | dd of=image.gz As I do ...
5
votes
6answers
9k views

Check command success in bash

I'm currently writing a small script to backup bulks of floppy disks and format them afterward for later use. I use dd to copy the disk's image and cp to copy all the files on the disk. Here are the ...
0
votes
2answers
110 views

Weird compound-list of dd commands in bash

I just ran across the following bash construct, I understand this is called compound-list and that those three cat commands are executed in a subshell environment, what I do not get is how the pipes ...
0
votes
2answers
54 views

Do I need to increase original partition size if I'm simply restoring contents (with dd)?

I'd like to copy a partition to another laptop (to back it up). I'll connect the side-by-side laptops with an ethernet cable. To do the backup, I'd specifically like to use the "dd" command. For ...
11
votes
2answers
14k views

Why is sync so important when making a bootable linux usb stick?

From the Arch Linux Wiki: https://wiki.archlinux.org/index.php/USB_flash_installation_media # dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync [...] Do not miss ...
1
vote
1answer
834 views

How to access/mount an unknown type of file?

Back in 2012 I created a 7.5GB file named SD-card.2012.dd-bs1024-1.ec6a4994f4148912abb199505b98f01g My guess is that I ran dd on an 8GB SD card from one of my cameras. Why? Can't remember. I ...
3
votes
4answers
19k views

How to Create Bootable Windows 10 image in Debian?

Pseudocode but originally developed for Windows 7 iso file but applied for Windows 8 in the thread How to create bootable Windows 8 iso image in Linux? but it does not work with Windows 10 iso # ...
0
votes
1answer
2k views

DD Clone not booting

I cloned my SSD to my USB using dd, but the USB won't boot... Here's the story: I just got a 275 GB SSD to replace my 128 GB SSD, which is running low on space, but I want to continue using my Ubuntu ...
0
votes
1answer
454 views

How dd will write data on to disk

$ dd if=BIN of=/dev/mmcblk0 bs=1k seek=1; sync 39+0 records in 39+0 records out 39936 bytes (40 kB, 39 KiB) copied, 0.000348317 s, 115 MB/s I am little confused here how ddis writing to disk from ...
2
votes
2answers
1k views

dd to backup and restore a full system

I use a notebook with Mint Linux, and for a few days I'll be using Windows. So I would like to "save" my OS and later put it back on the same drive. Its using full disk encryption (the one that comes ...
0
votes
1answer
47 views

Switching disks

We currently have two servers with SATA disks. The box load on the box every so often jumps. We see a direct correlation between the IO wait and the system usage going up. When ever the IO is high the ...
1
vote
2answers
625 views

I have killed my HDD

I have some trouble with my external USB 3.0 drive with 1Tb HDD. I had formatted it wrong way: I wrote /dev/sdb instead /dev/sdb1, and now I have no ability to use this drive. fdisk /dev/sdb fdisk: ...
4
votes
0answers
324 views

How do I use the color palette (FBIOPUTCMAP)?

I am trying to track down the following issue in Debian Jessie on PowerPC. Per bogl-bterm package maintainer the issue is simply that bterm makes uses of FBIOPUTCMAP, see ref here. So before even ...
4
votes
2answers
827 views

Resizing a virtual hard drive

I found a very nice tutorial on how to create virtual hard disks, and I am considering using these for my work in order to store reliably and portably large datasets with associated processing results....
5
votes
3answers
22k views

what is the difference between seek and skip in dd command?

I am trying to read from the disk and wanted to dd command to issue every request random and check for the latency of the disk for the read operation I have used seek and skip both will that work ? ...
0
votes
3answers
58 views

I need a very small amount of Linux Utils - How should I go about selecting Distro?

I require some basic utils like ls, dd, zip, and fdisk so that I can clone a HD of a Windows Machine. I will be using Linux only for this dd clone, then shutting down. Rather than booting up a ...
4
votes
2answers
1k views

Possible to pause dd, swap out destination to larger disk, and then continue?

I'm copying a drive to a file, but underestimated the amount of space it would take up. So I am running out of space on the destination drive, and don't want to abort the process (it's been running ...
1
vote
0answers
257 views

Restore DD Image of Bootcamp Windows to OSX

I made a DD image of my bootcamp partition before I wiped my computer. I restored with Time Machine and everything is great but I can't seem to get my running bootcamp partition back to a running ...
2
votes
0answers
362 views

dd command 4M block size - buff cache

dd if=/dev/urandom of=file1 bs=4M count=100 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ ---timestamp--- r b swpd free buff cache si so bi bo ...
0
votes
1answer
684 views

restore disk backup by writing only non-zero blocks

Assuming you have a disk backup in raw format sda.img and /dev/sda is initially filled with zeroes, how to skip zeroes while restoring the backup? An analog of dd should detect zero block in input ...