Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-19-2005, 01:58 AM   #1
Registered: Sep 2002
Location: Romania
Distribution: suse 9.1
Posts: 34

Rep: Reputation: 15
multiple volume archive

In Linux, how can I do a multiple disk archive of a file that for example has 4 mb and I would like to make it so that I can put it on several floppies?
Is it enough if I do tar -c -M <filename> /dev/fd0 ? or is it /dev/fd0 <filename> ? Isn't there a way I can give the amount of kb I want the multiple archives to be? Can I make it put the archives not directly on the floppy but somewhere else on the hard disk?

Old 01-19-2005, 05:47 PM   #2
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Re: multiple volume archive

The basic tar command is :
tar -c -M -f /dev/fd0 files-to-tar
or more obvious: tar --create --multi-volume --file=/dev/fd0 files-to-tar.

-f or --file tells tar which archive to read or write.

From a cursory perusal of the info manual, it doesn't appear that you can specify the size. With -M it justs writes until it runs out of space and then prompts for a new floppy.

The 'split' command will divide a file into whatever size chunks you like.

Check the info manual (not the man pages) for tar (look for 'Using Multiple Tapes' section) and the info manual for split.

Post again if you need clarification.
Old 01-19-2005, 06:26 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
There's -L ...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
divide a directory into multiple archive files with par ddaas Linux - General 1 02-26-2005 02:52 PM
Multiple same entries in volume controls or1onas Linux - Newbie 4 02-07-2005 01:21 PM
Multi-Volume tar(1) archive on CDR ViragoRider Linux - Software 0 05-14-2004 02:45 PM
Adjusting how much volume jumps with volume keys vrillusions Linux - Laptop and Netbook 2 10-17-2003 10:11 PM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 04:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration