bmaptool copy skip option?

Eric Seifert eric.seifert at cyaninc.com
Tue Feb 24 11:22:17 PST 2015


Thanks Artem, that's what I was thinking, I will look into adding this
functionality.

-Eric

On Tue, Feb 24, 2015 at 10:58 AM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> Hi Eric,
>
> no, this option is missing, but it could be added. Off the top of my head,
> the idea would be to do the same thing as we do now, but at the place where
> we actually write the data, check if it is in the skipped region or not, and
> if yes, then do not write. I do not have plans implementing this, but would
> take the patch, thank you!
>
> On Tue, Feb 24, 2015 at 5:49 PM, Eric Seifert <eric.seifert at cyaninc.com>
> wrote:
>>
>> Hello, I was wondering if there is any support for skipping an initial
>> offset in the image file when copying? Much like dd skip=N option?
>>
>> This could be useful if you want to parse/split an image. A use case I
>> have would be taking a partition out of a disk image. I do this:
>>
>> dd bs=512 skip=2048 if=sda.img of=part1.img
>>
>>
>> Thanks,
>> Eric Seifert
>>
>> _______________________________________________
>> Bmap-tools mailing list
>> Bmap-tools at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/bmap-tools
>
>
>
>
> --
> Best Regards,
> Artem Bityutskiy (Битюцкий Артём)



More information about the Bmap-tools mailing list