Automount when changing USB floppy

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












When changing the floppy in my usb floppy drive /dev/sdb which is mounted to /home/user/floppy it won't change the contents of my mount directory until I click the floppy icon in the left taskbar or unmount and remount manually.



How can I change this behaviour so my mount directory always shows the floppy content?







share|improve this question
























    up vote
    0
    down vote

    favorite












    When changing the floppy in my usb floppy drive /dev/sdb which is mounted to /home/user/floppy it won't change the contents of my mount directory until I click the floppy icon in the left taskbar or unmount and remount manually.



    How can I change this behaviour so my mount directory always shows the floppy content?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When changing the floppy in my usb floppy drive /dev/sdb which is mounted to /home/user/floppy it won't change the contents of my mount directory until I click the floppy icon in the left taskbar or unmount and remount manually.



      How can I change this behaviour so my mount directory always shows the floppy content?







      share|improve this question












      When changing the floppy in my usb floppy drive /dev/sdb which is mounted to /home/user/floppy it won't change the contents of my mount directory until I click the floppy icon in the left taskbar or unmount and remount manually.



      How can I change this behaviour so my mount directory always shows the floppy content?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 26 at 15:29









      Hans Christian Koch

      286




      286




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Most floppy disk drives do not detect a media change. Some try to emulate this behaviour by watching for a signal change on the write protection photoelectric sensor, but this would not work in all cases.



          Floppy disc drives that can detect media changes normally do have an electrical ejection system and no mechanical button to do so. These systems can do the trick you like to have but these are rare. And, well, you would be clicking "unmount" anyway, the difference would be the disc being ejected ;)



          BTW: it is no good idea to manually eject the floppy from the drive before logically unmounting it in the operation system as there might be unwritten buffers, software might have open files etc.






          share|improve this answer






















          • Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
            – Hans Christian Koch
            Apr 26 at 16:49










          • (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
            – pdr
            Apr 27 at 7:20











          • Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
            – Hans Christian Koch
            Apr 27 at 20:23










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028454%2fautomount-when-changing-usb-floppy%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Most floppy disk drives do not detect a media change. Some try to emulate this behaviour by watching for a signal change on the write protection photoelectric sensor, but this would not work in all cases.



          Floppy disc drives that can detect media changes normally do have an electrical ejection system and no mechanical button to do so. These systems can do the trick you like to have but these are rare. And, well, you would be clicking "unmount" anyway, the difference would be the disc being ejected ;)



          BTW: it is no good idea to manually eject the floppy from the drive before logically unmounting it in the operation system as there might be unwritten buffers, software might have open files etc.






          share|improve this answer






















          • Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
            – Hans Christian Koch
            Apr 26 at 16:49










          • (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
            – pdr
            Apr 27 at 7:20











          • Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
            – Hans Christian Koch
            Apr 27 at 20:23














          up vote
          1
          down vote



          accepted










          Most floppy disk drives do not detect a media change. Some try to emulate this behaviour by watching for a signal change on the write protection photoelectric sensor, but this would not work in all cases.



          Floppy disc drives that can detect media changes normally do have an electrical ejection system and no mechanical button to do so. These systems can do the trick you like to have but these are rare. And, well, you would be clicking "unmount" anyway, the difference would be the disc being ejected ;)



          BTW: it is no good idea to manually eject the floppy from the drive before logically unmounting it in the operation system as there might be unwritten buffers, software might have open files etc.






          share|improve this answer






















          • Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
            – Hans Christian Koch
            Apr 26 at 16:49










          • (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
            – pdr
            Apr 27 at 7:20











          • Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
            – Hans Christian Koch
            Apr 27 at 20:23












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Most floppy disk drives do not detect a media change. Some try to emulate this behaviour by watching for a signal change on the write protection photoelectric sensor, but this would not work in all cases.



          Floppy disc drives that can detect media changes normally do have an electrical ejection system and no mechanical button to do so. These systems can do the trick you like to have but these are rare. And, well, you would be clicking "unmount" anyway, the difference would be the disc being ejected ;)



          BTW: it is no good idea to manually eject the floppy from the drive before logically unmounting it in the operation system as there might be unwritten buffers, software might have open files etc.






          share|improve this answer














          Most floppy disk drives do not detect a media change. Some try to emulate this behaviour by watching for a signal change on the write protection photoelectric sensor, but this would not work in all cases.



          Floppy disc drives that can detect media changes normally do have an electrical ejection system and no mechanical button to do so. These systems can do the trick you like to have but these are rare. And, well, you would be clicking "unmount" anyway, the difference would be the disc being ejected ;)



          BTW: it is no good idea to manually eject the floppy from the drive before logically unmounting it in the operation system as there might be unwritten buffers, software might have open files etc.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 26 at 15:53

























          answered Apr 26 at 15:42









          pdr

          1434




          1434











          • Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
            – Hans Christian Koch
            Apr 26 at 16:49










          • (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
            – pdr
            Apr 27 at 7:20











          • Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
            – Hans Christian Koch
            Apr 27 at 20:23
















          • Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
            – Hans Christian Koch
            Apr 26 at 16:49










          • (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
            – pdr
            Apr 27 at 7:20











          • Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
            – Hans Christian Koch
            Apr 27 at 20:23















          Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
          – Hans Christian Koch
          Apr 26 at 16:49




          Thank you, I was expecting this. I wonder how DOS software handled this as there occured frequent media changes for file transfer. But I guess they just directly accessed the drive which isnt possible here...
          – Hans Christian Koch
          Apr 26 at 16:49












          (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
          – pdr
          Apr 27 at 7:20





          (Early) DOS used floppy disks without any buffering. So any filesystem changes would have been written to disk synchronously. The risk of having a disc removed from drive was still there but while there was write access, the drive showed the "active" lamp to the user signaling to keep his hands off ;) BTW: In the DOS "precurser" CP/M you had to sync the disk by pressing CTRL-Z or something like that - don't really remember the key combination exactly. First Macintosh computers solved this hy having no eject button but an electrical ejection system initiated by the OS.
          – pdr
          Apr 27 at 7:20













          Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
          – Hans Christian Koch
          Apr 27 at 20:23




          Just to add on to this: I was able to find a workaround using autofs which unmounts the drive automatically after a specified idle time (e.g. 5 seconds) and remounts it automatically when accessing the mount point, so I can switch floppies nearly fearless :)
          – Hans Christian Koch
          Apr 27 at 20:23

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028454%2fautomount-when-changing-usb-floppy%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491