Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.programmer Subject: Re: CMD_READ on hard drive devices. Message-ID: <1410@cbmger.UUCP> Date: 25 Jun 91 07:58:47 GMT References: <1991Jun24.125808.48207@cc.usu.edu> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 20 In article <1991Jun24.125808.48207@cc.usu.edu> sl87m@cc.usu.edu (The Barking Pumpkin Digital Gratification Ensemble) writes: >Hi! > >I'm trying to access block directly on hard drives, but (obviously) I've got a >problem: > >I OpenDevice(...) fine, but when I go to do a DoIO(...), my machine crashes. If >I do an OpenDevice(TD_NAME....), and turn on the drive motor, then do the >DoIO(), it works fine. What could I possibly be doing wrong? My assumption is >that CMD_READ,CMD_WRITE are universal for all devices, trackdisk or whatever. Yes, the commands are universal, but *NOT* the device name. TD_NAME stands for TrackDisk device. Any harddisk has its own driver. At first you must find out the name of this driver, which you can spot in the device list, see other thread in this newsgroup. Then take this name for your OpenDevice, and all works ok. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk