Re: Time to kill fdc ?

From: C. P. Ghost <cpghost_at_cordula.ws>
Date: Sun, 10 Feb 2013 15:32:42 +0100
On Sun, Feb 10, 2013 at 1:28 PM, Fbsd8 <fbsd8_at_a1poweruser.com> wrote:
> Floppy drive support was removed from Freebsd around release 7.0 I think.
> Read the release-notes for 6.0, 7.0 and 8.0 to determine when it happened.

Nope, floppy support is still there, and AFAICS it is working just fine:

Script started on Sun Feb 10 15:21:07 2013

root_at_phenom:~ # uname -a
FreeBSD phenom.cordula.ws 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0
r244903: Mon Dec 31 15:14:32 CET 2012
root_at_phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC  amd64

root_at_phenom:~ # fdformat /dev/fd0
Format 1440K floppy `/dev/fd0'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

root_at_phenom:~ # newfs /dev/fd0

/dev/fd0: 1.4MB (2880 sectors) block size 32768, fragment size 4096
        using 2 cylinder groups of 1.00MB, 32 blks, 128 inodes.
super-block backups (for fsck_ffs -b #) at:
 192, 2240
root_at_phenom:~ # mount /dev/fd0 /mnt
root_at_phenom:~ # df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd0      1.1M    8.0k    1.0M     1%    /mnt
root_at_phenom:~ # cp /usr/include/sys/_*.h /mnt
root_at_phenom:~ # sync
root_at_phenom:~ # df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd0      1.1M    112k    948k    11%    /mnt
root_at_phenom:~ # ls /mnt
.snap                   _null.h                 _sx.h
_bus_dma.h              _pthreadtypes.h         _task.h
_callout.h              _rmlock.h               _termios.h
_cpuset.h               _rwlock.h               _timespec.h
_iovec.h                _semaphore.h            _timeval.h
_kstack_cache.h         _sigset.h               _types.h
_lock.h                 _sockaddr_storage.h     _umtx.h
_lockmgr.h              _stack.h
_mutex.h                _stdint.h
root_at_phenom:~ # umount /mnt
root_at_phenom:~ # exit
exit

Script done on Sun Feb 10 15:26:10 2013

This was with an 10+ years old 1.44MB floppy that I had
lying around here, on FreeBSD/amd64 9.1 r244903.

It would be a shame to axe that code.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
Received on Sun Feb 10 2013 - 13:32:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC