Questions tagged [dd]

dd is a traditional utility for binary data copies

117 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
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 ...
1
vote
0answers
219 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 ...
1
vote
0answers
311 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 ...
1
vote
0answers
259 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 ...
1
vote
0answers
659 views

dd and cat both reporting no space left on device

I have a windows 8.1 Pro laptop with a 500GB HD and a 500GB portable USB HD. I boot up my laptop with a linux live CD so that I can use dd or cat. Testing cat: cat /dev/sda > /dev/sdc cat: write ...
1
vote
0answers
27 views

Is it feasible to fill a ntfs partition/device pre install with zeroess?

In my question about copying with dd one of the commentors pointed out the method of filling the unused space with 0s. Is there a way for a dd of a 80 GB hard drive to be minimal in size? Now after ...
1
vote
1answer
608 views

I/O Failure when overwriting entire disk

I'm trying to write random data over a partition on my local hard disk. I'm booted into a recovery live CD (Clonezilla) and have tried the following: $ dd if=/dev/urandom bs=1024 count=4 | base64 | \ ...
1
vote
0answers
680 views

Restore errors: “bad header/extent: invalid magic - magic 1701”

I'm testing these instructions to restore a backup image to an Intel Edison from a previous .img image. The backup line was: dd if=/dev/mmcblk0 of=sd/ubilinux_image.img I removed a file (to see if ...
1
vote
0answers
266 views

Write shrunken .img file to device file

I have a backup image of a device file /dev/sda3 that I created using: dd if=/dev/sda3 of=~/sda3.img. The image is very large, so I have re-sized it to remove empty space. My question is can I ...
1
vote
1answer
1k views

cant run dd command on android device

The main objective is to send a splited file to an android and join it back up with a .sh script, the file is splited to 5MB parts but its total size is unknown (trying to make an universal script), I'...
1
vote
0answers
2k views

USB Stick recognized but not mountable

I have a USB Stick which is recognized by my laptop but there is no partition to mount. The device is listed in /dev/ as sdb but no partition /dev/sdb1. fdisk -l also displays nothing about /dev/sdb. ...
1
vote
0answers
923 views

Overwritten superblock and dd backup files recovery

Good day, yesterday I tried to extend my swap partition ('cause suspend/hibernation didn't work) and I needed to decrease size of my debian linux disk (I don't ever remember if it was ext2/et3 or what)...
1
vote
0answers
1k views

RedHat machine will not boot when video card is removed

I "inherited" RH 6.4 on a computer with an nVidia video card. I took the image and dd'd it to another computer that has the same hardware. By design, the second computer will be headless. This ...
1
vote
1answer
75 views

Can the BS option cause data inconsistency with dd?

I have a laptop partition (truecrypt) backed up with dd since it's impossible to back it up with anything else but do a raw bit by bit copy like: dd if=/dev/sda of=imagefile.img I can of course ...
1
vote
0answers
556 views

how to write dd command to replace backup image of root partition?

I have installed rhel6.5 in my pc. After that I have changed some configurations in file system. now I have taken backup image of /dev/sda1 which is a root partition of 15gb in size using the command ...
1
vote
0answers
300 views

dd over smb to reformat ntfs as ext3

I've been told it's possible to use dd to reformat a portion of a Windows share drive from NTFS to ext3. I'd like to do this to be able to preserve permissions when using rsync for backups, but I ...
1
vote
0answers
47 views

Disk copying with two OS on it

I want to change HDD in my laptop to bigger one. I have installed WIN XP and Mageia Linux and GRUB version 1 as the bootloader. I want to use procedure, such as below, for copying and changing disk: ...
1
vote
0answers
55 views

For what are disk signatures being used for by GNU/Linux (distributions) / grub?

I am talking about disk signatures in context of the MBR. The area from 441 to 445 bytes. For what does the GNU/Linux kernel, GNU/Linux distributions usually use disk signatures for? I only found ...
1
vote
2answers
610 views

Debian: Create compressed Harddrive for copy

On my Debian system I have a box with certain configuration settings that I like but I've had to change them continuously. There have been times that I've gotten into a some-what irreversible position....
1
vote
0answers
321 views

dd primary partition slow transfer rate

Can someone explain me why if backup ,using dd, a primary partition to a primary partition on other disk the transfer rate (MB/s) is significantly slower compared to the the rate I have if the ...
1
vote
1answer
222 views

Filesystem not showing correct size in Mac OSX

I installed a new HDD and transferred my old data to it by using dd on my old HDD and then dd again to the new HDD. However, when booting from the new HDD, it does not recognize the new, larger disk ...
1
vote
2answers
976 views

Can't clone hard disk with dd no space left

I am trying to move elementary OS from primary HDD to external HDD. So, I can boot elementary OS from external HDD and install Windows 10 on primary HDD. Hewbot on super user stackexchange suggested ...
0
votes
0answers
20 views

DWM broken after dd on Arch Linux

I have been trying to take a backup/copy of my GPT disk on one computer and then restore it on another. When I start the new computer, it seems as though the Arch Linux part of it is running fine, ...
0
votes
0answers
23 views

USB stick with hidden capacity?

While using dd on my USB drive, the USB drive accidentally got unplugged. The max capacity is 8GB, and 5GB had been written to it. Now, when I try to reformat the USB drive or even remove all ...
0
votes
2answers
48 views

dd command - can it show record size when reading from tape

I have data on tape with a variable block size. when reading these tapes I can use tcopy /dev/st0 (for example) to show the record size as it reads from tape. Ultimately I copy the data from tape ...
0
votes
0answers
33 views

New CF memory card not empty (random pattern instead of zeros)

I recently bought a 16 GB "Sandisk Ultra" Compact Flash card for my camera. I always do some testing on new storage devices before starting normal use: first some scanning, then maybe a copy of the ...
0
votes
1answer
78 views

connected old scsi disk via IDE->USB adapter, recognized in syslog but not fdisk?

I have an old hard disk I'm trying to check for data and format before recycling/donating. I'm using an IDE to USB adapter to connect the disk to my linux laptop. In my syslog I see the following ...
0
votes
0answers
225 views

Reading and writing NAND flash with dd

I have an embedded device and I'd like to backup the NAND flash. From the openwrt wiki I gathered that dd is not a suitable option for dumping. You can use dd, but the dump will be garbled. However, ...
0
votes
1answer
59 views

dd of=/dev/sdc stopped working until reboot

I use sudo dd if=file.iso of=/dev/sdc bs=1M && sync to copy yocto iso images to a flash drive. This usually works all the time without issue. Today it stopped working correctly it usually ...
0
votes
0answers
78 views

Cache behavior in dd command

I am performing some dd outputs and running in parallel vmstat: With no direct write (i.e. via cache) $ dd if=/dev/urandom of=somefile.txt bs=1M count=200 200+0 records in 200+0 records out ...
0
votes
0answers
22 views

integrity check of uboot using dd

I just upgraded uboot using dd and it boot successfully : dd if=uboot_file of=/dev/mmcblk0 bs=512 The output is : 1360+1 records in 1360+1 records out I would like to read backup to ensure every ...
0
votes
1answer
36 views

Moving an Linux OS image from a 4 GB flash drive to a hard drive

I have a small flash drive (4 GB) that has a stripped down version of Redhat Linux. I'm currently attempting to move this OS from the flash drive to a much bigger hard drive (500 GB) that is bootable. ...
0
votes
0answers
308 views

Zero Disk Space

I have a Centos 7 server with ext4 running as a KVM and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc. dd if=/dev/...
0
votes
0answers
38 views

Only write back changes when restoring a disk image with dd

Given a physical disk and an image created from it, I want to write the image back onto the physical disk, but only write the changed bytes or sectors. The use case is restoring images on an SSD - ...
0
votes
1answer
38 views

Creating OS image from the current installation

I have installed Kali Linux on my Orange Pi board from the official website and made some configuration changes on top of the default installation. I was wondering if I can create a new image, a kind ...
0
votes
0answers
23 views

What should I notice for the USB stick use as installer?

I have a few questions about the USB stick used as an installer in Linux. 1) Should I leave extra space after running dd? So for Windows user, you might be familiar with rufus, with rufus you can ...
0
votes
0answers
56 views

