coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using dd to prepare a file to be written to memory blocks(remove pad


From: Pádraig Brady
Subject: Re: using dd to prepare a file to be written to memory blocks(remove padding)
Date: Thu, 09 Aug 2012 00:34:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 08/09/2012 12:08 AM, Justin Mattock wrote:
> im not on the list so please cc's me, and if this is the wrong list
> for this question then let me know so I may find the right one
> to find info.
> 
> what are the tools to _prepare_ a file to be uploaded to memory(right
> now im using dd)? is there a way to not pad a file? or keep the size
> of the file without adding any padding to it so the size stays where
> it needs to be, but the info inside is aligned from start to finish
> without zero?
> 
> bassically what im looking at:
> fixed block(partition) = 9,504kb
> file that needs to be uploaded to partition = 9,216
> file padding = 288kb (how to remove this in the end of the file?)
> 
> is there a program that is capable of stretching the file(9,216) so it
> fits the partition of 9,504 or am I totally doing things wrong?

I don't understand what you mean exactly.

If you want to write data to a particular part of a file,
look at the conv=notrunc and seek=BLOCKS options.
If you want to handle zero blocks in the input specially,
note the conv=sparse option added in version 8.16

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]