Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!portal!cup.portal.com!ts From: ts@cup.portal.com (Tim W Smith) Newsgroups: comp.sys.mac.programmer Subject: Re: Telling Floppies from Hard Disks Message-ID: <21583@cup.portal.com> Date: 25 Aug 89 02:53:19 GMT References: <1742@cs-spool.calgary.UUCP> <3841@internal.Apple.COM> Organization: The Portal System (TM) Lines: 17 Not quite. The check for removable drives recently posted here will fail for many hard drives. The following code was used: if ( *p == 8 ) /* assume non-removable */ else /* removable */ This fails because the value 0x48 can be used to signify non-removable drives. A value of 8 means that the drive is non-removable. A value of 0x48 means that the drive is non-removable, but the driver wants to receive a control call when someone tries to eject the drive. I have no idea why anyone would want to use 0x48. Does anyone have any ideas? Tim Smith