From: Bruce A. <ba...@gr...> - 2003-01-01 08:07:28
|
Another thread of relevance: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=fa.mu2pj6v.5624bf%40ifi.uio.no&rnum=7&prev=/groups%3Fq%3Dsmartctl%2B-freshmeat%2B-slackware%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26scoring%3Dd%26selm%3Dfa.mu2pj6v.5624bf%2540ifi.uio.no%26rnum%3D7 Cheers, Bruce > Mark, Georg, > > Every few days, I do a google search to see what's turned up that's > relevant to smartmontools. Here's something of relevance to our > promise-related thread. Mark, I think it suggests an answer to your > question (that yes, the command below WILL fail) but I'd still like to see > what happens when Georg has a chance to try it... > > http://groups.google.com/groups?q=smartctl+-freshmeat+-slackware&hl=en&lr=&ie=UTF-8&oe=UTF-8&scoring=d&selm=200212201338.45492.marvin%40synapse.net&rnum=5 > > Cheers, > Bruce > > On Mon, 30 Dec 2002, Mark Lord wrote: > > > Mmm.. if this is true, then the following should ALSO fail: > > > > cat /proc/ide/hd*/identify > > > > Does it? > > > > Cheers > > -- > > Mark Lord > > Real-Time Remedies Inc. > > ml...@po... > > > > > > > > > > Bruce Allen wrote: > > > Hi Georg, > > > > > > > > >>>It sounds like this is a pretty elementary problem. The first ioctl that > > >>>smartctl issues is for the mandatory "Drive Identity" command: > > >> > > >><...> > > >> > > >>>Could you please try running hdparm -i or hdparm -I and see if this dies > > >>>in the same way? I think that hdparm also issues a drive ID command as > > >>>its first command. > > >> > > >>hdparm -i works as usual (it does not use HDIO_DRIVE_CMD), but hdparm -I > > >>causes the same freeze when calling HDIO_DRIVE_CMD. > > > > > > > > > Very nice -- you have isolated the problem. > > > > > > hdparm -i uses the function ioctl(device, HDIO_GET_IDENTITY, buf) which > > > interrogates the BIOS to find out about the disk identity information when > > > the system was booted. > > > > > > hdparm -I uses the function ioctl(device ,HDIO_DRIVE_CMD,parms) with > > > parms[HDIO_DRIVE_CMD_HDR_SIZE+sizeof(*buf)]={WIN_IDENTIFY, 0, 0, 1,}; > > > to issue the ATA Drive Identity command. This is what is failing on your > > > Promise 20265 IDE-controller (pdc202xx-driver) combo. > > > > > > smartmontools also uses this latter ioctl(). > > > > > > Thanks for contacting the pdcx maintainers. > > > > > > I'm copying this email to Mark Lord so he'll know what's wrong if he gets > > > problem reports about hdparm on this Promise controller. Mark, you can > > > see the thread here: > > > > > > http://sourceforge.net/mailarchive/forum.php?thread_id=1457979&forum_id=12495 > > > > > > Cheers, > > > Bruce > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Smartmontools-support mailing list > > Sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > |