1847209 Members
7485 Online
110263 Solutions
New Discussion

tar

 
SOLVED
Go to solution
Dagmar Bendová
Advisor

tar

Hallo, I have created an archive at OS RedHat 7.2 than I wanted to make untar the archive at OS HP-UX 11.00 with this mistake:

ork/README_ASO.htm, 45736 bytes, 90 tape blocks
x ././@LongLink, 114 bytes, 1 tape blocks

Can you help me? Thanks
xx
14 REPLIES 14
Devender Khatana
Honored Contributor

Re: tar

Hi,

Yes you can extract the contents on HP-Ux. Just give "tar -xvf /pathtofile" or just "tar -tvf pathtofile" to check acchive.

HTH,
Devender
Impossible itself mentions "I m possible"
Dagmar Bendová
Advisor

Re: tar

I have tried to extract the archive on HP-UX 11.00 with mistake:

x ././@LongLink, 114 bytes, 1 tape blocks

xx
Robert-Jan Goossens
Honored Contributor
Solution

Re: tar

Dagmar,

Think you should use Gnu Tar for hpux.

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15/

Regards,
Robert-Jan


Devender Khatana
Honored Contributor

Re: tar

Hi,

From the post I could not understand what command you typed by mistake. And what happened to the file. Did you created with absolute path or relative path.

HTH,
Devender
Impossible itself mentions "I m possible"
Dagmar Bendová
Advisor

Re: tar

OK.
1. RH 7.2: tar cvf a.tar a
2. HP-UX 11.0: tar xvf a.tar
mistake: x ././@LongLink, 114 bytes, 1 tape blocks

I use relative path.
xx
Dagmar Bendová
Advisor

Re: tar

There is no link for depot for HP-UX 11.00 on the page http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15/
Thanks.
xx
Alex Lavrov.
Honored Contributor

Re: tar

You can install a depot from 11.11, I think it will work. Try it, the worst case it won't install it.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
H.Merijn Brand (procura
Honored Contributor

Re: tar

Why try something that won't work.

Fetch a real 11.00 build from my site:

http://mirrors.develooper.com/hpux/tar-1.13.25-pa2.0

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: tar

OK, I just uploaded a 64bit tar-1.15.1 depot for 11.00

Currently just at cmve available, but the others will sync up soon

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ralf Seefeldt
Valued Contributor

Re: tar

Hello Dagmar,

when extracting your tar archive you get the message:
x ././@LongLink, 114 bytes, 1 tape blocks

- Is there a file created in your working directory (there where you are, when you type the tar xvf ... , that is named '@LongLink' and that is 114 byte long?

If yes, tar is doing what it tells you it is doing.

- Should the tar archive contain such a file?

If not, where are the errors? In the filename, filesize, accessdate, filecontent?

- That strange ././ looks weird but I guess, this is a minor problem because it works OK.

Is that right?

Regards
Ralf
H.Merijn Brand (procura
Honored Contributor

Re: tar

BTW ././@LongLink is a file that GNU tar indicates that long filenames are allowed. You can safely remove it after the tape/archive is extracted. The file/link does not contain any information that is needed for the rest of the system

Also look at the timestamp. it is always set to 0 (the unix epoch)

The behaviour is not documented, neither in tar's manpage, nor in the info pages. Even in the sourcecode, there is no obvious clue what it's done for:

--8<---
/* Write a GNUTYPE_LONGLINK or GNUTYPE_LONGNAME block. */
static void
write_gnu_long_link (struct tar_stat_info *st, const char *p, char type)
{
size_t size = strlen (p) + 1;
size_t bufsize;
union block *header;
char *tmpname;

header = start_private_header ("././@LongLink", size);
FILL(header->header.mtime, '0');
FILL(header->header.mode, '0');
FILL(header->header.uid, '0');
FILL(header->header.gid, '0');
FILL(header->header.devmajor, 0);
FILL(header->header.devminor, 0);
uid_to_uname (0, &tmpname);
UNAME_TO_CHARS (tmpname, header->header.uname);
-->8---

http://www-unix.globus.org/mail_archive/discuss/2002/10/msg00352.html


Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Dagmar Bendová
Advisor

Re: tar

Thanks for your answers. If I understand you well. Some of you think It is only attention that I want to archive file which his path is greater than 114 byte. Some of you think it is error and gnu tar is needed for extracting.
xx
H.Merijn Brand (procura
Honored Contributor

Re: tar

No, not quite. THERE IS NO ERROR.

You've just extracted ././@LongLink
A file of 114 bytes
Nothing wrong with that.
You can remove the file.
You probably just didn't expect that file in tha archive, in which presumption you could be right.

Some people also think you should asign points.
I have assigned points to 9 of 38 responses to my questions.
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=BR793443&listType=unassigned&forumId=1

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Dagmar Bendová
Advisor

Re: tar

thank you for your point's attention. I ve filled it in.
xx