<quote name="AJ ONeal" date="Tue, 13 May 2008 at 21:02 -0600">
> ddrescue interprets 28Gi as 28 gigabytes and 28G as 28 billion bytes
> photorec has a similar way of doing things.
> I say gb for real gigabytes and darn-corporate-america for fake gigabytes
> 
> The dead-drive.28.dd is 80 billion bytes or 75gb and the first 28gb of that
> is just a bunch of 0s
> (it turns out that ddrescue didn't quit 5gb short, it just read the last
> sector of the drive as an error rather than the end of the drive)
> 
> I want to truncate the first file (which is over 28gb) to exactly 28gb and
> stitch it in place of the leading zeros on the 75gb file.

You can just use dd to copy the first 28gb of the first file into the
first 28gb of the second, without truncating the first. I'll let you ask
for details if you need em, as it seems you've already got it all done.

Von Fugal
-- 
Freedom is Popular
http://www.ronpaul2008.com

Attachment: signature.asc
Description: Digital signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to