Subject: HFS, P8 & Linux/Kegs Path: lobby!newstf02.news.aol.com!portc02.blue.aol.com!nyd.news.ans.net!news.idt.net!nntp2.giganews.com!news2.giganews.com.POSTED!not-for-mail Message-ID: <379DD064.D74FDFFA@texas.net> From: phoenyx Organization: Kandi's Kreations X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.sys.apple2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 89 NNTP-Posting-Date: Tue, 27 Jul 1999 10:27:00 CDT X-Trace: sv1-CzfpCZqtSV/WlJauFghxKSHnV7ywofz+ntd5xo6uDN4fB3YLOtiLcB9FOBsUWZ5JVM0/fCsTvCzBfJ2!qABrgLLfQQ== X-Complaints-To: abuse@GigaNews.Com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Tue, 27 Jul 1999 10:29:40 -0500 NOTE: This post is kind of long. Please consider others if quoting it. Here's some interesting info regarding those HFS partitions. HFS like Prodos can only access 65536 blocks on a partition. To be able to use more than 32k per volume HFS uses a variable block size. 512k for 800k disks, 1024k and up depending upon volume size for hard drives. After setting up Kegs/Linux with an HFS volume I noticed a lot of wasted space on the volume. For instance, a 67 byte finder.data file took up a whole 4k. So I decided to play around with an older spare HD and check some different volume sizes for wasted space. I partitioned the drive to various sizes, then used a test file of 13,312 bytes on each partition. As it turned out there was no difference with volume sizes under 64meg. Each used a block size of 1024. the file showed 13k used on the disk. Volumes sized at 130 meg seem to use 2048 byte blocks and the test file showed 15k on disk. 2k of wasted space. Volume size of 517 meg showed 17k on disk with 4k of wasted space. Volume size of 1.2 gig showed the file as 20k which results in 7k of wasted space. Just think, each finder file in each directory using 20k. sheesh! This is definately a lot of wasted space for an 8/16 bit computer. On the MAC this may not be so noticable with 32 bit files, but II users expect more efficiency than that. So this leaves the HFS user with some decisions to make. Do you partition the drive with smaller volumes to make it more efficient or waste some space to make it easier to use? With a large drive this may be a tough choice. Perhaps the best solution is a 63 meg partition for applications which may have lots of small files and directories and divide the rest of the drive into 130 meg partitions for archives or such. This is the method I've chosen. While it requires more effort when dealing with path names it is certainly better than loosing several megs of data storage. While testing the HFS with the Kegs emulator I found a couple of interesting things. Kegs can use a disk partition for Prodos 8 as well as HFS. This is a little faster than the standard HD file image method. As long as you avoid the partition from Linux everything works fine. The HFS partitions seem to be faster if you set Linux to ignore the volumes also. This is probably a little safer too. Now the only thing missing from this setup is tools to access a P8 partition from Linux. So with all this in mind, I've reconfigured my Kegs as follows. s7d1 = p8 partition @ 32m s7d2 = p8 partition @ 32m s7d3 = p8 partition @ 32m s7d4 = HFS partition @ 64m ... various storage partitions. s7d10 - HFS large backup volume. This leaves me room to load HD images if needed and I can shrinkit my volumes to the large HFS for backup and transfer to othe drives. I only have the large HFS volume visible to Linux for net downloading and file transfers as a safety precaution. Kegs does it's own partition handling so you don't really need to mount the partitions as you do other file systems. Too bad Kegs doesn't support an MS-Dos partition. I tried, no luck. Back to HFS. If you are using it with volumes larger than 63 meg you might want to check the disk's file usage. Smaller volumes result in more usable space and faster access since less data is read per block. Phoenyx