Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2007 20:09:04 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org
Cc:        Max Khon <fjoe@freebsd.org>
Subject:   uzip on "large" file systems
Message-ID:  <200708062009.05673.doconnor@gsoft.com.au>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708062009.05673.doconnor>