1825792 Members
2740 Online
109687 Solutions
New Discussion

GZIP

 
YOGI_3
Frequent Advisor

GZIP

hi all...
i am not able to zip the files thats having .bkp extension.
I checked with other files having .log ext, gzip working here fine...but when i run gzip on .bkp ext file its giving -- > inca_one.bkp unknown error # inca_one is a file name which i want to zip..

thanks
There is never a wrong time to do the right things
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: GZIP

What version of gzip do you have installed?

whence gzip

what

You might try a newer version or this may be a feature.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Suraj Singh_1
Trusted Contributor

Re: GZIP

May be you can rename the file (remove the extension) and then try zipping it..
What we cannot speak about we must pass over in silence.
YOGI_3
Frequent Advisor

Re: GZIP

is this the problem with file size??
bacuase the file i am tring to zip is of above 1 GB....

Yogesh
There is never a wrong time to do the right things
Steven E. Protter
Exalted Contributor

Re: GZIP

Could be filesize if you fail out at 2 GB. Thats the max on filesystems created without the largefiles option.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: GZIP

check as whether the file is above 2gb in size for which

1.check as whether the file system supports largefiles.

2.Use gzip latest version above 1.3.1

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.5/
H.Merijn Brand (procura
Honored Contributor

Re: GZIP

What type of file is is, and - sorry to ask - do you want to compress the file, or do you want to uncompress/extract it as if it were a (compressed) archive of some sort.

First thing to do is to find out what the type of the file is:

# file blah.bkp

If that returns GZIP, BZIP2, PACK, COMPRESSED, or ZIP, you will need the corresponding utility to uncompress it

# gzip -d file.xxx
# bzip2 -d file.xxx
# unpack file.bkp (very unlikely)
# uncompress file.xxx
# unzip -l file.bkp

unzip does compress and archive in one phase, which you cannot split

Now look at the type of file.xxx

# file file.xxx

If it says TAR or CPIO

# tar tvf file.xxx
# cpio -itv
to see what the content of the archive is. If cpio comes with a phase error, try

# cpio -itvc
In all cases it's wise to use the GNU versions of the utilities, because they can deal with non-native or weird formats (other CRC checksums etc) way better than HP's native tar and cpio

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Alex Lavrov.
Honored Contributor

Re: GZIP

No one mentioned it, so:

To check largefiles support:
fsadm /path/to/filesystem

To enable largefiles support:
fsadm -o largefiles /path/to/filesystem
I don't give a damn for a man that can only spell a word one way. (M. Twain)