Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 01:55:36 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        "Vladislav V. Zhuk" <admin@dru.dn.ua>
Cc:        stable@FreeBSD.ORG
Subject:   Re: very old bug 
Message-ID:   <200204110155.aa50726@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Wed, 10 Apr 2002 14:06:05 %2B0300." <20020410110605.GJ82820@dru.dn.ua> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020410110605.GJ82820@dru.dn.ua>, "Vladislav V. Zhuk" writes:
>After attempt to write data to write-protected floppy
>(or diskette with bad blocks) FreeBSD die.
>
>It's VERY VERY annoying...  :(
>
>Who can fix this bug??

Unfortunately, this is believed to be very hard to fix, so the best
recommendation is that you avoid mounting filesystems from floppy
disks.

For most uses of floppies, the "mtools" package is a far nicer way
to copy files back and forth anyway, and it does not suffer from
any of the problems with corrupted floppies, write-protected floppies,
forgetting to unmount the floppy before ejecting it etc. If desired,
you can also change the permissions on the floppy device so that
users can access use mtools commands without having to su to root
first. If you haven't used mtools before, it is a set of commands
that allow you to access msdos-formatted disks by running commands
all prefixed by an "m", e.g "mdir", "mcd a:/dir", "mcopy file a:".

The real problem with mounting filesystems from floppies is that
the reliability expectations of floppies are so different from
normal disks. If the kernel detects filesystem corruption on a hard
disk, it is actually more likely to be a kernel fault (maybe due
to faulty memory or a software bug) than a failure of the disk, so
the safest thing to do is panic to avoid possibly making things
worse. Admittedly, FreeBSD's inability to force write-protected
disks to be mounted read-only is pretty bad though...

Ian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200204110155.aa50726>