Shell How to mount Solaris .zlib archive on FreeBSD?

  • Thread starter Deleted member 66267
  • Start date
D

Deleted member 66267

Guest


I want to write a shell script that involved of mounting a Solaris .zlib archive. If there is no way to mount it then just able to extract it to a directory is enough.
 
OP
D

Deleted member 66267

Guest


According to this, these .zlib files are simply compressed iso images. But when I tried to extract it as an archive with many different commands, all failed.

Code:
gunzip solaris.zlib
gzip: solaris.zlib: unknown suffix -- ignored
Code:
unzip solaris.zlib
Archive:  solaris.zlib
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of solaris.zlib or
        solaris.zlib.zip, and cannot find solaris.zlib.ZIP, period.
Code:
bzip2 -d solaris.zlib
bzip2: Can't guess original name for solaris.zlib -- using solaris.zlib.out
bzip2: solaris.zlib is not a bzip2 file.
Code:
xz -d solaris.zlib
xz: solaris.zlib: File format not recognized
Code:
tar xf solaris.zlib
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
I'm out of ideas now.
 
OP
D

Deleted member 66267

Guest


According to this, these .zlib files are simply compressed iso images. But when I tried to extract it as an archive with many different commands, all failed.
These commands were run on Linux. I think the tools are cross platform but I tried on my FreeBSD VM anyway:

Code:
gunzip solaris.zlib
gunzip: solaris.zlib: unknown suffix -- ignored
Code:
unzip solaris.zlib
unzip: Unrecognized archive format
Code:
bzip2 -d solaris.zlib
bzip2: Can't guess original name for solaris.zlib -- using solaris.zlib.out
bzip2: solaris.zlib is not a bzip2 file.
Code:
xz -d solaris.zlib
xz: solaris.zlib: File format not recognized
Code:
tar xf solaris.zlib
tar: Error opening archive: Unrecognized archive format
 
OP
D

Deleted member 66267

Guest


Also tried with 7z but no luck:

Code:
7za x solaris.zlib

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,4 CPUs x64)

Scanning the drive for archives:
1 file, 194526720 bytes (186 MiB)

Extracting archive: solaris.zlib
ERROR: solaris.zlib
Can not open the file as archive

    
Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0
 

usdmatt

Daemon

Reaction score: 586
Messages: 1,528

Note that the gunzip commands all gave up immediately just because of the file extension and didn’t actually try to extract anything.

Not that I would expect it to work though. If it was a gzip then the file command would of identified it.

Looking online brings up a load
of unrelated stuff but looks like it might be compressed and stored in a simple container format that has extra metadata,etc. therefore you’d need something that understands the container format enough to be able to extract the compressed data first, then you could uncompress it (assuming it uses a fairly standard compression format).
 
OP
D

Deleted member 66267

Guest


Note that the gunzip commands all gave up immediately just because of the file extension and didn’t actually try to extract anything.

Not that I would expect it to work though. If it was a gzip then the file command would of identified it.

Looking online brings up a load
of unrelated stuff but looks like it might be compressed and stored in a simple container format that has extra metadata,etc. therefore you’d need something that understands the container format enough to be able to extract the compressed data first, then you could uncompress it (assuming it uses a fairly standard compression format).
The tool created these .zlib archives is lofiadm:

 
Top