Re: Does dd truncate?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Buettner
Date:  
To: plug-discuss
Subject: Re: Does dd truncate?
On Sat, 13 Mar 2004 02:19:48 -0700 (MST)
wrote:

> I am dealing with a bunch of xbox hard drives that I need to image from a single
> drive. The data is only on the first 8 gigs of the drive to be copied over, but
> the drive is 10 gigs total. Some of the drives that it will be copied to are 8
> gigs and some 10.
>
> so if I
> $dd if=big of=small
> then will dd just ignore the any data past the size of the smaller
> of the 2 drives?


Why don't you specify the exact size of data that you want copied? E.g,
do something like this:

    dd if=big of=small bs=8M count=1K


This will copy 8,589,934,592 bytes of data from big to small. If you
want it to be exactly 8,000,000,000 bytes, you should instead use:

    dd if=big of=small bs=8MB count=1kB


Kevin
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss