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

From: Sergey \ (doublef_at_tele-kom.ru)
Date: 06/30/03

  • Next message: Justin P. Michel: "Bulletin Board System"
    Date: Mon, 30 Jun 2003 17:51:50 +0000
    To: Rob Lahaye <lahaye@snu.ac.kr>
    
    

    Rob Lahaye wrote:
    > I created the installation floppy from "kern.flp". Removed it from the
    > drive, to make it read-only.
    > I then put it back into the drive and do, as root:
    >
    > # mount -t ufs /dev/fd0 /mnt
    > # umount /dev/fd0
    > umount: unmount of /mnt failed: Input/output error

    You know, ufs filesystems store the "last mounted on" string in
    themselves (it is reported by "fsck", f.e.). I am not sure, but it seems
    like mount is willing to write it to the floppy.

    > 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?

    So you were _writing_ to a read-only floppy;)? Yes, of course, FreeBSD
    does cache them (that's why you can't take it out without unmounting).
    It's just that, short of trying to write to the floppy, you can't get to
    know it's read-only AFAIK.

    HTH,
                                    DoubleF

    _______________________________________________
    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: Justin P. Michel: "Bulletin Board System"

    Relevant Pages

    • Script to create bootable floppy image using genext2fs and grub without root
      ... ext2 floppy using grub and genext2fs without ... requires root privs, and I wanted to show that there is ...
      (comp.os.linux.embedded)
    • Re: Permission Problem
      ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
      (alt.os.linux.suse)
    • Re: Permission Problem
      ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
      (alt.os.linux.suse)
    • Re: Write to floppy?
      ... root and trying to mount it with -w as root. ... Are you sure that the little tab on the floppy has not been set to read ... matt@mattspc /mnt $ touch usb/file ...
      (Ubuntu)
    • Re: Editing the boot.ini file in Windows 2000
      ... Control Panel|Admin Tools|Local Security Policy Recovery console:"Allow ... Much easier to just create a boot floppy. ... If it is on the root of the OP Sys then you can try | the Repair Console and try to edit the boot ini then. ... Remeber it is | readonly and hidden so you'll have to attrib -h boot.ini then attrib -r | boot.ini before you can work on it. ...
      (microsoft.public.win2000.general)