Hi ibug
This is straight from the info file of squashfs-tools-4.x.tcz:
mksquashfs directory/ filename.extensionname
The command has two options, a source directory, and a destination file. Since you insist on asking
vague questions rather than just saying what you are trying to accomplish, I can only presume you
are trying to compress an existing file system to get some more space on a hard drive. If that is the
case, then this is the wrong approach, squash file system is read only.
can use
--------
dd if=/dev/sda5 of=/mnt/sda6/dir/sda5.file.copy
mksquashfs /mnt/sda6/dir/ /mnt/sda6/another.dir/sda5.file.copy.sfs
--------
but need
--------
mksquashfs /dev/sda5 /mnt/sda6/another.dir/sda5.file.copy.sfs
--------
need to backup 80GB device with 78GB data
in to 30GB partition with compression
did use 7zip and it takes only 6GB from 30GB
but it do not compress those 2GB
which are needed for further data recovery with
double mount sfs then mount partition
and many search engine on it with out any writing to this partition
if 7z this partition
7zip can not be mount or read in real time
it can only decompress full 80GB
and creating ntfs compressed partition is not good for me
if you know everything now
how to mksquashfs /dev/*