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