<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 4/18/2015 8:24 PM, Israel wrote:<br>
    </div>
    <blockquote cite="mid:5532F5D4.7010304@gmail.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 04/18/2015 06:10 PM, John Hupp
        wrote:<br>
      </div>
      <blockquote cite="mid:5532E47C.6070806@prpcompany.com" type="cite">
        <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type">
        I installed Lubuntu 14.04 for someone who had an XP-era PC.  He
        also has a really, really old offline PC that he uses for a few
        familiar programs, and wants to ferry some files back and forth
        between the two PC's using floppies.<br>
        <br>
        This should be no problem, except that the floppy mounts in
        Lubuntu with root ownership, and only root can change content,
        so ordinary users cannot copy files to or edit files on a
        floppy.<br>
        <br>
        Someone somewhere (!) reported that the behavior could be
        duplicated in a virtual machine with no actual floppy drive.<br>
        <br>
        Design behavior should be that the floppy mounts with the
        logged-in user as owner, which is what happens with USB flash
        drives.<br>
        <br>
        As far as I can tell, this is a new instance of a regression in
        the kernel and/or udisks2 that has previously been reported and
        fixed.<br>
        <br>
        See for instance:<br>
        <a moz-do-not-send="true"
          href="http://bugs.freedesktop.org/show_bug.cgi?id=63849">udisks2

          mounts floppy disk as root</a><br>
        <a moz-do-not-send="true"
          href="http://lkml.org/lkml/2014/5/28/297">Bug fix released</a><br>
        <a moz-do-not-send="true"
          href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740190">udisks2:


          mounts floppy always for root:root (not writable for normal
          users)</a><br>
        <br>
        I couldn't figure out how to get floppies to mount with the
        logged-in user as owner, but I do have a sloppy workaround that
        sets a permission to allows anyone to change content on the
        floppy.  This was inspired by comment #11 at <a
          moz-do-not-send="true"
          href="http://ubuntuforums.org/showthread.php?t=2222487&page=2">Floppies


          mount fine, but can't seem to edit them in Xubuntu 14.04</a>.<br>
        <br>
        The sloppy workaround in my case is to add this line to
        /etc/fstab:<br>
        /dev/fd0 /media/user1/disk vfat
        rw,nosuid,nodev,uhelper=udisks2,user,noauto,umask=0 0 0<br>
        <br>
        This will work fine in a one-user installation, but it fails in
        a multi-user installation.  With user2 as the logged in user,
        clicking on Floppy Disk in pcmanfm to mount it causes the error:
        <br>
            The specified directory '/media/user1/disk' is not valid.<br>
        <br>
        I would be happy to hear about it if someone can come up with an
        improved workaround!<br>
        <br>
      </blockquote>
      Hi<br>
      It should be possible to run: <br>
      <br>
      sudo umount /path/to/floppy<br>
      sudo mkdir /media/floppy<br>
      <br>
      fd0 was taken from your e-mail... it may be different on other
      systems..<br>
      sudo mount -o users /dev/fd0 /media/floppy<br>
      <br>
    </blockquote>
    <br>
    Thanks to Israel and Andre for the ideas.<br>
    <br>
    The best solutions would probably involve chown as Andre suggested
    in his first reply, and if I knew how, an upstart job that runs when
    /dev/fd0 is mounted.  This could be made to align with expected
    behavior, such as one sees with a usb flash drive.<br>
    <br>
    But taking the path of least resistance, I seized a piece of
    Israel's idea above, creating /media/floppy.  Then I set Change
    Content: Anyone permission for that.  And finally revised my
    addition to fstab thus:<br>
    /dev/fd0 /media/floppy vfat
    rw,nosuid,nodev,uhelper=udisks2,user,noauto,umask=0 0 0<br>
    <br>
    This seems to work OK in multiple-user setups, so that is a better
    workaround.<br>
    <br>
    As a footnote: The Filesystem Hierarchy Standard, if that is still
    current, says that /media/floppy should exist, but it does not here
    in a default installation.  See <a
      href="http://www.pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT">http://www.pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT</a><br>
  </body>
</html>