EnglishFrenchSpanish

Ad


OnWorks favicon

extract_compressed_fs - Online in the Cloud

Run extract_compressed_fs in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command extract_compressed_fs that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


create_compressed_fs, extract_compressed_fs - convert and extract a filesystem to/from a
cloop volume

SYNOPSIS


create_compressed_fs [ OPTIONS ] image outfile

extract_compressed_fs filename

DESCRIPTION


create_compressed_fs compresses a filesystem image to a compressed image suitable for
mounting with the cloop driver.

extract_compressed_fs uncompresses a filesystem image created by create_compressed_fs.

OPTIONS


Run the create_compressed_fs command with "-h" to get a list of available options and
description of data storages modes and advanced usage (eg. with a network cluster).
Blocksize must be a multiple of 512 bytes.

There is an alternative set of options which is supported for compatibility with the
original version of create_compressed_fs. When it's called with a pure number as output,
it assumes the old syntax and maps the default options to memory mode and the block size
to the number. -b for best mode is recognized as well.

EXAMPLES


create_compressed_fs image.ext2 image.ext2.cloop

extract_compressed_fs image.ext2.cloop | cmp image.ext2 -

mkcmd="genisoimage -joliet-long -D -r data"

$mkcmd | create_compressed_fs -s $($mkcmd --print-size)i - file.cloop

create_compressed_fs image.iso -S image.cloop.a0 - | split -b 1024m - image.cloop.

cat image.cloop.* | cdrskin -

NOTES


For optimal performance, create_compressed_fs should be used with real input and output
files.

Operation with STDIN or STDOUT is complicated. create_compressed_fs cannot operate as a
simple pipe filter because it needs to know some things in advance: a) the data length, b)
the block lengths calculated during the compression. This meta data needs to be stored in
the header AFTER the compression is trough, therefore it is not possible to push all
generated data to STDOUT on-the-fly.

And so compromises need to be made. The simpliest method (used by the ancient
create_compressed_fs) is a big temporary memory buffer (option -m) to keep compressed data
in RAM. However, the overall system performance suffers from such usage and this may drive
other applications into OOM conditions.

The next alternative to this is storing the temprorary data in an extra file aside (the -f
option). This improves the overall system performance but create_compressed_fs operation
is slower because it needs to copy data back when it's finished. Plus, double disk space
for the output is required. If disk space is limited, the -r option could be used (reusing
output file for temporary data), however the speed of the copy-back step may decrease
significantly.

There are strategies to avoid the temporary data storage completely. First, only files
should be used. If that is not possible, then the output should be a (seekable) file and
the input data length should be known (either specified with the -s option or detected
from the input file size).

Second, it is possible to store the header of the cloop volume in a separate file. After
the work, header can be merged together with the compressed data with the cat command. The
output data can be written to stdout. Since the header is stored too late, this method is
not very usefull for immediate data transfer. However, it allows to do some tricks like
piping to the split utility (to store DVD images in smaller files on VFAT) or piping data
trough ssh if the local system has no disk space (and copying the header separately).

MOUNTING


You can pass an option to the cloop module on loading, or use losetup or losetup
functionality of the mount command. Examples:

insmod cloop.o file=/path/to/compressed/image

losetup /dev/cloop1 /path/to/compressed/image

mount -o ro -t whatever /dev/cloop /mnt/compressed

mount cl /mnt/misc -oloop=/dev/cloop0

Use extract_compressed_fs online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 2
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 3
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 4
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 5
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 6
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • More »

Linux commands

  • 1
    abi-tracker
    abi-tracker
    abi-tracker - visualize ABI changes
    timeline of a C/C++ software library.
    DESCRIPTION: NAME: ABI Tracker
    (abi-tracker) Visualize ABI changes
    timeline of a C/C+...
    Run abi-tracker
  • 2
    abicheck
    abicheck
    abicheck - check application binaries
    for calls to private or evolving symbols
    in libraries and for static linking of
    some system libraries. ...
    Run abicheck
  • 3
    couriermlm
    couriermlm
    couriermlm - The Courier mailing list
    manager ...
    Run couriermlm
  • 4
    couriertcpd
    couriertcpd
    couriertcpd - the Courier mail server
    TCP server daemon ...
    Run couriertcpd
  • 5
    gbklatex
    gbklatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbklatex
  • 6
    gbkpdflatex
    gbkpdflatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbkpdflatex
  • More »

Ad