Best way to move data with overlap towards the end on same device

I have a rather big disk that's pretty full. I need a new partition at the start of this disk. So I need to move the data towards the back of the disk somehow. Usually I do such things with dd, but ...
0
votes
0answers
632 views

Debian LiveUSB created with `Rufus` (windows) works but not when created with `dd`

I am trying to create a bootable USB using the hybrid iso image of debian from https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/9.3.0-live+nonfree/amd64/iso-hybrid/ ...
0
votes
1answer
35 views

Clone Drive with only Partitioned Space

I'm trying to save disk space with drive images, but all of the examples that I could find involve filling empty space with zeros and compressing the resulting image. Not all programs will work with ...
0
votes
0answers
133 views

What is dd doing at the end of copying an image to disk

Today I've copied a 4GB image to a SD card. I noticed that copying the image took about 421 seconds. It showed it had copied 4294967296 bytes. After that dd seemed to do nothing but the command prompt ...
0
votes
0answers
135 views

After dd, /dev/sdb is not being detected as a block device

After i dd a RPI emmc image, the emmc sometime does not get flashed properly and then I get to see something strange. $ ls -l /dev/sdb* -rw-r--r-- 1 root root 306184192 10月 9 15:34 /dev/sdb brw-rw---...
0
votes
1answer
242 views

how to place custom bootloader in floppy image

So I am creating a custom bootloader: nasm -f bin boot.asm -o boot.bin It is 512 bytes. How do I place this into a floppy image and boot with qemu? I tried: dd if=boot.bin of=floppy.img bs=512 ...
0
votes
0answers
73 views

copying content using dd

I just copied the content of a 4 TB hard drive (NTFS partition) to a span of 2 drives (LVM) 5TB ext4 partition. I copied it using dd if=/dev/input of=/dev/output/. Everything work perfectly except ...
0
votes
1answer
278 views

Add scound Linux OS dual with Centos 7

I have been trying to add a second OS Ubuntu 16.04.2, actually I have installed Centos 7 as primary os. I download the ISO file of Ubuntu and load it to USB drive using the DD. I tried to boot ...
0
votes
1answer
129 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.
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
474 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 ...
0
votes
1answer
697 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 ...
0
votes
1answer
123 views

Clone disk of a running VM and run it on VirtualBox

I'm in the following situation: I need to "clone" the disks (sda, sdb) of a running CentOS VM over SSH (i did this step by following this guide) and deploy them on something like VirtualBox. I tried,...