$ file -i [i]filename[/i]
and show output....gunzip -N ramdisk.dat
mdconfig -a -t vnode -f ramdisk.dat.inird
mount_msdosfs /dev/mdX /wherever
# gunzip -N ramdisk.dat
gunzip: ramdisk.dat: unknown suffix -- ignored
# gunzip -N ramdisk.dat > ramdisk.dat.inird
gunzip: ramdisk.dat: unknown suffix -- ignored
# gunzip -dc ramdisk.dat > ramdisk.dat.inird
# mdconfig -a -t vnode -f ramdisk.dat.inird
md0
# mount_msdosfs /dev/md0 /tmp/cc
mount_msdosfs: /dev/md0: : Invalid argument
# mount_msdosfs /dev/md0s1 /tmp/cc
. . . -z (c mode only) Compress the resulting archive with gzip(1). In
extract or list modes, this option is ignored. Note that, unlike
other tar implementations, this implementation recognizes gzip
compression automatically when reading archives.
$ tar cvzf alllogs.tgz *log
a mailman-port.log
a pkgadd.log
a postfix-postfix-2.5.9,2.tbz.log
a postfix-re-pkg_add.log
$ file alllogs.tgz
alllogs.tgz: gzip compressed data, from Unix, last modified: Thu Dec 31 20:03:53 2009
$ tar xvzf alllogs.tgz -C /tmp
x mailman-port.log
x pkgadd.log
x postfix-postfix-2.5.9,2.tbz.log
x postfix-re-pkg_add.log
$ ls -l /tmp
total 1312
[snip]
-rw-r--r-- 1 root wheel 264919 Dec 25 03:36 mailman-port.log
-rw-r--r-- 1 root wheel 917943 Dec 23 23:43 pkgadd.log
-rw-r--r-- 1 root wheel 30240 Dec 24 01:10 postfix-postfix-2.5.9,2.tbz.log
-rw-r--r-- 1 root wheel 55429 Dec 24 00:13 postfix-re-pkg_add.log
killasmurf86 said:try running$ file -i ...
on decompressed image
See what it tells you
# file -i ramdisk.dat.inird
ramdisk.dat.inird: application/x-empty
fronclynne said:Might try# mount_msdosfs /dev/md0s1 /tmp/cc
. . .
# mount_msdosfs /dev/md0s1 /tmp/cc
mount_msdosfs: /dev/md0s1: : No such file or directory
J65nko said:You use tar with the "-z" flag. From man 1 tar
An exampleCode:-z (c mode only) Compress the resulting archive with gzip(1). In extract or list modes, this option is ignored. Note that, unlike other tar implementations, this implementation recognizes gzip compression automatically when reading archives.
Code:$ tar cvzf alllogs.tgz *log a mailman-port.log a pkgadd.log a postfix-postfix-2.5.9,2.tbz.log a postfix-re-pkg_add.log $ file alllogs.tgz alllogs.tgz: gzip compressed data, from Unix, last modified: Thu Dec 31 20:03:53 2009 $ tar xvzf alllogs.tgz -C /tmp x mailman-port.log x pkgadd.log x postfix-postfix-2.5.9,2.tbz.log x postfix-re-pkg_add.log $ ls -l /tmp total 1312 [snip] -rw-r--r-- 1 root wheel 264919 Dec 25 03:36 mailman-port.log -rw-r--r-- 1 root wheel 917943 Dec 23 23:43 pkgadd.log -rw-r--r-- 1 root wheel 30240 Dec 24 01:10 postfix-postfix-2.5.9,2.tbz.log -rw-r--r-- 1 root wheel 55429 Dec 24 00:13 postfix-re-pkg_add.log
# tar xvzf ramdisk.dat -C /tmp
# ls -l /tmp
total 24
drwxr-xr-x 2 root <<<<<<< current 1024 Aug 15 2007 bin
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 dev
drwxr-xr-x 7 root <<<<<<< current 512 Aug 15 2007 etc
-rwxr-xr-x 1 root <<<<<<< current 272 Aug 14 2007 init
drwxr-xr-x 3 root <<<<<<< current 2048 Aug 15 2007 lib
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 mnt
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 proc
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 sbin
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 sys
drwxrwxr-x 2 root <<<<<<< current 512 Aug 15 2007 tmp
drwxr-xr-x 3 root <<<<<<< current 512 Aug 15 2007 usr
drwxr-xr-x 2 root <<<<<<< current 512 Aug 15 2007 var