[Arm-dev] Solved Re: Making an image

Fri Mar 3 04:58:26 UTC 2017
Robert Moskowitz <rgm at htt-consult.com>

# dd if=/dev/sdb of=cubietruck.img bs=512 count=6268927

6268927+0 records in
6268927+0 records out
3209690624 bytes (3.2 GB, 3.0 GiB) copied, 114.435 s, 28.0 MB/s

So now I have a checkpoint image of my server setup.

On 03/02/2017 05:39 PM, Robert Moskowitz wrote:
> I looked at output from writing the image:
>
> sudo dd of=/dev/sdb bs=4M; sync
> 0+346813 records in
> 0+346813 records out
> 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 147.907 s, 21.8 MB/s
>
> Would this be what I want:
>
> dd if=/dev/sdb of=cubietruck.img bs=4M count=346813
>
>
>
> On 03/02/2017 04:33 PM, Robert Moskowitz wrote:
>> Can I have a little help making an image via dd, and then compressing 
>> it?
>>
>> I want to save 'checkpoints' of my build process, so that when I have 
>> to go back, I do not have to go all the way back to the base image.
>>
>> I have built my basic image (I will be updating my howto, found a few 
>> bugs), and fdisk reports:
>>
>> Disk /dev/sda: 120.0 GB, 120034124288 bytes, 234441649 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk label type: dos
>> Disk identifier: 0x0000c89d
>>
>>    Device Boot      Start         End      Blocks   Id  System
>> /dev/sda1            2048     1026047      512000   83  Linux
>> /dev/sda2         1026048     2074623      524288   82  Linux swap / 
>> Solaris
>> /dev/sda3         2074624     6268927     2097152   83  Linux
>>
>> Obviously, I do not want to dd the whole 120GB, as I am still only 
>> using 4GB, though I will probably have to enlarge sda3 a bit to hold 
>> all the software I need.  I did this a couple years back, but can't 
>> find my notes.  :(
>>
>> thanks
>>
>> _______________________________________________
>> Arm-dev mailing list
>> Arm-dev at centos.org
>> https://lists.centos.org/mailman/listinfo/arm-dev
>>
>
> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev
>