From: maxed@athen (Hr. Ahrn) Subject: BUG: tar'ring off MSDOS fs Date: Mon, 22 Feb 1993 16:40:32 GMT
Hi,
Last night I saved a postscript file which I created within WINDOWS 3.1;
the dos file system is mounted as /c:/ in Linux.
I just did a
cd /c:/tmp
tar cvf /dev/fd0 gabi.ps
But look what kind of information tar wrote into its header:
0000000 67 61 62 69 2e 70 73 00 00 00 00 00 00 00 00 00 *gabi.ps.........*
0000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 *................*
*
0000060 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 30 *....0000644.0000*
0000070 30 30 30 00 30 30 30 30 30 30 30 00 30 30 30 30 *000.0000000.0000*
0000080 30 34 37 37 37 36 32 00 30 35 33 34 31 34 37 35 *0477762.05341475*
0000090 32 31 34 00 30 30 31 33 36 30 32 00 30 28 6e 75 *214.0013602.0(nu*<--
00000a0 6c 6c 29 00 00 00 00 00 00 00 00 00 00 00 00 00 *ll).............*<--
00000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 *................*
*
0000100 00 75 73 74 61 72 00 30 30 72 6f 6f 74 00 00 00 *.ustar.00root...*
0000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 *................*
0000120 00 00 00 00 00 00 00 00 00 72 6f 6f 74 00 00 00 *.........root...*
0000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 *................*
0000140 00 00 00 00 00 00 00 00 00 30 30 30 30 30 31 30 *.........0000010*
0000150 00 30 30 30 30 30 30 31 00 e8 27 77 00 00 00 00 *.0000001..'w....*<--
0000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 *................*
*
0000200 04 25 21 50 53 2d 41 64 6f 62 65 2d 33 2e 30 0d *.%!PS-Adobe-3.0.*
0000210 0a 25 25 43 72 65 61 74 6f 72 3a 20 57 69 6e 64 *.%%Creator: Wind*
..
This file could not be read anymore by any tar program I have at hand
(gnu tar; SVR4 tar;...).
I think it must be due to the fact that the stat call is insufficiently
supported for dos file systems. I am running the dos-fs version that came
with 0.99pl5 (I think it was dosfs version 0.8).
Well the solution in my case is simple: Just copy the file to /tmp and tar
it from there...- BUT I THINK THIS BUG SHOULD BE FIXED, because it's very
nasty when you make a backup and only later find out that your files are
completely unreadable.
[who's in charge?!?]
See ya,
Martin