On Fri, 19 Mar 2004, Szakacsits Szabolcs wrote:
> On Thu, 18 Mar 2004, Szakacsits Szabolcs wrote:
>
> > 2) use a compressing filesystem on the local partition so you could get
> > transparent compression and ntfsclone would just work.
> >
> > Unfortunately there aren't many for Linux. None of ext2, ext3,
> > reiserfs, xfs, jfs supports this (ext2 had a broken compression
> > module long ago but today it's a totally dead project). IMHO
> > jffs2, compressed iso fs or gzipfs (www.filesystems.org) could
> > do it but I've never tried.
>
> Another way came to my mind, cloop (compressed loop device) what
> Knoppix and most Live CD uses. It's available here (I think),
>
> http://developer.linuxtag.net/knoppix/sources/
>
> Backup:
>
> ntfsclone -o - device | create_compressed_fs - blocksize > cloop.compressed
Just for the record, I tried this out and the create_compressed_fs has a
very serious drawback: it compresses first _everything_ in memory then it
writes out the compressed data. If you don't have enough RAM + swap then
the kernel's out of memory killer will kill the process.
I'll take a look at create_compressed_fs if this could be improved ...
> Restore:
>
> install cloop kernel module
losetup /dev/cloop1 cloop.compressed
ntfsclone --overwrite device /dev/cloop1
Szaka
|