Re: mount & umount read-only floppy: unmount failed: Input/output error ??

From: Rob (listone_at_deathbeforedecaf.net)
Date: 06/30/03

  • Next message: Rob Lahaye: "Re: mount & umount read-only floppy: unmount failed: Input/output error ??"
    To: "Rob Lahaye" <lahaye@users.sourceforge.net>, <freebsd-questions@freebsd.org>
    Date: Mon, 30 Jun 2003 20:30:06 +0930
    
    

    I think I've figured it out - here's a script(1) of trying to mount a
    write-protected floppy:

      root@goo # uname -sr
      FreeBSD 4.8-RELEASE
      root@goo # mount /dev/fd0 /mnt
      root@goo # ll /mnt
      total 3
      drwxr-xr-x 2 root wheel 512 Jun 28 14:04 .
      drwxr-xr-x 21 root wheel 512 May 19 18:57 ..
      root@goo # umount /mnt
      umount: unmount of /mnt failed: Input/output error

    However, here's the vidcontrol(1) dump of the same commands:

      root@goo # uname -sr
      FreeBSD 4.8-RELEASE
      root@goo # mount /dev/fd0 /mnt
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      root@goo # ll /mnt
      total 3
      drwxr-xr-x 2 root wheel 512 Jun 28 14:04 .
      drwxr-xr-x 21 root wheel 512 May 19 18:57 ..
      root@goo # umount /mnt
      fd0c: hard error writing fsbn 56 of 56-63 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 1 hd 1 sec 3)
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
      fd0c: hard error writing fsbn 56 of 56-63 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 1 hd 1 sec 3)
      fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
      fd0c: hard error writing fsbn 56 of 56-63 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 1 hd 1 sec 3)
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
      fd0c: hard error writing fsbn 56 of 56-63 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 1 hd 1 sec 3)
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
      fd0c: hard error writing fsbn 56 of 56-63 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 1 hd 1 sec 3)
      fd0c: hard error writing fsbn 240 (ST0 40<abnrml> ST1 2<write_protect>
    ST2 0 cyl 6 hd 1 sec 7)
      fd0c: hard error writing fsbn 16 of 16-18 (ST0 40<abnrml> ST1
    2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
      umount: unmount of /mnt failed: Input/output error

    Since I'm doing this on ttyv0, I see the errors on the console - but
    they don't appear in the typescript.

    I'm guessing that you're doing this in a non-console shell, and the
    errors are appearing elsewhere - maybe /var/log/messages?

    ----- Original Message -----
    From: "Rob Lahaye" <lahaye@users.sourceforge.net>
    Subject: Re: mount & umount read-only floppy: unmount failed:
    Input/output error ??

    >
    > Rob wrote:
    > > That's strange - I get errors as soon as I try and do this, before
    the
    > > filesystem is even available.
    > >
    > > Perhaps the updates from mounting the floppy aren't being written
    out to
    > > the actual media until you try to unmount it - some kind of caching
    > > issue?
    > >
    > > What happens if you try to touch a file on the (incorrectly)
    writeable
    > > floppy?
    >
    > Are you also using FreeBSD 4.8?
    >
    > I have created the installation floppy from the kern.flp file.
    > I then made this floppy readonly. I put that into my floppy drive
    > and...
    >
    > # mount -t ufs /dev/fd0 /mnt
    > # ls -lo /mnt
    > total 1301
    > drwxr-xr-x 2 root wheel - 512 Apr 3 20:06 boot
    > -r-xr-xr-x 1 root wheel - 1324900 Apr 3 20:06 kernel.gz
    > # touch /mnt/kernel.gz
    > # ls -lo /mnt
    > total 1301
    > drwxr-xr-x 2 root wheel - 512 Apr 3 20:06 boot
    > -r-xr-xr-x 1 root wheel - 1324900 Jun 30 19:17 kernel.gz
    > # umount /mnt
    > umount: unmount of /mnt failed: Input/output error
    > #
    >
    > Notice that the time has changed due to the 'touch' of the file
    > despite being readonly!!
    >
    > The very little I know about filesystems, I guess the 'touch' has
    > been applied to the cache, not to the actual floppy.
    > The umount forces a sync, which can't be done due to readonly.
    >
    > Something is fishy here, isn't it?
    >
    > Rob.
    >
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    "freebsd-questions-unsubscribe@freebsd.org"
    >

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Rob Lahaye: "Re: mount & umount read-only floppy: unmount failed: Input/output error ??"

    Relevant Pages

    • Re: [opensuse] Cant read mounted floppy disk
      ... Above, is the umount, which was effective, since ls returned nothing. ... It is unexpected that the mount command then gets ... the floppy and look up the log again. ... Then I tried clicking on the icon in the Konqueror drives ...
      (SuSE)
    • Re: [opensuse] Cant read mounted floppy disk
      ... The system, as you can see from the above, says that the floppy is ... Ok, then try to umount, then mount - manually. ... is unexpected that the mount command then gets the error ...
      (SuSE)
    • automount weirdness
      ... I'm trying to get the floppy and the zip disks mount/unmount ... as root I can umount /misc/floppy within ... If I try to unmount it ...
      (comp.os.linux.misc)
    • Ridiculous floppy crap
      ... Mount a floppy, copy a file, umount the floppy - oops, device is busy!!! ... want it, close EVERYTHING, click unmount - device is busy. ...
      (alt.linux)
    • Re: mount & umount read-only floppy: unmount failed: Input/output error ??
      ... Rob wrote: ... > filesystem is even available. ... > Perhaps the updates from mounting the floppy aren't being written out to ... umount: unmount of /mnt failed: Input/output error ...
      (freebsd-questions)