Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* tar and multiple volume archives
@ 1999-05-01  4:00 Stefan Winkler
  1999-05-03  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Winkler @ 1999-05-01  4:00 UTC (permalink / raw)


Hi,
i need to copy a large file on multiple floppy disks with tar.
GNU tar works fine with -M switch, but DEC UNIX 4.0D tar
doesn't know this option. Can anybody help?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tar and multiple volume archives
  1999-05-01  4:00 tar and multiple volume archives Stefan Winkler
@ 1999-05-03  4:00 ` Serguei Patchkovskii
  1999-05-03  4:00   ` Stefan Winkler
  1999-05-04  4:00   ` Matthias Kring
  0 siblings, 2 replies; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-05-03  4:00 UTC (permalink / raw)


Stefan Winkler (StefanWi@t-online.de) wrote:
: i need to copy a large file on multiple floppy disks with tar.
: GNU tar works fine with -M switch, 

Uh-oh. Careful here. GNU tar *writes* multiple disks fine with 
-M switch, but I was not able to get GNU tars up to and including 
1.12 to *read* back what they wrote. In addition, GNU tar 1.11.8
supplied on the 4.0D freeware CD is plain broken, and will corrupt
archives created on NFS file systems in certain circumstances.

DU tar can handle multiple tapes just fine. I had never tried to
write floppies with it, but I would be surprized if it will not
work given the right values of -S argument (i.e. -S 2880 for 1.44
floppies).

Regards,

/Serge.P
--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tar and multiple volume archives
  1999-05-03  4:00 ` Serguei Patchkovskii
@ 1999-05-03  4:00   ` Stefan Winkler
  1999-05-03  4:00     ` Serguei Patchkovskii
  1999-05-04  4:00   ` Matthias Kring
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Winkler @ 1999-05-03  4:00 UTC (permalink / raw)


Thank you very much for your reply.
My phrasing was clumsy, sorry about that. Of course, i want to copy a large
file
(a database dump) from a DU4.0D box to a multiple floppy archive using tar.
Now, this is what i tried:

pluto:/home/winkler:ROOT 67 -> l data*
3120 -rw-rw-rw-   1 winkler  system   3186688 May  3 21:07 database.dmp
pluto:/home/winkler:ROOT 68 -> tar -cvf /dev/fd0a -S 2880 database.dmp
a database.dmp 6224 Blocks

... tar exits and does not prompt for the next disk.
Then i tried the -u switch:

pluto:/home/winkler:ROOT 69 -> tar -uvf /dev/fd0a -S 2880 database.dmp
blocksize = 20
tar: Ready for volume 2
tar: Type "go" when ready to proceed (or "q" to abort): go
tar: [offset 1m+416k+0]: Continuing
tar: Ready for volume 3
tar: Type "go" when ready to proceed (or "q" to abort): go
tar: [offset 2m+832k+0]: Continuing
tar: /dev/fd0a : This doesn't look like a tar archive
tar: /dev/fd0a : Skipping to next file...
tar: Ready for volume 4
tar: Type "go" when ready to proceed (or "q" to abort): q
tar: Aborted

... looks better, but the restored file (tar xvf...) contains only the well
known 0xF6 bytes
(from formatting) beginning at offset 1440k. Should i carry my linux box to
the pluto machine
and get the file with ftp ?






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tar and multiple volume archives
  1999-05-03  4:00   ` Stefan Winkler
@ 1999-05-03  4:00     ` Serguei Patchkovskii
  0 siblings, 0 replies; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-05-03  4:00 UTC (permalink / raw)


Stefan Winkler (stefanwi@t-online.de) wrote:
: Now, this is what i tried:

: pluto:/home/winkler:ROOT 67 -> l data*
: 3120 -rw-rw-rw-   1 winkler  system   3186688 May  3 21:07 database.dmp
: pluto:/home/winkler:ROOT 68 -> tar -cvf /dev/fd0a -S 2880 database.dmp
                                                       ^^^^
: a database.dmp 6224 Blocks

Read the manual page again. Right now, you are saying that your floppy
has 2880 feet (1.2 km) of tape using default bit density. Probably not
quite what you had in mind, right? If you'll give this command line:

tar -cvf /dev/fd0a -S 2880b database.dmp

I bet it'll work fine.

Incidentally, it is not a very good idea to use the block device - tar
will not be able to report write errors to you, and there will be a
sizeable delay between the time tar will think it wrote the data and
the time the data is actually written to the disk. It is better to use
/dev/rfd0a.

Regards,

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tar and multiple volume archives
  1999-05-03  4:00 ` Serguei Patchkovskii
  1999-05-03  4:00   ` Stefan Winkler
@ 1999-05-04  4:00   ` Matthias Kring
  1 sibling, 0 replies; 5+ messages in thread
From: Matthias Kring @ 1999-05-04  4:00 UTC (permalink / raw)


On 3 May 1999 16:38:44 GMT, patchkov@acs1.acs.ucalgary.ca (Serguei
Patchkovskii) wrote:

>Stefan Winkler (StefanWi@t-online.de) wrote:
>: i need to copy a large file on multiple floppy disks with tar.
>: GNU tar works fine with -M switch, 
...
>DU tar can handle multiple tapes just fine. I had never tried to
>write floppies with it, but I would be surprized if it will not
>work given the right values of -S argument (i.e. -S 2880 for 1.44
>floppies).

It works.
For details. see the manual (GNU tar in Linux only has this ugly and
impractical info system, but DU has (mostly) fine manual pages for
every occasion ;-)

Tip: (to whom it may concern):
Did you know, that, according to the release notes, a tar file in DU
can have a max. size of 4GB resp. 8GB ?


Matthias Kring		mkring@			matthias.kring@
			netcologne.de		ditec.de
---------------------------------------- keepyourspam@127.0.0.1 
zur gfl. Beachtung: http://www.politik-digital.de/spam/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-05-04  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-01  4:00 tar and multiple volume archives Stefan Winkler
1999-05-03  4:00 ` Serguei Patchkovskii
1999-05-03  4:00   ` Stefan Winkler
1999-05-03  4:00     ` Serguei Patchkovskii
1999-05-04  4:00   ` Matthias Kring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox