<---- template headericclude ----->
tar: multi-volume archives
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    1xused Guest

    tar: multi-volume archives [Solved]

    Looking at the tar man page, it seems I should be able to make multi-volume archives using tar. I planned to create the different volumes first, then use them as I wished. I cd'd to a mounted flash drive and used:
    Code:
    $ tar -cMvf multi.tar ~/bigfile
    After the first volume was created, I moved it off the drive to my home folder and renamed it multi.p1.tar. I did something similar with the rest of the volumes. When I tried to untar the archive, just to make sure it'd work, it didn't.
    Code:
    $ tar -xMvf multi.p1.tar
    home/user/bigfile
    Prepare volume #2 for `multi.p1.tar' and hit return: ?
     n name        Give a new file name for the next (and subsequent) volume(s)
     q             Abort tar
     y or newline  Continue operation
     !             Spawn a subshell
     ?             Print this list
    Prepare volume #2 for `multi.p1.tar' and hit return: n multi.p2.tar
    tar: This volume is out of sequence
    Prepare volume #2 for `multi.p2.tar' and hit return:
    I tried all the volume names to be sure, but it said the same thing for each. I deleted the archive and tried remaking it, then untarring it again. The same thing happened. What am I doing wrong? If tar -M doesn't do what I think it does, is there another tool (hopefully already installed by default) that can work with multi-volume archive files?
    Last edited by 1xused; 10th November 2007 at 08:47 AM. Reason: clarity

  2. #2
    1xused Guest

    -L Works, although can't figure out why

    I decided to try using 'tar -L #' to make the archive instead. I don't know why that worked when -M didn't, but it did.
    Code:
    $ tar -cvL 262144 -f ~/bigfile multi.p1.tar
    home/user/bigfile
    Prepare volume #2 for `multi.p1.tar' and hit return: n multi.p2.tar
    $ tar -xMvf multi.p1.tar
    home/user/bigfile
    Prepare volume #2 for `multi.p1.tar' and hit return: n multi.p2.tar
    $
    I wrote again instead of deleting my first post because I thought someone else may be able to use this. An admin can delete this if he or she thinks otherwise.
    Last edited by 1xused; 10th November 2007 at 08:49 AM.

Similar Threads

  1. The multi-OS, multi-boot GRUB guide (Windows included!)
    By Firewing1 in forum Guides & Solutions (Not For Questions)
    Replies: 35
    Last Post: 14th July 2009, 08:03 AM
  2. rar archives
    By frankje in forum Using Fedora
    Replies: 2
    Last Post: 19th April 2007, 07:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]