[svlug] Weird problem with tar (w/ floppy only)

Karsten M. Self kmself at ix.netcom.com
Wed Sep 26 15:24:01 PDT 2001


on Wed, Sep 26, 2001 at 03:10:15PM -0700, Robert Hajime Lanning (lanning at lanning.cc) wrote:
> ---- As written by Ivan Passos:
> > Hello,
> > 
> > I'm trying to "compress tar" a directory into a floppy, with the following
> > command:
> > 
> > 	tar czvf /dev/fd0 dir_name
> > 
> > This works fine. However, when I try to extract the floppy contents with
> > the command:
> > 
> > 	tar xzvf /dev/fd0
> > 
> > , I get the following error in the end:
> > 
> > gzip: decompression OK, trailing garbage ignored
> > tar: child returned status 2
> > tar: error exit delayed from previous errors
> > 

> What you can do to limit the warning message is pipe the data to tar
> from something like dd.
> 
> If the tar file is 300KB then something like this would work:
> 
> $ dd if=/dev/fd0 bs=1k count=300 | tar xzvf -

Note the disadvantage of this method:  the user needs to know the size
of the file being extracted.  By null-filling the floppy first, this is
avoided.

Peace.

-- 
Karsten M. Self <kmself at ix.netcom.com>        http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?              Home of the brave
  http://gestalt-system.sourceforge.net/                    Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA!  http://www.freesklyarov.org
Geek for Hire                      http://kmself.home.netcom.com/resume.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.svlug.org/archives/svlug/attachments/20010926/39198030/attachment.bin


More information about the svlug mailing list