[TriLUG] Truncating a file

Joshua Gitlin josh at glowfilms.com
Sat Jan 24 17:56:34 EST 2004


Hello TriLuggers,

I'm looking for a utility that will truncate a file... Basically, I'm 
using dd to copy data from one drive to another: I know the block on 
the first drive where the data starts, but the problem is that the data 
isn't an integral number of 512-byte blocks... so, after using dd, I 
need a way to "chop off" the extra bytes from the end of the file. 
(Specifically, what I'm trying to do is recover a DVD-sized image from 
a damaged drive...). Does this make any sense?

-Josh

-----------
Due to the recent increase in spam and falsely sent email, I now PGP 
Sign all of my outgoing mail to prove my identity. This means that you 
will see an attachment called "PGP.sig" with this message. This 
attachment can be used to prove that I am who I say I am. If you are 
not familiar with PGP, you can safely ignore it. For more information, 
please visit http://www.pgp.com/ or http://www.gnupg.org/



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040124/bc1204f6/attachment.pgp>


More information about the TriLUG mailing list