Re: mounting a floppy

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 07/01/03

  • Next message: ico: "Re: crontab : exec, permission denied"
    Date: Tue, 1 Jul 2003 20:07:02 +0100
    To: Robert Gallimore <howlingrooster@hotmail.com>
    
    
    

    On Tue, Jul 01, 2003 at 01:25:17PM -0500, Robert Gallimore wrote:

    > I am having a slight problem with FreeBSD 4.8. I cannot seem to mount a
    > floppy drive. I tried "mount /dev/fd0" but it comes back saying something
    > like an unrecognized file system or device. How do I mount my floppy drive
    > in FreeBSD 4.8? Thanks!

    If this is a DOS format floppy, then here's a tip: don't bother trying
    to mount and unmount the floppy all the time. Instead, install the
    emulators/mtools port. This gives you a whole bunch of MS-DOS style
    commands, except with an 'm' prepended to the name, which let you
    access the floppy drive but without having to mount it first. Eg. you
    can do:

        % mdir a:

    If you are using a non-DOS floppy or you really need to mount the
    floppy for some other reason, then you're going to have to tell
    mount(8) all of the information it needs. There's two ways to do
    that: either on the mount(8) command line, or by making an entry in
    /etc/fstab. Eg. to mount a read-only floppy with a msdos filesystem
    on it as /mnt:

        # mount -t msdos -o ro /dev/fd0 /mnt

    Note that:

    a) you usually have to have superuser privilege to run mount(8) or
    umount(8). You can either install the sudo(8) port and generate the
    appropriate configuration there, or you can set the vfs.usermount
    sysctl to a non-zero value. See mount(2), sysctl(8) for details, but
    note that setting vfs.usermount potentially opens up a nasty security
    hole, so you should understand exactly what you are doing if you
    decide to do that.

    b) You have to remember to unmount the floppy before you eject it from
    the drive. Not doing that has undesirable effects. Similarly, if the
    floppy has the write protect tab set, you have to tell the system to
    mount it read-only. Unfortunately, the system can't actually detect
    that the disk is write protected automatically. Even worse, if you
    mount a unix format RO floppy using RW flags, even if you do nothing
    more than read files from the disk, the system will hang when you try
    and unmount the disk because the system will try and update the 'last
    mounted on' entry on the disk. (Solution is to pop the floppy out,
    toggle the write protect tab and put the disk back smartly so the
    write can complete). Oh -- editing files on such a disk will
    apparently work because the system will hold the whole 1.44Mb disk
    image in cache. Changes will be flushed to disk eventually, or when
    you try and unmount it.

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: ico: "Re: crontab : exec, permission denied"

    Relevant Pages

    • Floppy mounting
      ... you inserted a floppy into the drive and then used the Disk ... Management Tool to mount and unmount them. ... Do modern floppy disk drives automatically detect ...
      (Fedora)
    • Permissions for Zip and Floppy drives?
      ... Store-bought SUSE 10.1, Compaq AP550, internal SCSI HD, external SCSI Zip100 drive, internal floppy. ... Cannot mount or unmount floppy or Zip as an ordinary user from desktop, I'm asking about both problems here as I suspect that they are related. ... Icons were placed on the desktop for each device by the install program, but the icons seem unrelated to the devices or the file systems. ...
      (alt.os.linux.suse)
    • Re: [SLE] Failure to ope floppy in "My Computer"
      ... > created and the mount command shows multiple copies of the above outout. ... Now I can access the zip disk just like the floppy, no need to mount it, ... This is using Konqueror. ...
      (SuSE)
    • Re: multi volume with tar
      ... Floppy disks suck. ... disk definitely won't result in a filesystem-like structure. ... won't mount that floppy. ... tar, either. ...
      (comp.os.linux.misc)
    • Re: Locking Down a Linux Box
      ... I'm new to this list, but we were talking about network security, ... It currently doesn't use (mount) any hard drive ... > can be write protected so not having floppy support in your kernel only ...
      (Focus-Linux)