Linked Questions

-1
votes
2answers
66 views

Why is .img file so much larger than the actual disk?

I'm trying to figure out why my disk image is so much larger. Here is the source server's disks: root # df -h Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /...
20
votes
4answers
6k views

Got “No space left on device” when cloning 1TB disk to 1.2TB disk using dd

I am trying to using the following dd command to clone remote xfs disk to another location. ssh root@source_ip "dd if=/dev/vda2 bs=16M conv=noerror,sync status=progress " | sudo dd of=/dev/nvme1n1 ...
0
votes
1answer
59 views

Duplicating an image to another machine?

I'm trying to duplicate the entire environment on one machine to another. Will simply copying all files from the source machine to the destination one work? My main concern is that typically, when ...
5
votes
2answers
424 views

How do I make an image of my entire USB flash drive?

The message below comes from another post and I tried it the way that they stated to. First, I mounted the USB drive: sudo mount -o ro,noexec /dev/sdb1 /media I mounted it as read-only to prevent ...
3
votes
1answer
2k views

How to dd a local disk unto a remote disk?

I have a local machine that needs be migrated to remote disk. How can I do it with dd? I know local format for command dd if=/dev/sdx of=/dev/sdx count=x bs=x But how to do it via ssh direct from ...
8
votes
4answers
16k views

How can I clone/backup/restore Windows 10 from Linux?

Case scenario: $ sudo fdisk -l Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (...
2
votes
1answer
5k views

How to speed up dd on macOS High Sierra?

I was trying to create bootable USB of Ubuntu 17.04. First, I erased everything from the pen drive and then started to copy using sudo dd if=path_to_ubuntu_image of=/dev/rdisk2 but it is taking around ...
8
votes
3answers
2k views

How to prevent dd's progress from being meaningless on Linux?

When running dd command to copy an ISO on Linux, I get a single progress print that stays open for a long time (many minutes). Then another at the end. The problem seems to be that a very large cache ...
31
votes
12answers
15k views

Erasing a Linux laptop

I have a laptop with Debian on it, and I am going to sell this laptop. Would it suffice to erase the Debian installation before selling it to completely clean up my laptop from my personal data, and ...
18
votes
5answers
9k views

Does dd do any kind of verification?

I'm using dd to copy data from an old hard drive to a new one. I want to be sure that the data's integrity is secure. On this answer, Gilles says If [dd] terminated successfully, then the backup ...
0
votes
2answers
2k views

Backup data of a live USB

I have a USB (8.0 GB, kingston) and inside it a Kali Linux image. I often used it in live mode w/ persistence, and I have some data there (plus config of the whole system) that I obviously don't want ...
9
votes
1answer
17k views

What is the difference between `dd`, `cp` and `rsync`? [closed]

Besides the explanations from the man pages and --help information, in which way do the commands dd, cp and rsync differ when used to copy files? In which context is each of these superior to the ...
1
vote
2answers
369 views

optimum value for bs in 'dd' for chrooted linux?

I am trying to install chrooted debian (arm64) on my android phone(snapdragon650 & 3GB RAM). I found many tutorials for it. Almost all the guides mentioned this cmd for creating img for chrooted ...
21
votes
4answers
30k 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 in federo. dd if=/dev/sda of=/dev/sdb I have tried the same on a Unix(HP-UX) system ...
3
votes
2answers
148 views

Which command produces more data per second?

Which command produces more data per second? This could be useful to quickly fill a file with garbage data or to test data transfer rates. So far, I found that "/dev/zero" is the quickest one. $ cat /...

15 30 50 per page