Article View: comp.sys.sun
Article #12455When is a 3-1/2" 'bar' floppy full?
From: Glenn Roberts
Date: Fri, 05 May 1989 07:12
Date: Fri, 05 May 1989 07:12
37 lines
1725 bytes
1725 bytes
I'm trying to find a way to reliably determine when a 3-1/2" floppy is
nearly full (using 'bar' with the Z compression option). When the floppy
fills up, 'bar' will prompt for you to pop in a second disk. I took such
a "full" disk and used an awk program to add up the block counts (the file
'disk1' contains the output from the bar command that wrote to the disk):
{cobra:36} awk '{sum+=$3} END { print sum}' <disk1
2765
but dkinfo shows that there are 2880 sectors on the disk:
{cobra:39} dkinfo fd0c
Unknown controller at addr e0001000, unit # 0
80 cylinders 2 heads 18 sectors/track
can't get partition info
Not a valid partition.
{cobra:40} bc
80*2*18
2880
so maybe bar files always take up an even number of blocks?:
{cobra:41} awk '{sum+=$3; if ($3%2!=0) sum++} END { print sum}' <disk1
2816
I get close to the 2880 number, but not quite there. Could one
cylinder be reserved for detecting when the disk is full or something?
Can anyone shed some light on this?
(p.s. the March 89 STB shows how to make a file system on a floppy
disk:)
mkfs /dev/rfd0c 2880 18 2 4096 512 8 5 6
- Glenn Roberts, The MITRE Corporation, McLean VA (703) 883-6820
gfr@cobra.mitre.org
Technical Details
Message-ID:
<8904271345.AA01322@cobra.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request From: gfr@cobra.mitre.org (Glenn Roberts) Newsgroups: comp.sys.sun Subject: When is a 3-1/2" 'bar' floppy full? Keywords: 386i Message-ID: <8904271345.AA01322@cobra.mitre.org> Date: 5 May 89 07:12:13 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 37 Approved: Sun-Spots@rice.edu Original-Date: Thu, 27 Apr 89 09:45:43 EDT X-Sun-Spots-Digest: Volume 7, Issue 265, message 9 of 9