TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Rob Hamerling
date: 1997-03-08 13:37:26
subject: Identifying HPFS partitio

Referring to your msg of 06 Mar 1997:

 RF>  I'm making a DOS program that will run under DOS and OS/2.
 RF>  The only problem I have is that the information about the
 RF>  cluster size of a HPFS partition always comes wrong... 

 JdBP> ..... 
 JdBP> HPFS has "." and ".." entries in the root
directory.  FAT 
 JdBP> does not. 

 JdBP> This is not foolproof, because other filesystems, such as LAN
 JdBP> Server and CDFS, also have such entries.  Basically this is a FAT
 JdBP> detection method, rather than an HPFS detection method.

Another (maybe also not foolproof) check: read from the partition boot
sector the field "number of copies of the FAT" (unsigned byte at
offset 16). Not surprisingly this is zero on HPFS volumes. 

Cheers, Rob 
--- timEd/2 1.10+
* Origin: Root of Downsort, Netherlands [31-347-322423] (2:281/732)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 281/732 703 1 280/801 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.