Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 15:32:42 +0100
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        Poul-Henning Kamp <phk@phk.freebsd.dk>, current@freebsd.org
Subject:   Re: Time to kill fdc ?
Message-ID:  <CADGWnjV97p_r3wQadeQscsEAjP1qB44uX3dQEFw6UWSDHvC3vQ@mail.gmail.com>
In-Reply-To: <5117927C.8090204@a1poweruser.com>
References:  <79955.1360494404@critter.freebsd.dk> <5117927C.8090204@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 10, 2013 at 1:28 PM, Fbsd8 <fbsd8@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@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@phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC  amd64

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

root@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@phenom:~ # mount /dev/fd0 /mnt
root@phenom:~ # df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd0      1.1M    8.0k    1.0M     1%    /mnt
root@phenom:~ # cp /usr/include/sys/_*.h /mnt
root@phenom:~ # sync
root@phenom:~ # df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd0      1.1M    112k    948k    11%    /mnt
root@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@phenom:~ # umount /mnt
root@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/



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