From owner-freebsd-stable@FreeBSD.ORG Mon Aug 6 10:39:10 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9BD416A418; Mon, 6 Aug 2007 10:39:10 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 26F1213C465; Mon, 6 Aug 2007 10:39:09 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-138-8.lns11.adl6.internode.on.net [121.45.138.8]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l76Ad607086240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Aug 2007 20:09:07 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Mon, 6 Aug 2007 20:09:04 +0930 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Message-Id: <200708062009.05673.doconnor@gsoft.com.au> X-UID: 5203 Content-Type: multipart/signed; boundary="nextPart21572344.mYUnUuIfnG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: Max Khon Subject: uzip on "large" file systems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 10:39:10 -0000 --nextPart21572344.mYUnUuIfnG Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I am attempting to make a FreeSBIE USB image for a 4GB flash disk (based=20 on RELENG_6) but I am running into trouble with the size of my /usr (I=20 have a lot of stuff there) - it's 4.5GB uncompressed. =46rom what I can see the code uses blocks which means I shouldn't be=20 running into problems with 32 bit ints yet. Here's a log of what I've tried.. negrocreek:/tmp/freesbie2>sudo mkuzip -v -s=20 65536 -o /tmp/freesbie-clone/uzip/usr.uzip /tmp/freesbie-clone/uzip/usr.ufs =2E.. cluster #84376, in 65536 bytes, out 47911 bytes cluster #84377, in 65536 bytes, out 24655 bytes padding data with 391 bytes so that file size is multiple of 512 compressed data to 1521671168 bytes, saved 4008097792 bytes, 72.48%=20 decrease. negrocreek:/tmp/freesbie2>ll /tmp/freesbie-clone/uzip/ total 6277776 =2Drw-r--r-- 1 root wheel 5529768960 Jul 31 13:05 usr.ufs =2Drwxr-xr-x 1 root wheel 1521671168 Jul 31 14:11 usr.uzip* negrocreek:/tmp/freesbie2>sudo mdconfig -a -t=20 vnode -f /local0/tmp/freesbie-clone/uzip/usr.ufs md0 negrocreek:/tmp/freesbie2>sudo mount -o ro /dev/md0 /mnt negrocreek:/tmp/freesbie2>ls -la /mnt total 58 drwxr-xr-x 16 root wheel 512 May 31 15:32 ./ drwxr-xr-x 23 root wheel 512 Jun 8 04:45 ../ drwxrwxr-x 2 root operator 512 Jul 31 11:07 .snap/ drwxr-xr-x 14 root wheel 512 Jun 19 07:21 X11R6/ drwxr-xr-x 2 root wheel 7168 Jun 19 07:06 bin/ drwxr-xr-x 2 root wheel 512 Jun 19 06:49 games/ drwxr-xr-x 47 root wheel 4608 Jun 19 06:49 include/ drwxr-xr-x 4 root wheel 6656 Jun 19 06:50 lib/ drwxr-xr-x 2 root wheel 6656 Jun 19 06:50 lib32/ drwxr-xr-x 5 root wheel 512 May 31 15:29 libdata/ drwxr-xr-x 5 root wheel 1536 Jun 19 06:50 libexec/ drwxr-xr-x 20 root wheel 512 Jun 19 07:16 local/ drwxr-xr-x 2 root wheel 512 May 31 15:29 obj/ drwxr-xr-x 2 root wheel 4608 Jun 19 06:50 sbin/ drwxr-xr-x 27 root wheel 512 May 31 15:29 share/ drwxr-xr-x 2 root wheel 512 May 31 15:29 src/ negrocreek:/tmp/freesbie2>sudo umount /mnt sudnegrocreek:/tmp/freesbie2>sudo mdconfig -d -u 0 negrocreek:/tmp/freesbie2>sudo mdconfig -a -t=20 vnode -f /local0/tmp/freesbie-clone/uzip/usr.u usr.ufs usr.uzip* negrocreek:/tmp/freesbie2>sudo mdconfig -a -t=20 vnode -f /local0/tmp/freesbie-clone/uzip/usr.uzip md0 negrocreek:/tmp/freesbie2>sudo mount -o ro /dev/md0.uzip /mnt negrocreek:/tmp/freesbie2>ll /mnt ls: X11R6: Input/output error ls: bin: Input/output error ls: games: Input/output error ls: include: Input/output error ls: lib32: Input/output error ls: libdata: Input/output error ls: libexec: Input/output error ls: local: Input/output error ls: obj: Input/output error ls: sbin: Input/output error ls: share: Input/output error ls: src: Input/output error total 10 drwxrwxr-x 2 root operator 512 Jul 31 11:07 .snap/ drwxr-xr-x 4 root wheel 6656 Jun 19 06:50 lib/ negrocreek:/tmp/freesbie2>dmesg | tail g_vfs_done():md0.uzip[READ(offset=3D5008834560, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D2119188480, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D1348616192, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D1733902336, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5009620992, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5009620992, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5009686528, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5202378752, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5202378752, length=3D16384)]error =3D 5 g_vfs_done():md0.uzip[READ(offset=3D5202460672, length=3D16384)]error =3D 5 Any suggestions? :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart21572344.mYUnUuIfnG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGtvpJ5ZPcIHs/zowRAqqpAKCXtYyDMi3CMOEzjk5McoW34zCZowCcC93C VCSck9QBfkgjy06emH7r3kg= =qTfv -----END PGP SIGNATURE----- --nextPart21572344.mYUnUuIfnG--