From owner-freebsd-questions Sat Apr 8 6:25:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from weeble.dyndns.org (ubppp233-170.dialin.buffalo.edu [128.205.233.170]) by hub.freebsd.org (Postfix) with ESMTP id EA6A237B5FE for ; Sat, 8 Apr 2000 06:25:26 -0700 (PDT) (envelope-from cjm2@earthling.net) Received: from shithead (shithead.weeble.dyndns.org [10.0.0.2]) by weeble.dyndns.org (8.9.3/8.9.3) with SMTP id JAA94371; Sat, 8 Apr 2000 09:24:27 -0400 (EDT) (envelope-from cjm2@earthling.net) Message-ID: <01ba01bfa15d$dfd3e6a0$0200000a@weeble.dyndns.org> From: "C J Michaels" To: "Trevor Johnson" , "Swanson, Toby J." Cc: "'freebsd-questions@freebsd.org'" , References: Subject: Re: tuning file systems Date: Sat, 8 Apr 2000 09:24:30 -0400 Organization: WCC MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just so you know, that works great.. I've got 4 cds that I'm sharing out to my windows machines that way. -Chris ----- Original Message ----- From: "Trevor Johnson" To: "Swanson, Toby J." Cc: "'freebsd-questions@freebsd.org'" ; Sent: Friday, April 07, 2000 7:24 AM Subject: Re: tuning file systems > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message