Professional Web Applications Themes

Mount a tar archive? - FreeBSD

Hello! I have a 80G tar archive which I have nowhere to extract to. Could I mount it as a filesystem? Read-only would suffice. Thanks, Andrew P....

  1. #1

    Default Mount a tar archive?

    Hello!

    I have a 80G tar archive which I have nowhere to
    extract to. Could I mount it as a filesystem?
    Read-only would suffice.

    Thanks,
    Andrew P.
    Andrew Guest

  2. #2

    Default Re: Mount a tar archive?

    On Wed, Mar 30, 2005 at 10:28:02PM +0400, Andrew P. wrote: 

    No, but of course you can access files within it using tar(1) without
    having to extract them to disk (by extracting to stdout).

    Kris

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCSvPhWry0BWjoQKURAhb2AKDV+N7Tie1GRdnHdi9GXX d4hfhWNACff58b
    yRHoJ76CZq+HXj93aYyF3TM=
    =OUAs
    -----END PGP SIGNATURE-----

    Kris Guest

  3. #3

    Default Re: Mount a tar archive?

    Andrew P. wrote:
     

    Andrew,

    Short of that solution, why not tar -t to get a list of files in the
    archive, then you can tar -x the files you actually want.

    You ought to be able to:
    tar -t foo.tar > list.txt
    edit list.txt
    cat list.txt | xargs tar -x foo.tar

    -danny

    --
    http://dannyman.toldme.com/

    Danny Guest

  4. #4

    Default Re: Mount a tar archive?

    Andrew P. wrote: 

    That's actually a pretty neat idea, although I don't know that such a
    capability is available. Hmm. Emacs has a special mode for accessing the
    contents of a tarball which might be helpful in other cirstances, but I
    suspect that an 80GB file is going to be too big for it to handle.

    In the meantime, you might be able to use "tar tf" to see the contents of this
    monster tarball, and you could then extract smaller pieces from it if need be,
    rather than having to deal with the entire thing all at once.

    --
    -Chuck
    Chuck Guest

  5. #5

    Default Re: Mount a tar archive?

    Danny Howard wrote: 
    >
    >
    > Andrew,
    >
    > Short of that solution, why not tar -t to get a list of files in the
    > archive, then you can tar -x the files you actually want.
    >
    > You ought to be able to:
    > tar -t foo.tar > list.txt
    > edit list.txt
    > cat list.txt | xargs tar -x foo.tar
    >
    > -danny
    >[/ref]

    The archive is actually part of my music collection on
    a headless fileserver. I would like to share it with
    samba. It's a pity that FreeBSD doesn't have linuxish
    arcfs or tarmount, but that sort of thing is not really
    needed very often.

    Thanks to all for your kind help!
    Andrew P.
    Andrew Guest

  6. #6

    Default Re: Mount a tar archive?

    On Wed, 30 Mar 2005 23:40:55 +0400, Andrew P. <ru> wrote: 
    > >
    > >
    > > Andrew,
    > >
    > > Short of that solution, why not tar -t to get a list of files in the
    > > archive, then you can tar -x the files you actually want.
    > >
    > > You ought to be able to:
    > > tar -t foo.tar > list.txt
    > > edit list.txt
    > > cat list.txt | xargs tar -x foo.tar
    > >
    > > -danny
    > >[/ref]
    >
    > The archive is actually part of my music collection on
    > a headless fileserver. I would like to share it with
    > samba. It's a pity that FreeBSD doesn't have linuxish
    > arcfs or tarmount, but that sort of thing is not really
    > needed very often.
    >
    > Thanks to all for your kind help!
    > Andrew P.
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "org"
    >[/ref]


    Can't GNOME-vfs do this?
    Josh Guest

  7. #7

    Default Hurd translators for FreeBSD (was Re: Mount a tar archive?)

    On Wed, Mar 30, 2005 at 11:40:55PM +0400, Andrew P. wrote: 

    FWIW, the Hurd has a capability to attach a "translator"
    anywhere on a file system. By "translator", they mean
    a user land file system server. It's kind of mounting
    a process instead of a device on an arbitrary mount
    point. Actually, they borrowed and extended the idea
    from BSD's portalfs!

    If FreeBSD had something similar (e.g. by extending portalfs),
    it would be quite easy to write a tarfs translator, at least
    in read-only mode.

    Of course, one could always write a kernel module for this the
    classic Linux way, but it won't be so neat and flexible as a
    user land application!

    Regards,
    -cpghost.

    --
    Cordula's Web. http://www.cordula.ws/
    cpghost@cordula.ws Guest

Similar Threads

  1. Archive::Tar
    By Jim Schueler in forum PERL Modules
    Replies: 0
    Last Post: August 14th, 03:41 PM
  2. [PHP-DEV] PHP archive
    By Cristiano Duarte in forum PHP Development
    Replies: 4
    Last Post: August 6th, 04:31 PM
  3. Archive
    By Scott McMillan in forum SCO
    Replies: 0
    Last Post: July 25th, 12:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139