Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!anderson From: anderson@Apple.COM (Clark Anderson) Newsgroups: comp.sys.mac.programmer Subject: Re: driver access Keywords: device manager, disk manager lowlevel disk reading Message-ID: <43367@apple.Apple.COM> Date: 26 Jul 90 23:25:17 GMT References: <640@beguine.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 26 From: Eliot.Henry@samba.acs.unc.edu (BBS Account): >I am trying to find a way to access the disk drives at the lowest level. >I need to read and write to them at the bit level. I have tried pbread but am >having trouble getting it to work. I am assuming that the driver for disks >is open (but i did try calling open driver ".Sony" this caused another error >saying the .sony was not recognized! Help anyone please! The drivers for all mounted disks are already open, otherwise they couldn't be mounted. You only use the name of the driver when you're opening it, after that you use the ref number. The ref number for the Sony floppy driver is -5, the # for a SCSI device is -(SCSI ID+33) (ID0=-33, ID1=-34) Consult the disk driver chapter in IM Vol 2. (David Shayer, replying vicariously through Clark Anderson) --clark -- ----------------------------------------------------------- Clark Anderson InterNet: anderson@apple.com CPU Engineering AppleLink: C.ANDERSON Apple Computer, Inc BellNet: 408-974-4593 "I speak only for myself, much to my employer's relief..." -------------------------------------------------------------