home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8742 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.1 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!root
  2. From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Need Help: Mtools
  5. Message-ID: <1992Aug21.023532.28214@athena.mit.edu>
  6. Date: 21 Aug 92 02:35:32 GMT
  7. Sender: root@athena.mit.edu (System PRIVILEGED Account)
  8. Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  9. Organization: The Internet
  10. Lines: 36
  11.  
  12.  
  13.    From: jhuang@Chaos.mcs.kent.edu (Jing Huang)
  14.    Date: Thu, 20 Aug 1992 20:39:10 GMT
  15.  
  16.        Hello netters. I just realized that my "mtools" are behaving funny.
  17.  
  18.        Specifically, when I used "mdir b:" the first time, it gave me the
  19.    correct diretory list of the diskette. But then after I changed to another
  20.    diskette, "mdir b:" gave me the old (the first) diretory list. In
  21.    other words, "mdir b:" seemed to have a memory of only the first
  22.    invocation. To get a file list of another diskette, I have to reboot
  23.    Linux. That is crazy. "mdir c:" seems ok though.
  24.  
  25. It sounds like your floppy drive doesn't have its "diskette change line"
  26. working correctly --- apparently that's a common problem.  The meaning
  27. of that line (I think it's pin 34 on the ribbon connector) changed from
  28. XT floppy dirves to AT floppy drives.  On AT systems, that line is
  29. supposed to signal to computer that someone has opened the driver door
  30. (on a 5" disk) or ejected the floppy (on a 3" disk), so the computer
  31. should flush its disk buffers.  
  32.  
  33. On some diskette drives, there is a jumper you can set to enable/disable
  34. that line.  If you have the documentation for your drive, you might look
  35. for such a jumper, or see if there's an obvious jumper whose trace goes
  36. to that pin on the edge connector.
  37.  
  38. Even if you can fix your hardware, it sounds like, we need an ioctl in
  39. the floppy disk driver to artificially simulate a disk change event, for
  40. people who can't.  It wouldn't be hard to do, and it would probably be a
  41. good exercise for somone who wants to start learning how a Linux device
  42. driver works.  (Hint: look at the variable changed_floppy.)
  43.  
  44. If no one gets around to posting a patch in a week or two, though, I'll
  45. make the changes when I can find some time.
  46.  
  47.                         - Ted
  48.