Gentoo Archives: gentoo-user

From: ted leslie <tleslie@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What can I use for a compressed file system?
Date: Fri, 12 May 2006 09:17:19
Message-Id: 20060512051700.683c7e80.tleslie@tcn.net
In Reply to: Re: [gentoo-user] What can I use for a compressed file system? by Zac Slade
1 since you are not looking at writing to this fs,
2 then you can use cloop or squashfs
3
4 for example, gentoo uses squashfs for its live cd/dvd
5
6 squashfs is considered better, but both are in use on live cd/dvd,
7 cloop was (At least partially) written by the knoppix dude.
8
9 typically you get 2.5:1 compression with these over a general linux distro file average.
10
11 either one will put all files starting at a root path into the compressed structure.
12 The only real difference between doing it cloop/squashfs and tar.*z
13 is that cloop/squashfs can be directly accessed (once mounted),
14 which might be of some use.
15
16 big negative (unless fixed in recent releases) is you need enough ram/VM to hold the entire
17 fs (to be compressed) in memory. So if you have 512MB ram and a 1GB VM allocation,
18 the biggest fs you can archive using cloop/squashfs would be 2.5GB (approx), that compresses down to
19 the 1GB to fit into your VM.
20
21 pretty recent cloop souce is at knoppix web site,
22 squashfs, IIRC is at kernel.org
23 squashfs would also be available in gentoo, as gentoo uses it in their live cd.
24
25 -tl
26
27 On Fri, 12 May 2006 02:47:56 -0500
28 Zac Slade <krakrjak@××××××××××.net> wrote:
29
30 > On Thursday 11 May 2006 19:51, W.Kenworthy wrote:
31 > > What can I use for a compressed file system? I am looking at setting up
32 > > a loopback mounted filesystem that I want to use to store backups into.
33 > > Compression is needed as space will become a limitation in the future (I
34 > > want to do a whole system backup that so far is 2:1 compressed via
35 > > tar.bzip2. I am thinking of using dirvish into a compressed loopback
36 > > mount - but how do I set up a compressed fs?
37 > Have you tried reiserfs? As long as it is NOT mounted with the "notail"
38 > option it can sometimes save 50% on space compared to ext3/jfs/xfs depending
39 > on your usage.
40 >
41 > There is also a possiblility of using LVM2 snapshots also if you have LVM2
42 > devices already set up. I'm not sure how dirvish is for backup and I'm not
43 > sure how good a loopback backup to a file really is anyway. That depends on
44 > the consistency of at least a partition anyway. Maybe you are trying to
45 > solve the wrong problem?
46 >
47 > --
48 > Zac Slade
49 > krakrjak@××××××××××.net
50 > ICQ:1415282 YM:krakrjak AIM:ttyp99
51 > --
52 > gentoo-user@g.o mailing list
53 >
54 --
55 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] What can I use for a compressed file system? William Kenworthy <billk@×××××××××.au>
Re: [gentoo-user] What can I use for a compressed file system? plougher <phillip.lougher@×××××.com>