[...]
: Anyway, when the DOS filesystem code is changed it should not only make
: better checks, but it should also read the parameters and actually report
: them back to the floppy driver. As it is now, when a diskette with 10
: sectors per track (DD) is used and mounted from /dev/fd, the system will
: report no errors but it will logically damage the disk because the
: filesystem's calculations of cluster locations are not consistent with
: the physical location on the floppy :-(
: So, when the diskette says "I'm 10 sectors/track" both the filesystem and
: the floppy driver should be notified of that.
That's the reason why you should use mmount instead of mount for
these filesystems. Mmount takes care of these issues.
: >: I think there was also some consensus that mke2fs should (optionally?)
: >: erase the first sector of the partition, but I don't know if this was
: >: really implemented or in what release that was done.
: > I hope it was not :-) First, it wouldn't fix the problem (which would still
: >exist for the zillions of other filesystem types that Linux supports), and
: >second, it might make some disks unbootable.
: I don't believe that.
: The bootcode in the partition bootsector (or first sector on a floppy) os
: too dependent on the structure of the filesystem to survive a change of
: filesystem type. A disk that had a DOS filesystem with a valid bootsector
: will never boot after it has been changed to ext2fs, no matter if you
: preserve the bootsector.
Not true. One example: On my floppy disks, I have a boot sector which
transfers the boot process to hard disk. This way, I don't need to
remove disks from my drive when rebooting (Yes, I know about viruses,
but these are Linux only disks, and thus the risk is quite
small). With your proposed change, this boot sector would go away
after e2fsck. (Yes, it is easy to replace, but why cause an
inconvenience just to work around a bug in the msdos fs code, which
could be easily fixed in the msdos fs code?)
: Rob
: --
: +------------------------------------+--------------------------------------+
: +------------------------------------+--------------------------------------+
--
Alain