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.
-- 
looking for a job doing pike programming, sTeam/caudium/pike/roxen training,
sTeam/caudium/roxen and/or unix system administration anywhere in the world.
--
pike programmer   travelling and working in europe            open-steam.org
unix system-      bahai.or.at                       iaeste.(tuwien.ac|or).at
administrator     (stuts|black.linux-m68k).org                  is.schon.org
Martin B�hr       http://www.iaeste.or.at/~mbaehr/

Reply via email to