I have a very specific kernel structure on an sd card I'd like to copy and send to a friend.
I know I can simply dd the entire SD card, but the kernel is ~2GB, which wastes the other 14GB of the disk.
Is there a way to dd just the important parts?
I know I can also dd the individual partitions, but this requires setting up an equivalent partition table on the other side, so I'd prefer to do this in a way that requires only a single dd to the child disk, regardless of the complexity of creating the parent.
dd
copies blocks of amorphous data. It looks as if you wanted to copy files. – AlexP Dec 01 '17 at 04:01dd
copies blocks of data. It has no idea of a filesystem. What makes you think that the files you want to copy are contiguous and placed at a well-known place on the disk? – AlexP Dec 01 '17 at 04:14