From owner-freebsd-current@FreeBSD.ORG Mon Sep 26 17:53:26 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2635016A41F for ; Mon, 26 Sep 2005 17:53:26 +0000 (GMT) (envelope-from craig@xfoil.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D2243D48 for ; Mon, 26 Sep 2005 17:53:25 +0000 (GMT) (envelope-from craig@xfoil.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 331892BDE4; Mon, 26 Sep 2005 12:53:25 -0500 (CDT) Date: Mon, 26 Sep 2005 12:53:23 -0500 From: Craig Boston To: Brian Candler Message-ID: <20050926175322.GA3747@nowhere> Mail-Followup-To: Craig Boston , Brian Candler , Mikhail Teterin , current@freebsd.org References: <200509220446.j8M4kBPA019823@blue.virtual-estates.net> <20050922182104.GC990@galgenberg.net> <200509221652.54123.mi+mx@aldan.algebra.com> <20050923135917.GA97140@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050923135917.GA97140@uk.tiscali.com> User-Agent: Mutt/1.4.2.1i Cc: Mikhail Teterin , current@freebsd.org Subject: Re: using bzip2 to compress man-pages X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 17:53:26 -0000 On Fri, Sep 23, 2005 at 02:59:17PM +0100, Brian Candler wrote: > However I have another suggestion. For USB pen drives, if you don't mind > your /usr filesystem being read-only then you can get a big benefit from > using geom_uzip. I've just tried it on the manpages: geom_uzip is great. It works wonderfully on my Soekris router/firewall: ad0: 122MB at ata0-master PIO4 GEOM_LABEL: Label for provider ad0s1a is ufs/skroot40374. GEOM_LABEL: Label for provider ad0s2a is ufs/skroot42030. GEOM_LABEL: Label for provider ad0s3d is ufs/skconfig. Trying to mount root from ufs:/dev/ufs/skroot42030 md0.uzip: 8192 x 16384 blocks GEOM_LABEL: Label for provider md0.uzip is ufs/skusr. # ls -l /skusr.uzip -r-------- 1 root wheel 22729728 Sep 15 22:40 /skusr.uzip (gets mdconfig'd early in the boot process -- I have a bootstrap rc that does the job of figuring out which partition is root, setting up md devices, etc) # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ufs/skroot42030 58439 33372 22146 60% / devfs 1 1 0 100% /dev /dev/md1 7662 796 6254 11% /etc /dev/ufs/skusr 130263 48529 75221 39% /usr /dev/ufs/skconfig 7910 844 6434 12% /config /dev/md2 31470 212 28742 1% /var /dev/md3 19566 12 17990 0% /tmp /dev/md4 31470 34 28920 0% /home > I've never tried booting from a geom_uzip filesystem, but I don't see why it > shouldn't work :-) It should work in theory, though your kernel (and geom_uzip.ko if it's not compiled in!) must of course be loaded from an uncompressed filesystem. Craig