Linked Questions

2
votes
1answer
1k views

What is the easiest way to clone an embedded Linux SD card?

I have a 8 GB SD card (card 1) installed with embedded Linux for PowerPC, libraries and some applications. I want to prepare another 8 GB SD card (card 2) exactly like card 1. What is the ...
5
votes
3answers
1k views

Can I overwrite LUKS partition with it's decrypted content?

I have HDD with my data (partial backup of most important data available on other HDD), currently it's formatted as Ext4 over LVM over LUKS. I want to remove LUKS layer, but reformatting and data ...
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 ...
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 ...
1
vote
2answers
1k views

How to write an alias function to make dd show progress bar?

According to this article, by replacing: $ dd if=/dev/sda of=/dev/sdb [additional options] with: $ pv -tpreb /dev/sda | dd of=/dev/sdb [additional options] one can augment the default dd behaviour ...
5
votes
2answers
425 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 ...
8
votes
1answer
1k views

stat file system sizes

With stat 8.13 on a Debian based Linux - among many others - the following FORMAT directives (--format=) are offered: In combination with --file-system (-f): %s Block size (for faster transfers) %S ...
5
votes
1answer
1k views

How can I find the last sector used by an ext4 filesystem?

I need to identify the last sector used by an ext4 filesystem so that I can move it to another device. The filesystem has been shrunk (with resize2fs) and is smaller than the partition that contains ...
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 ...
1
vote
1answer
1k views

SSH remote backup script

I am trying to backup a remote server to my machine. I am trying something like ssh user@ip "dd if=/dev/sda" | dd of=~/backup.img But that obviously doesn't work. Other variants that don't work. ...
0
votes
3answers
1k views

rsync partial LVM volume to Remote Directory

Can I rsync a full hdd partition (which is inaccessible) to a remote directory? Inaccessible means it cannot be mounted, it was part of LV volume merged with other HDD which is faulty and removed ...
0
votes
2answers
1k views

Pretty print output of “kill -USR1”-ing dd

When dd is done it prints a three line summary about the number of read and written segments, the total size and average writing speed. While it does its work, dd is awfully quiet. Not too long ago (...
0
votes
1answer
1k views

After dd completion, should records In = records out

I am using the following cmd where sda(500GB) is my laptop hd (unmounted) and sdc(500GB) is my external usb hd dd if=/dev/sda of=/dev/sdc bs=4096 When complete this returns 122096647+0 records in ...
2
votes
1answer
839 views

Cubian: NAND and Partitions

I have installed Cubian on Cubieboard using SD. After that I moved it to NAND. NAND have 4 Gb memory and I want to leave there only boot, another partitions move to the SD. Maybe leave on NAND ...
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 ...

15 30 50 per page