From owner-freebsd-questions Fri Apr 7 4:25:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from blues.jpj.net (blues.jpj.net [204.97.17.146]) by hub.freebsd.org (Postfix) with ESMTP id 805DB37B61B for ; Fri, 7 Apr 2000 04:25:20 -0700 (PDT) (envelope-from trevor@jpj.net) Received: from localhost (trevor@localhost) by blues.jpj.net (right/backatcha) with ESMTP id e37BO6f29784; Fri, 7 Apr 2000 07:24:06 -0400 (EDT) Date: Fri, 7 Apr 2000 07:24:06 -0400 (EDT) From: Trevor Johnson To: "Swanson, Toby J." Cc: "'freebsd-questions@freebsd.org'" , "'toby@milkyway.org'" Subject: Re: tuning file systems In-Reply-To: <8C8DCBC7A064D01181F30000F8014E27C2EB5F@knxnorois1b.noh.tva.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The system is a P5-133, 128Mb memory, FreeBSD 3.4, > 15Gb hard drive, 50x CDROM. I want to copy CDs to the > hard drive and share them with Windows 95/98 clients via > samba. All works well, except a 650 Mb CD turns into 1625 > Mb of data on the hard drive. I've Read the newfs and tunefs > man pages. Changing the block size from 8096 to 4048 > helped a little, as did setting the optimization to space. > > The same system running FreeBSD 2.2.8 only uses 1200 Mb. If you're using "df" or "du" to determine the amount of space taken up, note that when the BLOCKSIZE environment variable isn't defined, those commands will give the sizes in 512-byte blocks (at least, they do on my system). If BLOCKSIZE is set to "K", they'll answer in 1024-byte blocks. > Is there anything else I can do to reduce the space used on > the hard drive? I haven't tried this, but to reduce space wasted by many small files you might dd the CD-ROM to a file on the hard drive, then use vnconfig to attach that file to a vnode (you must configure your kernel with "pseudo-device vn"), mount it, then have Samba to make the mount point available to the Windows clients. Perhaps something similar to: # dd if=/dev/acd0c of=/bigdisk/mycd.iso # vnconfig vn0c /bigdisk/mycd.iso # mkdir /foo/mycd/ # mount_cd9660 /dev/vn0c /foo/mycd/ # vi /usr/local/etc/smb.conf would do it. __ Trevor Johnson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message