[CentOS] imaging a drive with dd

Fri Mar 3 18:14:23 UTC 2017
Robert Moskowitz <rgm at htt-consult.com>


On 03/03/2017 12:23 PM, John R Pierce wrote:
> On 3/3/2017 5:34 AM, Robert Moskowitz wrote:
>> Well, I only wanted to copy the used part of the drive which I try to 
>> keep small so I can still copy the image to an mSD card if I wish.  
>> So I have to supply the amount of the drive to copy.  The bs=512 went 
>> fast enough, but then I was only copying 3.2GB.
>>
>> thanks for the help. 
>
> personally, I would use 'dump' for ext? file systems, and xfsdump for 
> XFS.   this *just* backs up the inodes and directories, not raw blocks

But I have a single image that I can use to build a working drive. Even 
on another drive, as long as it is more that 3.2GB.  Also the partition 
table and uboot (but on Cubie's uboot, you put the uboot as the ONLY 
thing on the mSD, and it switches over to the sata for all the partitions).