Martin B�hr wrote:

On Sun, Aug 08, 2004 at 12:40:48PM +1200, Matthew Gregan wrote:


How does a pipe not mean copying the file? In this case I can't copy
the file, as it contains a disk I/O error 2GB into a 4GB file. To keep
the error contained in a small file I chopped the end, but wouldn't
mind getting another 2GB of usable disk space back from the front. Of
course I could just stop playing and write over it.



run fsck with a badblock check. if there is one bad bock, there may be more, the check will find them all and add them to the bad block list.



But going back to the generic 'can I truncate the beginning of a file'
question, the answer is (as has been said): not easily. Some systems
will provide an alternative to the {,f}truncate library calls that allow
you to do this, but it's not portable, and requires filesystem-specific
support to do it.



would be nice though for large media data, being able to split and join files without ever needing to copy the data around.

greetings, martin.


Woah there... 2GB into a 4GB file? Which filesystem are you using... some can only support 2GB max files.

Steve

Reply via email to