Anyway to extract a large file from EXT2FS filesystem?

Tim Robbins tjr at freebsd.org
Wed Feb 18 05:47:15 PST 2004


On Tue, Feb 17, 2004 at 02:04:06PM +0100, Stefan Krantz wrote:

> 
> > > > > > I would like to extract a large (11GB) tar file on an ext3 filesystem. But
> > > > > > it shows only to be about 3gb large:
> > > > > >
> > > > > > yabba# ls -la pictures.tar
> > > > > > -rw-r--r--  1 root  wheel  3317055488 Feb 15 19:03 pictures.tar
> > > > > >
> > > > > > Is there any possible way to extract the file?
> > > > >
> > > > > It shouldn't be appearing truncated.  Are you certain that this size
> > > > > is incorrect, and the file has a different size when viewed from
> > > > > another OS?
> > > >
> > > > Yes. Yesterday I tested the archive with "tar tvf" (11gb) in
> > > > Linux and it tested OK. In FBSD it says "unexpected EOF".
> > > >
> > > > If I could i would just boot linux and split the file. But I can nolonger
> > > > boot linux =/ (migrated to fbsd 5.2 ;).
> > >
> > > I'm CC'ing tjr and bde, who might have some idea about the problem.
> >
> > Try this patch and let me know how it goes.
>
> This patch worked great!

Thanks for testing it - I'll commit a slightly improved version shortly.


Tim


More information about the freebsd-questions mailing list