Dell OptiPlex GX300 - FreeBSD

Hardware info on main page.

This machine runs the i386 version of FreeBSD.

version:

tingo@kg-t2$ uname -a
FreeBSD kg-t2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Sep 26 13:09:55 CEST 2011     root@kg-t2.kg4.no:/usr/obj/usr/src/sys/GENERIC  i386

Primary drive is ad4, 500GB WDC sata, sliced as follows:

ad4s1  -  116GB  -  FreeBSD, currently 8.2-stable (from 2011)
ad4s2  -  116GB  - 
ad4s3  -  116GB  - 
ad4s4  -  116GB  - 

kvm: port 3

Work log

2020-05-22: ndfs version 1.5 fixes the "can't list files on floppy" problem:

tingo@kg-t2$ ./ndfs -V
ndfs: Sintran Filesystem tool version 1.5
tingo@kg-t2$ ./ndfs -t /dev/fd1
Directory name            : 210523G02-XX-01D
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       28 pages     56182 bytes 1988-03-04 20:13:49 (FLOPPY-USER)TPE-MON-100-B00:BPUN
  0   1: I       12 pages     23040 bytes 1988-03-15 13:25:47 (FLOPPY-USER)CACHE-1X0-A00:TEST
  0   2: I        6 pages     11264 bytes 1988-03-15 13:26:10 (FLOPPY-USER)CACHE-100-A00:NEXT
  0   3: I       15 pages     30720 bytes 1988-03-15 13:25:58 (FLOPPY-USER)CACHE-110-A00:NEXT
  0   4: I       11 pages     20992 bytes 1988-03-15 13:25:49 (FLOPPY-USER)CACHE-120-A00:NEXT
  0   5: I        9 pages     17920 bytes 1986-10-31 10:50:16 (FLOPPY-USER)COLOUR-TERM-A00:TEST
  0   6: I       21 pages     41472 bytes 1988-07-15 18:30:34 (FLOPPY-USER)CONFIGURATIO-D04:TEST
  0   7: I       35 pages     71680 bytes 1986-11-11 10:50:41 (FLOPPY-USER)DISC-TEMA-I11:TEST
  0   8: I       23 pages     47104 bytes 1988-05-26 11:09:12 (FLOPPY-USER)FLOPPY-STREA-C02:TEST
  0   9: I       29 pages     58368 bytes 1986-10-16 10:37:37 (FLOPPY-USER)GRAPHIC-TERM-B00:TEST
  0  10: I        2 pages      3082 bytes 1986-04-17 14:47:07 (FLOPPY-USER)GRAPHIC-TERM-B00:FONT
  0  11: I       10 pages     19456 bytes 1986-10-31 12:02:28 (FLOPPY-USER)HDLC-MEGALIN-D00:TEST
  0  12: I       17 pages     34816 bytes 1988-03-15 14:56:43 (FLOPPY-USER)INSTRUCTION-C03:TEST
  0  13: I        5 pages     10240 bytes 1987-08-31 16:41:01 (FLOPPY-USER)LP-TEST-E01:TEST
  0  14: I        7 pages     13824 bytes 1986-10-31 12:24:28 (FLOPPY-USER)MAGTAPE-B00:TEST
  0  15: I       17 pages     33792 bytes 1988-03-04 19:49:08 (FLOPPY-USER)MEMORY-D04:TEST
  0  16: I       17 pages     34304 bytes 1988-06-15 09:38:31 (FLOPPY-USER)NET-ONE-A00:TEST
  0  17: I       31 pages     62976 bytes 1988-06-15 13:15:26 (FLOPPY-USER)OCTOBUS-B00:TEST
  0  18: I       18 pages     35328 bytes 1988-03-04 14:15:27 (FLOPPY-USER)PAGING-C02:TEST
  0  19: I       34 pages     68608 bytes 1988-03-03 09:29:13 (FLOPPY-USER)PIOC-ETHER-B01:TEST
  0  20: I       34 pages     68096 bytes 1988-03-03 09:31:17 (FLOPPY-USER)PIOC-ETHER-B01:NEXT
  0  21: I        4 pages      7680 bytes 1988-03-15 15:16:34 (FLOPPY-USER)POWER-FAIL-A01:TEST
  0  22: I       35 pages     70656 bytes 1987-09-10 16:13:55 (FLOPPY-USER)PRINTERS-B00:TEST
  0  23: I        2 pages      3584 bytes 1987-09-10 16:14:00 (FLOPPY-USER)PRINTERS-001-B00:NEXT
  0  24: I        2 pages      3584 bytes 1987-09-10 16:14:00 (FLOPPY-USER)PRINTERS-002-B00:NEXT
  0  25: I        2 pages      3584 bytes 1987-09-10 16:14:01 (FLOPPY-USER)PRINTERS-003-B00:NEXT
  0  26: I        2 pages      3584 bytes 1987-09-10 16:14:02 (FLOPPY-USER)PRINTERS-004-B00:NEXT
  0  27: I        2 pages      3584 bytes 1987-09-10 16:14:03 (FLOPPY-USER)PRINTERS-005-B00:NEXT
  0  28: I        2 pages      3584 bytes 1987-09-10 16:14:03 (FLOPPY-USER)PRINTERS-006-B00:NEXT
  0  29: I        2 pages      3584 bytes 1987-09-10 16:14:04 (FLOPPY-USER)PRINTERS-007-B00:NEXT
  0  30: I        2 pages      3584 bytes 1987-09-10 16:14:05 (FLOPPY-USER)PRINTERS-008-B00:NEXT
  0  31: I        6 pages     12288 bytes 1986-10-31 12:35:18 (FLOPPY-USER)SYNC-MODEM-B00:TEST
  0  32: I       13 pages     26112 bytes 1987-08-31 18:10:06 (FLOPPY-USER)TERMINAL-ASY-F01:TEST
  0  33: I       22 pages     44032 bytes 1987-09-28 14:26:06 (FLOPPY-USER)UNIVERS-DMA-C01:TEST
Directory size            : 611 pages
Bit file size             : 1 page

great!

2010-05-21: write a ND format 17b floppy. Insert a floppy, then set correct format

tingo@kg-t2$ sudo fdcontrol -f 1232 /dev/fd1
tingo@kg-t2$ sudo fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

next, format floppy

tingo@kg-t2$ sudo fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

then write the image

tingo@kg-t2$ sudo dd if=./210523h00-xx-02d.image of=/dev/fd1 bs=1024
dd: /dev/fd1: end of device
1233+0 records in
1232+0 records out
1261568 bytes transferred in 230.795395 secs (5466 bytes/sec)

hmm, the image is a bit big. Oh, well, let's see how it goes. finally, verify with ndfs

tingo@kg-t2$ ndfs -V
ndfs: Sintran Filesystem tool version 1.4
tingo@kg-t2$ ndfs -t /dev/fd1
Corrupt directory: Image size smaller than minimum size

hmm, that didn't work out. Check the image too

tingo@kg-t2$ ndfs -t 210523h00-xx-02d.image
Directory name            : 210523H00-XX-02D
Directory size            : 640 pages
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       28 pages     56182 bytes 1988-11-17 14:55:15 (FLOPPY-USER)TPE-MON-100-B01:BPUN
  0   1: I       36 pages     73728 bytes 1988-11-15 10:20:16 (FLOPPY-USER)DISK-MM-B01:TEST
  0   2: I       41 pages    268800 bytes 1988-12-08 16:09:59 (FLOPPY-USER)SCSI-TV-C00:TEST
  0   3: I       15 pages    268800 bytes 1988-12-08 16:10:03 (FLOPPY-USER)SCSI-TV-E0-C00:NEXT
  0   4: I       10 pages    268800 bytes 1988-12-08 16:10:06 (FLOPPY-USER)SCSI-TV-E1-C00:NEXT
  0   5: I       10 pages    268800 bytes 1988-12-08 16:10:08 (FLOPPY-USER)SCSI-TV-E2-C00:NEXT
  0   6: I       15 pages    268800 bytes 1988-12-08 16:10:10 (FLOPPY-USER)SCSI-TV-E3-C00:NEXT
  0   7: I       18 pages    268800 bytes 1988-12-08 16:10:12 (FLOPPY-USER)SCSI-TV-C1-C00:NEXT
  0   8: I       28 pages    268800 bytes 1988-12-08 16:10:13 (FLOPPY-USER)SCSI-TV-A0-C00:NEXT
  0   9: I       18 pages    268800 bytes 1988-12-08 16:10:16 (FLOPPY-USER)SCSI-TV-D0-C00:NEXT
  0  10: I       18 pages    268800 bytes 1988-12-08 16:10:17 (FLOPPY-USER)SCSI-TV-D1-C00:NEXT
  0  11: I       18 pages    268800 bytes 1988-12-08 16:10:19 (FLOPPY-USER)SCSI-TV-D2-C00:NEXT
  0  12: I       18 pages    268800 bytes 1988-12-08 16:10:21 (FLOPPY-USER)SCSI-TV-D3-C00:NEXT
Directory size: 611 pages
Bit file size : 1 page

it checks out, even if it is too big. Let me try this:

tingo@kg-t2$ sudo dd if=./210523h00-xx-02d.image of=/dev/fd1 bs=1024 count=1232
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.670055 secs (5469 bytes/sec)

looks better. ndfs

tingo@kg-t2$ ndfs -t /dev/fd1
Corrupt directory: Image size smaller than minimum size

hmm, what about the prevoius version of ndfs then?

tingo@kg-t2$ ndfs_1.3 -t /dev/fd1
Directory name            : 210523H00-XX-02D
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       28 pages     56182 bytes 1988-11-17 14:55:15 (FLOPPY-USER)TPE-MON-100-B01:BPUN
  0   1: I       36 pages     73728 bytes 1988-11-15 10:20:16 (FLOPPY-USER)DISK-MM-B01:TEST
  0   2: I       41 pages    268800 bytes 1988-12-08 16:09:59 (FLOPPY-USER)SCSI-TV-C00:TEST
  0   3: I       15 pages    268800 bytes 1988-12-08 16:10:03 (FLOPPY-USER)SCSI-TV-E0-C00:NEXT
  0   4: I       10 pages    268800 bytes 1988-12-08 16:10:06 (FLOPPY-USER)SCSI-TV-E1-C00:NEXT
  0   5: I       10 pages    268800 bytes 1988-12-08 16:10:08 (FLOPPY-USER)SCSI-TV-E2-C00:NEXT
  0   6: I       15 pages    268800 bytes 1988-12-08 16:10:10 (FLOPPY-USER)SCSI-TV-E3-C00:NEXT
  0   7: I       18 pages    268800 bytes 1988-12-08 16:10:12 (FLOPPY-USER)SCSI-TV-C1-C00:NEXT
  0   8: I       28 pages    268800 bytes 1988-12-08 16:10:13 (FLOPPY-USER)SCSI-TV-A0-C00:NEXT
  0   9: I       18 pages    268800 bytes 1988-12-08 16:10:16 (FLOPPY-USER)SCSI-TV-D0-C00:NEXT
  0  10: I       18 pages    268800 bytes 1988-12-08 16:10:17 (FLOPPY-USER)SCSI-TV-D1-C00:NEXT
  0  11: I       18 pages    268800 bytes 1988-12-08 16:10:19 (FLOPPY-USER)SCSI-TV-D2-C00:NEXT
  0  12: I       18 pages    268800 bytes 1988-12-08 16:10:21 (FLOPPY-USER)SCSI-TV-D3-C00:NEXT
Directory size: 611 pages
Bit file size : 1 page

odd. Let me see if this floppy works in a real machine. Later - it does work on my ND-110. It seems te problem is wih ndfs 1.4 - it can't list files on a real floppy, even if it lists files on the image the floppy was made from! Anyway, ndfs_1.3 (the previous version) still works.

2019-04-14: write a ND format 17b floppy. Insert a floppy, then set correct format

tingo@kg-t2$ sudo fdcontrol -f 1232 /dev/fd1
tingo@kg-t2$ sudo fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

next format the floppy

tingo@kg-t2$ sudo fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

then write the image

tingo@kg-t2$ sudo dd if=./ND-DMM_1988-09-30.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.765361 secs (5467 bytes/sec)

finally, verify with 'ndfs -t'

tingo@kg-t2$ ndfs -t /dev/fd1
Directory name            : DMM
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 614 SI: 0x0 (contiguous)
No. of unreserved pages   : 2
Files:
  0   0: I       28 pages     56320 bytes 1988-09-30 13:19:32 (FLOPPY-USER)TPE-MON-100-B00:PROG
  0   1: I       38 pages     77824 bytes 1988-10-12 18:51:09 (FLOPPY-USER)DMM-05C00:TEST
  0   2: I       11 pages     22528 bytes 1988-10-12 18:51:18 (FLOPPY-USER)DMM-E1-05C00:NEXT
  0   3: I       11 pages     22528 bytes 1988-10-12 18:51:21 (FLOPPY-USER)DMM-E2-05C00:NEXT
  0   4: I        6 pages     12288 bytes 1988-10-12 18:51:24 (FLOPPY-USER)DMM-C1-05C00:NEXT
  0   5: I        6 pages     12288 bytes 1988-10-12 18:51:26 (FLOPPY-USER)DMM-C2-05C00:NEXT
  0   6: I        6 pages     12288 bytes 1988-10-12 18:51:28 (FLOPPY-USER)DMM-C3-05C00:NEXT
  0   7: I        6 pages     12288 bytes 1988-10-12 18:51:30 (FLOPPY-USER)DMM-C4-05C00:NEXT
  0   8: I       16 pages     31086 bytes 1991-04-12 11:22:19 (FLOPPY-USER)BDIO-DUMP:OUT
Directory size: 611 pages
Bit file size : 1 page

looks good.

2019-04-08: writing a 5.25 inch, 1.2 MB ms-dos formatted floppy: check format

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

format the floppy

root@kg-t2# fdformat -f 1200 /dev/fd1
Format 1200K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.
check format again
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

put a msdos filesystem on it

root@kg-t2# newfs_msdos -f 1200 /dev/fd1
/dev/fd1: 2371 sectors in 2371 FAT12 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=1 FATs=2 RootDirEnts=224 Sectors=2400 Media=0xf9 FATsecs=7 SecPerTrack=15 Heads=2 HiddenSecs=0

and use mdir

root@kg-t2# mdir b:
 Volume in drive B has no label
 Volume Serial Number is BFFB-10F3
Directory for B:/

No files
                          1 213 952 bytes free

ok

2019-31-31: next a ND format 17b floppy.. I insert a 5.25 inch, HD floppy. Change format:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

then format the floppy

root@kg-t2# fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

check that the format hasn't switched back

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

good. Now write the image to the floppy

tingo@kg-t2$ sudo dd if=./2018/0311/211024C01-XX-01D.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.793251 secs (5466 bytes/sec)

use ndfs to verify

tingo@kg-t2$ ndfs -t /dev/fd1
Directory name            : 211024C01-XX-01D
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       89 pages    184320 bytes 1987-09-21 12:21:10 (FLOPPY-USER)S3-CONFIG-C00:PROG
  0   1: I       16 pages     32448 bytes 1987-05-18 08:39:11 (FLOPPY-USER)DDBTABLES-E07:VTM
  0   2: I       51 pages     86016 bytes 1987-09-21 12:21:27 (FLOPPY-USER)NOTS-SERVICE-C00:PROG
Directory size: 611 pages
Bit file size : 1 page

looks good.

2019-31-31: first try a ND format 0b floppy. I insert a 5.25 inch, HD floppy. Change format:

root@kg-t2# fdcontrol -s 8,512,0xff,40,77,500,1,80,0,0,-mfm /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x28,77,500,1,0x50,0,0,+auto
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    40
    Format gap:    80
    Interleave:    0
    Side offset:    0
    Flags        <AUTO>

verified ok. Now format the floppy

root@kg-t2# fdformat -s 8,512,0xff,40,77,500,1,80,0,0,-mfm /dev/fd1
Format 308K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

formatting went ok. Check format

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

aha, it has been reset. Change it back and verify

root@kg-t2# fdcontrol -s 8,512,0xff,40,77,500,1,80,0,0,-mfm /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x28,77,500,1,0x50,0,0,+auto
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    40
    Format gap:    80
    Interleave:    0
    Side offset:    0
    Flags        <AUTO>

write image

tingo@kg-t2$ dd if=./2018/0326/ND-10005U.image of=/dev/fd1 bs=512
dd: /dev/fd1: Permission denied

ok, install sudo and retry

tingo@kg-t2$ sudo dd if=./2018/0326/ND-10005U.image of=/dev/fd1 bs=512
616+0 records in
616+0 records out
315392 bytes transferred in 115.287074 secs (2736 bytes/sec)

now, run ndfs on it

tingo@kg-t2$ ndfs -t /dev/fd1
Directory name            : ND-10005U
Object file index pointer : 150 SI: 0x1 (indexed)
User file index pointer   : 152 SI: 0x1 (indexed)
Bit file pointer          : 77 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       11 pages     21864 bytes 1984-01-09 13:26:39 (FLOPPY-USER)NRL-1935J:BPUN
  0   1: I        2 pages      3852 bytes 1982-03-17 11:07:51 (FLOPPY-USER)GPM-2365B:BPUN
  0   2: I        2 pages      4067 bytes 1982-03-17 11:09:37 (FLOPPY-USER)GPM-LIBR-2366B:SYMB
  0   3: I       25 pages     49569 bytes 1983-12-19 13:47:07 (FLOPPY-USER)PERFORM-2412F:BPUN
  0   4: I        2 pages      3497 bytes 1984-01-09 13:30:26 (FLOPPY-USER)PERFORM-LIBRARY:MCRO
  0   5: I        9 pages     16748 bytes 1983-12-30 10:21:59 (FLOPPY-USER)BRF-EDITOR-1858F:BPUN
  0   6: I       19 pages     38394 bytes 1978-12-21 13:54:33 (FLOPPY-USER)F32-EXTR-2232B:BPUN
  0   7: I       41 pages     82337 bytes 1984-01-09 13:30:36 (FLOPPY-USER)LOOK-FILE-2244E:BPUN
Directory size: 149 pages
Bit file size : 1 page

worked nicely.

2019-03-31: I fired up the machine again to write some floppies from images.

2018-03-25: ND format 0b, try with parameters suggested in VCFED forum thread:

root@kg-t2# fdcontrol -s 8,512,0xff,40,77,500,1,80,0,0,-mfm /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x28,77,500,1,0x50,0,0
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    40
    Format gap:    80
    Interleave:    0
    Side offset:    0
    Flags        <>

Correction - this actually works. Yay!

2018-03-19: try to set up parameters for ND format 0b (512 bytes / sector, 8 sectors / track, 77 tracks, Single Side, Single Density, 154 pages):

root@kg-t2# fdcontrol -s 8,512,0xFF,0x35,77,500,1,0x74,1,0,+mfm /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x35,77,500,1,0x74,1,0,+mfm
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

didn't work

root@kg-t2# fdcontrol -s 8,512,0xFF,0x35,77,250,1,0x74,1,0,+mfm /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x35,77,250,1,0x74,1,0,+mfm
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    250 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

didn't work

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 308 KB media type
    Format:        8,512,0xff,0x35,77,300,1,0x74,1,0,+mfm
    Sector size:    512
    Sectors/track:    8
    Heads/cylinder:    1
    Cylinders/disk:    77
    Transfer rate:    300 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

also didn't work.

root@kg-t2# fdcontrol -s 8,512,0xFF,0x35,77,1000,1,0x74,1,0,+mfm /dev/fd1
fdcontrol: bad speed 1000
speed 1000 not supported.

2018-03-04: set up to make images

tingo@kg-t2$ cd ~/work/nd
tingo@kg-t2$ mkdir -p 2018/0304
tingo@kg-t2$ cd 2018/0304

ok

2018-03-04: I inserted a floppy, then check format

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

change to ND format

root@kg-t2# fdcontrol -f 1232 /dev/fd1

verify

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

ok

2018-03-04: I booted the machine to verify it still works. I had to switch to the console (port 3 on the KVM switch) because of the "press F1 to continue" prompt. The machine still works

tingo@kg-core1$ ping t2
PING kg-t2.kg4.no (10.1.10.7): 56 data bytes
64 bytes from 10.1.10.7: icmp_seq=0 ttl=64 time=0.239 ms
64 bytes from 10.1.10.7: icmp_seq=1 ttl=64 time=0.164 ms
^C
--- kg-t2.kg4.no ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.164/0.202/0.239/0.037 ms
tingo@kg-core1$ ssh t2
The authenticity of host 'kg-t2.kg4.no (10.1.10.7)' can't be established.
RSA key fingerprint is SHA256:h+BbQw/ZFHNaX7+lCdRa9i7rp7keX/0Thz/NpST+97I.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'kg-t2.kg4.no' (RSA) to the list of known hosts.
Password:
Last login: Wed Aug 31 23:24:11 2016 from kg-core1.kg4.no
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
    The Regents of the University of California.  All rights reserved.

FreeBSD 8.2-STABLE (GENERIC) #1: Mon Sep 26 13:09:55 CEST 2011

Welcome to FreeBSD!

*************************************************************************
*                                    *
*            kg-t2                        *
*            kg4.no                        *
*                                    *
*************************************************************************

You can use /etc/make.conf to control the options used to compile software
on this system.  Example entries are in
/usr/share/examples/etc/make.conf.
tingo@kg-t2$

ok

2016-07-11: rewrite floppy 2, just to be on the safe side:

root@kg-t2# dd if=/home/tingo/dl/nd/floppies/250305M05-XX-02D.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 231.313758 secs (5454 bytes/sec)

verify

root@kg-t2# /home/tingo/bin/ndfs -t /dev/fd1
Directory name            : 250305M05-XX-02D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: A      589 pages    690015 bytes 1990-01-24 08:26:18 (SYSTEM)SINTRAN-M-2:DATA
Directory size: 611 pages
Bit file size : 1 page

ok.

2016-07-11: check floppies. Second first:

root@kg-t2# /home/tingo/bin/ndfs -t /dev/fd1
Directory name            : 250305M05-XX-02D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: A      589 pages    690015 bytes 1990-01-24 08:26:18 (SYSTEM)SINTRAN-M-2:DATA
Directory size: 611 pages
Bit file size : 1 page

looks ok. How about floppy 1?

root@kg-t2# /home/tingo/bin/ndfs -t /dev/fd1
Directory name            : 250305M05-XX-01D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: A       20 pages     39497 bytes 1990-01-24 08:12:12 (SYSTEM)MACM-1718L:BPUN
  0   1: A      589 pages   1109625 bytes 1990-01-24 08:12:20 (SYSTEM)SINTRAN-M-1:DATA
Directory size: 611 pages
Bit file size : 1 page

it also looks ok. floppy 3 is unused

root@kg-t2# /home/tingo/bin/ndfs -t /dev/fd1
Directory name            : 250305M05-XX-03D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: C       21 pages     43008 bytes 1990-01-24 08:29:31 (SYSTEM)NEW-SYSTEM:PROG
  0   1: C       29 pages     57476 bytes 1990-01-24 08:29:37 (SYSTEM)DMAC-1915G:BPUN
  0   2: C       15 pages     28791 bytes 1990-01-24 08:29:45 (SYSTEM)F32-FMAC-1920C:PROG
  0   3: C       15 pages     28791 bytes 1990-01-24 08:29:49 (SYSTEM)F48-FMAC-1408D:PROG
  0   4: C       31 pages     62902 bytes 1990-01-24 08:29:53 (SYSTEM)FILSYS-SYMBOLS:SYMB
  0   5: C       28 pages     56986 bytes 1990-01-24 08:30:02 (SYSTEM)RTLO-SYMBOLS:SYMB
  0   6: C        4 pages      7453 bytes 1990-01-24 08:30:10 (SYSTEM)COS-TADADM:BPUN
  0   7: C       55 pages    111103 bytes 1990-01-24 08:30:12 (SYSTEM)XMSG-COMMAND:PROG
  0   8: C        3 pages      4495 bytes 1990-01-24 08:30:26 (SYSTEM)XMSG-STARTEX:MODE
  0   9: C        1 page        880 bytes 1990-01-24 08:30:27 (SYSTEM)XMSG-STARTEX:BATC
  0  10: C       18 pages     36042 bytes 1990-01-24 08:30:28 (SYSTEM)XMSG-SYMBOL-LIST:SYMB
  0  11: C       61 pages    123252 bytes 1990-01-24 08:30:34 (SYSTEM)N500-SYMBOLS:SYMB
  0  12: C       61 pages    124323 bytes 1990-01-24 08:30:49 (SYSTEM)N5000-SYMBOLS:SYMB
  0  13: C       48 pages     98197 bytes 1990-01-24 08:31:05 (SYSTEM)ND500-MONITOR:BPUN
  0  14: C       40 pages     81505 bytes 1990-01-24 08:31:18 (SYSTEM)ER-S3WD-DESC-D:EDAT
  0  15: C       21 pages     43008 bytes 1990-01-24 08:31:29 (SYSTEM)ER-S3WD-LOG-D:PROG
  0  16: C       12 pages     24576 bytes 1990-01-24 08:31:35 (SYSTEM)ER-S3WD-MANA-D:PROG
  0  17: C       52 pages    104920 bytes 1990-01-24 08:31:39 (SYSTEM)SYMBOL-1-LIST:SYMB
  0  18: C       34 pages     69166 bytes 1990-01-24 08:31:53 (SYSTEM)SYMBOL-2-LIST:SYMB
  0  19: C        6 pages     11675 bytes 1990-01-24 08:32:03 (SYSTEM)LIBRARY-MARKS:SYMB
Directory size: 611 pages
Bit file size : 1 page

and looks ok.

2016-07-11: set up correct floppy format first:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>
root@kg-t2# fdcontrol -f 1232 /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

ok.

2016-06-30: write SINTRAN III release M images to floppies. from where:

tingo@kg-t2$ pwd
/usr/home/tingo/dl/nd/floppies
tingo@kg-t2$ su
Password:

floppy 1:

root@kg-t2# dd if=./250305M05-XX-01D.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.833494 secs (5465 bytes/sec)

verify it:

root@kg-t2# ndfs -t /dev/fd1
Directory name            : 250305M05-XX-01D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: A       20 pages     39497 bytes 1990-01-24 08:12:12 (SYSTEM)MACM-1718L:BPUN
  0   1: A      589 pages   1109625 bytes 1990-01-24 08:12:20 (SYSTEM)SINTRAN-M-1:DATA
Directory size: 611 pages
Bit file size : 1 page

ok. floppy 2:

root@kg-t2# dd if=./250305M05-XX-02D.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.833987 secs (5465 bytes/sec)

verify:

root@kg-t2# ndfs -t /dev/fd1
Directory name            : 250305M05-XX-02D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: A      589 pages    690015 bytes 1990-01-24 08:26:18 (SYSTEM)SINTRAN-M-2:DATA
Directory size: 611 pages
Bit file size : 1 page

floppy 3:

root@kg-t2# dd if=./250305M05-XX-03D.image of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.837731 secs (5465 bytes/sec)

verify:

root@kg-t2# ndfs -t /dev/fd1
Directory name            : 250305M05-XX-03D
Object file index pointer : 611 SI: 0x1 (indexed)
User file index pointer   : 613 SI: 0x1 (indexed)
Bit file pointer          : 615 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: C       21 pages     43008 bytes 1990-01-24 08:29:31 (SYSTEM)NEW-SYSTEM:PROG
  0   1: C       29 pages     57476 bytes 1990-01-24 08:29:37 (SYSTEM)DMAC-1915G:BPUN
  0   2: C       15 pages     28791 bytes 1990-01-24 08:29:45 (SYSTEM)F32-FMAC-1920C:PROG
  0   3: C       15 pages     28791 bytes 1990-01-24 08:29:49 (SYSTEM)F48-FMAC-1408D:PROG
  0   4: C       31 pages     62902 bytes 1990-01-24 08:29:53 (SYSTEM)FILSYS-SYMBOLS:SYMB
  0   5: C       28 pages     56986 bytes 1990-01-24 08:30:02 (SYSTEM)RTLO-SYMBOLS:SYMB
  0   6: C        4 pages      7453 bytes 1990-01-24 08:30:10 (SYSTEM)COS-TADADM:BPUN
  0   7: C       55 pages    111103 bytes 1990-01-24 08:30:12 (SYSTEM)XMSG-COMMAND:PROG
  0   8: C        3 pages      4495 bytes 1990-01-24 08:30:26 (SYSTEM)XMSG-STARTEX:MODE
  0   9: C        1 page        880 bytes 1990-01-24 08:30:27 (SYSTEM)XMSG-STARTEX:BATC
  0  10: C       18 pages     36042 bytes 1990-01-24 08:30:28 (SYSTEM)XMSG-SYMBOL-LIST:SYMB
  0  11: C       61 pages    123252 bytes 1990-01-24 08:30:34 (SYSTEM)N500-SYMBOLS:SYMB
  0  12: C       61 pages    124323 bytes 1990-01-24 08:30:49 (SYSTEM)N5000-SYMBOLS:SYMB
  0  13: C       48 pages     98197 bytes 1990-01-24 08:31:05 (SYSTEM)ND500-MONITOR:BPUN
  0  14: C       40 pages     81505 bytes 1990-01-24 08:31:18 (SYSTEM)ER-S3WD-DESC-D:EDAT
  0  15: C       21 pages     43008 bytes 1990-01-24 08:31:29 (SYSTEM)ER-S3WD-LOG-D:PROG
  0  16: C       12 pages     24576 bytes 1990-01-24 08:31:35 (SYSTEM)ER-S3WD-MANA-D:PROG
  0  17: C       52 pages    104920 bytes 1990-01-24 08:31:39 (SYSTEM)SYMBOL-1-LIST:SYMB
  0  18: C       34 pages     69166 bytes 1990-01-24 08:31:53 (SYSTEM)SYMBOL-2-LIST:SYMB
  0  19: C        6 pages     11675 bytes 1990-01-24 08:32:03 (SYSTEM)LIBRARY-MARKS:SYMB
Directory size: 611 pages
Bit file size : 1 page

ok. That is all on the floppy writing machine

2016-06-30: check floppies - I opened a NOS box of 10 5.25 inch 3M DS, HD floppies, inserted one and checked the format:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

ok, wrong format, change it:

root@kg-t2# fdcontrol -f 1232 /dev/fd1

verify

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

try to format a floppy:

root@kg-t2# fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

worked nicely. I need three floppies, so I formatted two more - all ok.

2016-06-30: I booted the machine to write some ND floppies. I had to connect a console, because I got a "press F1 to continue" prompt. After that the machine boots and works as normal:

root@kg-t2# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime
Thu Jun 30 15:04:47 CEST 2016
sysctl: unknown oid 'hw.acpi.thermal.tz0.temperature'
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       2097152       0B     2.0G     0%

Jun 30 14:18:59 kg-t2 kernel: GEOM: ad4s1: geometry does not match label (255h,63s != 16h,63s).
Jun 30 14:18:59 kg-t2 kernel: Trying to mount root from ufs:/dev/ad4s1a
Jun 30 14:19:01 kg-t2 dhclient: New IP Address (xl0): 10.1.10.7
Jun 30 14:19:01 kg-t2 dhclient: New Subnet Mask (xl0): 255.255.0.0
Jun 30 14:19:01 kg-t2 dhclient: New Broadcast Address (xl0): 10.1.255.255
Jun 30 14:19:01 kg-t2 dhclient: New Routers (xl0): 10.1.10.1
Jun 30 14:19:02 kg-t2 ntpd[894]: ntpd 4.2.4p5-a (1)
Jun 30 14:21:35 kg-t2 su: tingo to root on /dev/pts/0
Jun 30 15:02:49 kg-t2 ntpd[895]: time reset +2372.464933 s
Jun 30 15:02:49 kg-t2 ntpd[895]: kernel time sync status change 2001

Oct 22 21:53:31 kg-t2 newsyslog[560]: logfile first created

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    495M    221M    234M    49%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1e    495M    1.3M    454M     0%    /tmp
/dev/ad4s1f    108G    3.0G     96G     3%    /usr
/dev/ad4s1d    1.4G    277M    1.0G    21%    /var

 3:04PM  up 6 mins, 1 user, load averages: 0.00, 0.08, 0.06
root@kg-t2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 81.175.5.182     2 u   59   64    3    0.274    0.080   0.075

good.

2013-12-15: ad4s1 - copying the P112 Z System source floppy:

root@kg-t2# dd if=./sc113005.img of=/dev/fd0 bs=32768
45+0 records in
45+0 records out
1474560 bytes transferred in 56.154144 secs (26259 bytes/sec)

crap - all my old floppies seem to give up. copy to another:

root@kg-t2# dd if=./sc113005.img of=/dev/fd0 bs=32768
45+0 records in
45+0 records out
1474560 bytes transferred in 78.567217 secs (18768 bytes/sec)

that was it.

2013-12-15: ad4s1 - copying the P112 Z System boot floppy again:

tingo@kg-t2$ cd ~/dl/p112/images
tingo@kg-t2$ ls -l *img
-r--r--r--  1 tingo  users  1474560 Oct 25 18:11 uzi180-070805.img
-r--r--r--  1 tingo  users  1474560 Oct 25 18:11 zs113005.img
tingo@kg-t2$ su
Password:
root@kg-t2# dd if=./zs113005.img of=/dev/fd0 bs=8192
180+0 records in
180+0 records out
1474560 bytes transferred in 80.014117 secs (18429 bytes/sec)

that first floppy sounded like it had problems, even if it copied correctly. I also copied to another floppy just to be on the safe side.

root@kg-t2# dd if=./zs113005.img of=/dev/fd0 bs=8192
180+0 records in
180+0 records out
1474560 bytes transferred in 80.088143 secs (18412 bytes/sec)

done. Now, copy the first floppy again, just to try out the 16k blocksize

root@kg-t2# dd if=./zs113005.img of=/dev/fd0 bs=16384
90+0 records in
90+0 records out
1474560 bytes transferred in 64.115569 secs (22998 bytes/sec)

will it work with 32k blocksize too?

root@kg-t2# dd if=./zs113005.img of=/dev/fd0 bs=32768
45+0 records in
45+0 records out
1474560 bytes transferred in 55.841362 secs (26406 bytes/sec)

it does (but this floppy is broken).

2013-12-14: ad4s1 - copying the P112-GIDE distribution floppy to an image:

root@kg-t2# dd if=/dev/fd0 of=./p112-gide-distr.img bs=4096
360+0 records in
360+0 records out
1474560 bytes transferred in 144.048784 secs (10237 bytes/sec)

Ok, now make a copy to another floppy:

root@kg-t2# dd if=./p112-gide-distr.img of=/dev/fd0 bs=4096
360+0 records in
360+0 records out
1474560 bytes transferred in 112.043879 secs (13161 bytes/sec)

done.

2013-12-13: ad4s1 - writing a zsdos image for my P112:

root@kg-t2# dd if="./P112 Flpy Img 10-24-13.img" of=/dev/fd0 bs=1024
1440+0 records in
1440+0 records out
1474560 bytes transferred in 320.158741 secs (4606 bytes/sec)

disktype info:

root@kg-t2# disktype /dev/fd0

--- /dev/fd0
Character device, size 1.406 MiB (1474560 bytes)

it doesn't look like it understand CP/M filesystems. Oh well.

2013-10-27: ad4s1 - writing a UZI180 floppy image for my P112. Check floppy settings:

tingo@kg-t2$ fdcontrol -vF /dev/fd0
/dev/fd0: 1440 KB media type
    Format:        18,512,0xff,0x1b,80,500,2,0x6c,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    18
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    108
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

write the image:

tingo@kg-t2$ dd if=./uzi180-070805.img of=/dev/fd0 bs=1024
dd: /dev/fd0: Permission denied

Ok, try again as root:

root@kg-t2# dd if=./uzi180-070805.img of=/dev/fd0 bs=1024
1440+0 records in
1440+0 records out
1474560 bytes transferred in 319.959140 secs (4609 bytes/sec)

Done.

2013-10-27: ad4s1 - I've got a few DEC floppies as well. These are marked "RX31K" and "2D 48TPI". According to this page, it is a 360 kb format, so let's try that:

tingo@kg-t2$ fdcontrol -f 360 /dev/fd1
tingo@kg-t2$ fdcontrol -vF /dev/fd1
/dev/fd1: 360 KB media type
    Format:        9,512,0xff,0x23,40,300,2,0x50,1,0,+mfm,+2step
    Sector size:    512
    Sectors/track:    9
    Heads/cylinder:    2
    Cylinders/disk:    40
    Transfer rate:    300 kbps
    Sector gap:    35
    Format gap:    80
    Interleave:    1
    Side offset:    0
    Flags        <MFM,2STEP>

and disktype it:

tingo@kg-t2$ disktype /dev/fd1

--- /dev/fd1
Character device, size 360 KiB (368640 bytes)
disktype: Data read failed at position 364544: Input/output error
FAT12 file system (hints score 5 of 5)
  Volume size 354 KiB (362496 bytes, 354 clusters of 1 KiB)
disktype: Data read failed at position 32768: Input/output error

OK, not a total failure. Mount it:

root@kg-t2# mount -t msdosfs -r /dev/fd1 /mnt
root@kg-t2# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd1      356k    337k     19k    95%    /mnt
root@kg-t2# l /mnt
./     ../    pcapp/
root@kg-t2# l /mnt/*
./            dcontrol.exe* practice.wri* reversi.exe*  terminal.exe*
../           pifedit.exe*  readme.txt*   spooler.exe*  write.exe*
root@kg-t2# more /mnt/pcapp/readme.txt

and I got read errors here.

root@kg-t2# umount /mnt

image it:

tingo@kg-t2$ dd if=/dev/fd1 of=./pcsa_12_12.image bs=1024
dd: /dev/fd1: Input/output error
18+0 records in
18+0 records out
18432 bytes transferred in 10.399188 secs (1772 bytes/sec)

decide later. Ok, all floppies gives errors on disktype and dd. Perhaps some format setting is wrong?

2013-10-27: ad4s1 - I've got ten floppies in a white plastic box labeled "Handelsakademiet", the floppies are also labeled "DS/HD 96 tpi". Let's try them out: I'm using the PC format:

tingo@kg-t2$ fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

disktype check:

tingo@kg-t2$ disktype /dev/fd1

--- /dev/fd1
Character device, size 1.172 MiB (1228800 bytes)
Windows / MS-DOS boot loader
FAT12 file system (hints score 5 of 5)
  Volume size 1.158 MiB (1213952 bytes, 2371 clusters of 512 bytes)
root@kg-t2# mount -t msdosfs -r /dev/fd1 /mnt
root@kg-t2# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd1      1.2M    1.0k    1.2M     0%    /mnt
root@kg-t2# umount /mnt

Ok, empty, FAT-formatted. After checking the nine others, they are empty too.

2013-10-27: ad4s1 - read one of the floppies marked "1.2M":

tingo@kg-t2$ dd if=/dev/fd1 of=./test1.image bs=1024
dd: /dev/fd1: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 3.327283 secs (0 bytes/sec)

Hmm, it didn't read at all. Wrong format? Try a different format:

tingo@kg-t2$ fdcontrol -f 1200 /dev/fd1
tingo@kg-t2$ fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

and read again:

tingo@kg-t2$ dd if=/dev/fd1 of=./test1.image bs=1024
1200+0 records in
1200+0 records out
1228800 bytes transferred in 224.775460 secs (5467 bytes/sec)

read without errors this time. disktype thinks this is FAT12:

tingo@kg-t2$ disktype /dev/fd1

--- /dev/fd1
Character device, size 1.172 MiB (1228800 bytes)
Windows / MS-DOS boot loader
FAT12 file system (hints score 5 of 5)
  Volume size 1.158 MiB (1213952 bytes, 2371 clusters of 512 bytes)

Hmm, let's try to mount it (ro):

root@kg-t2# mount -t msdosfs -r /dev/fd1 /mnt
root@kg-t2# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fd1      1.2M    1.0k    1.2M     0%    /mnt

aha - empty. The other three are empty too. Next, read one of the unmarked (3 x Maxell MD2-256HD (96tpi) ones:

tingo@kg-t2$ disktype /dev/fd1

--- /dev/fd1
Character device, size 1.172 MiB (1228800 bytes)
disktype: Data read failed at position 0: Input/output error

probably unformatted.

2013-10-27: ad4s1 - read one s12 (s12_19851220.image) floppy:

tingo@kg-t2$ cd work/nd

read image:

tingo@kg-t2$ dd if=/dev/fd1 of=./urd.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.788791 secs (5466 bytes/sec)

check it with ndfs:

tingo@kg-t2$ ndfs -tl urd.image
Directory name            : s12
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       34 pages    270336 bytes 1985-12-20 07:50:45 (system)perform-g00:prog
  0   1: I        3 pages      2987 bytes 1985-12-20 07:50:49 (system)perform-lib-g00:mcro
  0   2: I        2 pages      1932 bytes 1985-12-20 07:50:50 (system)perf-500-lib-g00:mcro
  0   3: I       47 pages     95232 bytes 1986-11-11 09:43:23 (system)ue-ermsg-en-b02:old
  0   4: I       42 pages     84480 bytes 1985-12-20 07:54:57 (system)ue-ermsg-eng-a03:err
  0   5: I       25 pages     49664 bytes 1985-12-20 07:55:01 (system)ue-ermsg-nor-a00:err
  0   6: I       52 pages    106240 bytes 1985-12-20 07:55:05 (system)ue-ermsg-en-b03:err
  0   7: I       47 pages     96256 bytes 1985-12-20 07:55:10 (system)ue-ermsg-no-b02:err
  0   8: I       21 pages    137216 bytes 1985-12-20 07:53:38 (system)file-man-pri-b00:prog
  0   9: I      115 pages    251904 bytes 1985-12-20 07:54:29 (system)file-man-no-b00:prog
  0  10: I        1 page       1527 bytes 1985-12-20 07:54:42 (system)ue-load-no:mode
Directory size: 611 pages
Bit file size : 1 page

OK, turns out it wasn't URD at all. Better rename it:

tingo@kg-t2$ mv urd.image s12_19851220.image

Done. Read one URD floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./urd.image bs=1024
dd: /dev/fd1: Input/output error
15+0 records in
15+0 records out
15360 bytes transferred in 4.556367 secs (3371 bytes/sec)

Hmm, errors. Did we get anything usable at all?

tingo@kg-t2$ ndfs -tl urd.image
Directory name            :
Object file index pointer : 0 SI: 0x0 (contiguous)
User file index pointer   : 0 SI: 0x0 (contiguous)
Bit file pointer          : 0 SI: 0x0 (contiguous)
No. of unreserved pages   : 0
Error reading page 1448037425: No error: 0

No.

2013-10-27: ad4s1 - preparing to read some ND floppies: check format:

tingo@kg-t2$ fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

It is wrong, set correct format:

tingo@kg-t2$ fdcontrol -f 1232 /dev/fd1

and verify:

tingo@kg-t2$ fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

Ok. Ready to start.

2013-10-25: ad4s1 - preparing to write some boot floppies for my P112: check settings:

root@kg-t2# fdcontrol -vF /dev/fd0
/dev/fd0: 1440 KB media type
    Format:        18,512,0xff,0x1b,80,500,2,0x6c,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    18
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    108
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

Here is the image:

root@kg-t2# ll /home/tingo/dl/p112/images/*img
-r--r--r--  1 tingo  users  1474560 Oct 25 18:11 /home/tingo/dl/p112/images/zs113005.img

and write it with dd:

root@kg-t2# dd if=/home/tingo/dl/p112/images/zs113005.img of=/dev/fd0 bs=512
2880+0 records in
2880+0 records out
1474560 bytes transferred in 608.304800 secs (2424 bytes/sec)

I'm curious, let me see what disktype thinks of the new floppy:

root@kg-t2# disktype /dev/fd0

--- /dev/fd0
Character device, size 1.406 MiB (1474560 bytes)

Ok, so "nothing" is the answer.

2013-02-14: ad4s1 - image the KERMIT (handwritten label) floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./kermit.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.826992 secs (5465 bytes/sec)

ndfs check:

tingo@kg-t2$ ndfs -tl kermit.image
Directory name            : kom
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       23 pages     45568 bytes 1989-06-23 15:32:19 (floppy-user)kermit:prog
  0   1: I        1 page        420 bytes 1989-06-23 15:32:34 (floppy-user)kermit:hlib
  0   2: I        4 pages      6915 bytes 1989-06-23 15:32:38 (floppy-user)kermit:help
Directory size: 611 pages
Bit file size : 1 page

rename:

tingo@kg-t2$ mv kermit.image kermit_kom.image

2013-02-14: ad4s1 - image the TEST PROGRAMS for ND-100 floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./test_nd100.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.834858 secs (5465 bytes/sec)

check with ndfs:

tingo@kg-t2$ ndfs -tl test_nd100.image
Directory name            : 210523e00-xx-01d
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       28 pages     56182 bytes 1986-10-30 13:42:50 (floppy-user)tpe-mon-100-a02:bpun
  0   1: I       11 pages     21504 bytes 1986-10-15 20:07:00 (floppy-user)cache-100-a00:test
  0   2: I       22 pages     43520 bytes 1986-10-16 10:25:35 (floppy-user)cache-110-a00:test
  0   3: I        9 pages     17920 bytes 1986-10-31 10:50:16 (floppy-user)colour-term-a00:test
  0   4: I       18 pages     36864 bytes 1986-12-11 17:27:36 (floppy-user)configuratio-d00:test
  0   5: I       35 pages     71680 bytes 1986-11-11 10:50:41 (floppy-user)disc-tema-i11:test
  0   6: I       23 pages     46592 bytes 1986-11-04 14:25:00 (floppy-user)floppy-strea-c00:test
  0   7: I       29 pages     58368 bytes 1986-10-16 10:37:37 (floppy-user)graphic-term-b00:test
  0   8: I        2 pages      3082 bytes 1986-04-17 14:47:07 (floppy-user)graphic-term-b00:font
  0   9: I       10 pages     19456 bytes 1986-10-31 12:02:28 (floppy-user)hdlc-megalin-d00:test
  0  10: I       17 pages     33280 bytes 1986-10-31 12:17:14 (floppy-user)instruction-c00:test
  0  11: I        5 pages     10240 bytes 1986-10-31 12:21:29 (floppy-user)lp-test-e00:test
  0  12: I        7 pages     13824 bytes 1986-10-31 12:24:28 (floppy-user)magtape-b00:test
  0  13: I       13 pages     25088 bytes 1986-10-31 12:30:42 (floppy-user)memory-d00:test
  0  14: I       17 pages     33792 bytes 1986-10-16 11:27:59 (floppy-user)paging-c00:test
  0  15: I       37 pages     75776 bytes 1986-12-04 12:10:42 (floppy-user)pioc-ether-a00:test
  0  16: I        4 pages      7680 bytes 1986-10-15 19:29:51 (floppy-user)power-fail-a00:test
  0  17: I       37 pages     75264 bytes 1986-10-16 10:14:44 (floppy-user)printers-a00:test
  0  18: I        6 pages     12288 bytes 1986-10-31 12:35:18 (floppy-user)sync-modem-b00:test
  0  19: I       13 pages     25600 bytes 1986-10-31 12:46:38 (floppy-user)terminal-asy-f00:test
  0  20: I       22 pages     44032 bytes 1986-10-31 12:54:14 (floppy-user)univers-dma-c00:test
Directory size: 611 pages
Bit file size : 1 page

rename:

tingo@kg-t2$ mv test_nd100.image test_programs_nd100_210523e00-xx-01d.image

2013-02-14: ad4s1 - image the NOTIS-WP for ND-500 floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./notis-wp_nd500.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.876617 secs (5464 bytes/sec)

check with ndfs:

tingo@kg-t2$ ndfs -tl notis-wp_nd500.image
Directory name            : 10526m07-no-2d
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I        8 pages     22528 bytes 1987-04-15 07:35:02 (floppy-user)description-file:desc
  0   1: I        0 pages         0 bytes 1987-04-15 07:27:59 (floppy-user)scratch-seg-01:link
  0   2: I        1 page       1029 bytes 1987-04-15 07:28:01 (floppy-user)scratch-seg-01:dseg
  0   3: I        1 page          5 bytes 1987-04-15 07:28:03 (floppy-user)scratch-seg-01:pseg
  0   4: I       37 pages     74337 bytes 1987-04-15 07:28:21 (floppy-user)notis-wp-no-m07:link
  0   5: I       84 pages    191563 bytes 1987-04-15 07:28:23 (floppy-user)notis-wp-no-m07:dseg
  0   6: I      279 pages    570263 bytes 1987-04-15 07:28:25 (floppy-user)notis-wp-no-m07:pseg
Directory size: 611 pages
Bit file size : 1 page

rename:

tingo@kg-t2$ mv notis-wp_nd500.image notis-wp_nd500_10526m07-no-2d.image

2013-02-14: ad4s1 - image the COBOL-85 for ND-500/5000 floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./cobol-85.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.835746 secs (5465 bytes/sec)

run ndfs on it:

tingo@kg-t2$ ndfs -tl cobol-85.image
Directory name            : 210177k01-xx-01d
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I        8 pages     22528 bytes 1989-02-17 11:08:57 (floppy-user)description-file:desc
  0   1: I        9 pages     17089 bytes 1989-02-17 11:06:23 (floppy-user)cobol-85-k01:link
  0   2: I       64 pages    129253 bytes 1989-02-17 11:06:24 (floppy-user)cobol-85-k01:dseg
  0   3: I      130 pages    265213 bytes 1989-02-17 11:06:26 (floppy-user)cobol-85-k01:pseg
  0   4: I      142 pages    289308 bytes 1989-02-16 15:33:30 (floppy-user)cobol-85-lib-k01:nrf
  0   5: I        1 page        378 bytes 1989-02-07 15:36:20 (floppy-user)cobol-85-lib-k01:new
  0   6: I        1 page        880 bytes 1989-02-07 15:35:43 (floppy-user)cobol-85-lib-k01:old
  0   7: I        1 page        131 bytes 1987-07-12 23:49:56 (floppy-user)is-multi-k00:nrf
  0   8: I        1 page        258 bytes 1989-01-19 10:20:14 (floppy-user)is-multi-k00:new
  0   9: I        1 page        358 bytes 1989-01-19 10:22:21 (floppy-user)is-multi-k00:old
  0  10: I       58 pages    118784 bytes 1987-09-02 16:15:08 (floppy-user)isam-inter-k01:prog
  0  11: I       83 pages    211456 bytes 1989-02-13 14:41:12 (floppy-user)isam-service-k02:prog
Directory size: 611 pages
Bit file size : 1 page

rename it:

tingo@kg-t2$ mv cobol-85.image cobol-85_nd500_210177k01-xx-01d.image

2013-02-14: ad4s1 - try to image the PC-LINK floppy:

tingo@kg-t2$ dd if=/dev/fd1 of=./pc-link.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.863785 secs (5465 bytes/sec)

test the image with ndfs:

tingo@kg-t2$ ndfs -tl pc-link.image
Directory name            : nd-10561a
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: I       11 pages     22528 bytes 1984-02-08 20:08:34 (floppy-user)pc-link:prog
  0   1: I       38 pages     76288 bytes 1984-02-08 20:09:31 (floppy-user)vtm-compound-a-c:prog
  0   2: I       44 pages     90112 bytes 1984-02-08 20:10:42 (floppy-user)vtm-compound-d-c:prog
  0   3: I        2 pages      1611 bytes 1984-02-08 20:12:20 (floppy-user)vtm-all-types:vtm
  0   4: I        1 page       1092 bytes 1984-02-08 20:13:14 (floppy-user)ddb079-a-a:vtm
Directory size: 611 pages
Bit file size : 1 page

rename the image:

tingo@kg-t2$ mv pc-link.image pc-link_nd-10561a.image

2013-02-14: ad4s1 - I fired up the floppy machine again, to read a few ND floppies I got. The machine still runs FreeBSD 8.2-stable from 2011:

root@kg-t2# uname -a
FreeBSD kg-t2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Sep 26 13:09:55 CEST 2011     root@kg-t2.kg4.no:/usr/obj/usr/src/sys/GENERIC  i386

Hard disk layout:

root@kg-t2# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       2097152       0B     2.0G     0%
root@kg-t2# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    495M    221M    234M    49%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1e    495M    1.3M    454M     0%    /tmp
/dev/ad4s1f    108G      3G     96G     3%    /usr
/dev/ad4s1d    1.4G    276M    1.0G    20%    /var

fd0 is the 3.5 inch floppy drive. Running fdcontrol without a floppy in the drive gives this result:

root@kg-t2# fdcontrol -vF /dev/fd0
fdcontrol: open(/dev/fd0): Device not configured

with a floppy in the drive:

root@kg-t2# fdcontrol -vF /dev/fd0
/dev/fd0: 1440 KB media type
    Format:        18,512,0xff,0x1b,80,500,2,0x6c,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    18
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    108
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

Nice to know. fd1 is the 5.25 inch floppy drive. I inserted a ND floppy and ran fdcontrol, like this:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

Ok, let's change it:

root@kg-t2# fdcontrol -f 1232 /dev/fd1

verify:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

Now, let's try to read the image off the floppy (I'm using another shell for this, with a normal user, since I don't have to be root):

tingo@kg-t2$ dd if=/dev/fd1 of=./test.image bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.765575 secs (5467 bytes/sec)

And now I need ndfs.

tingo@kg-t2$ pwd
/home/tingo/dl/nd/ndfs-tool
tingo@kg-t2$ ls
Makefile.ndfs    gpl.txt        ndfs.c

make it:

tingo@kg-t2$ gmake -f Makefile.ndfs
cc  -o ndfs ndfs.o

copy in place

tingo@kg-t2$ cp ndfs ~/bin/

test it:

tingo@kg-t2$ ndfs -V
ndfs: Sintran Filesystem tool version 1.1
tingo@kg-t2$ ndfs -?
ndfs: illegal option -- ?
Usage: ndfs [-t | -x [-d] | other options] <Sintran filesystem image>
Options:
-h    Print this help and exit
-i    Info mode: Show more info from directory entry
-t    List files in image
-u    List user entries (-v also sets this)
-x    Extract files from image
-d    If used with -x, also extract directories
-l    Convert names to lower case letters
    (This also changes ':' to '.' for extracted files)
-c    Ignore bytepointer for contiguous files
-v    Verbose output when extracting files
-V    Show version number and exit

Ok, Now let's try to read the image with it:

tingo@kg-t2$ ndfs -tl ./test.image
Directory name            : 210455g02-xx-01d
Object file index pointer : 508 SI: 0x1 (indexed)
User file index pointer   : 510 SI: 0x1 (indexed)
Bit file pointer          : 306 SI: 0x0 (contiguous)
No. of unreserved pages   : 1
Files:
  0   0: C        3 pages       602 bytes 1987-04-09 09:56:43 (floppy-user)ddb002-7s-g02:vtm
  0   1: C        3 pages       632 bytes 1987-03-16 14:55:39 (floppy-user)ddb003-7s-g02:vtm
  0   2: I        1 page        602 bytes 1987-03-16 14:54:23 (floppy-user)ddb011-7s-g02:vtm
  0   3: I        1 page        887 bytes 1987-03-16 12:53:55 (floppy-user)ddb036-7s-g02:vtm
  0   4: I        1 page       1093 bytes 1987-04-15 09:55:04 (floppy-user)ddb057-7s-g02:vtm
  0   5: C        3 pages       977 bytes 1986-11-28 13:00:01 (floppy-user)ddb052-7s-g02:vtm
  0   6: C        2 pages      2100 bytes 1987-05-14 12:05:03 (floppy-user)ddb053-7s-g02:vtm
  0   7: I        1 page       1088 bytes 1987-02-09 12:43:40 (floppy-user)ddb079-7s-g02:vtm
  0   8: I        2 pages      2166 bytes 1987-05-13 09:13:39 (floppy-user)ddb080-7s-g02:vtm
  0   9: I        2 pages      2118 bytes 1987-05-14 12:04:03 (floppy-user)ddb083-7s-g02:vtm
  0  10: I        2 pages      3674 bytes 1987-04-15 10:04:25 (floppy-user)ddb090-7b-g02:vtm
  0  11: I        2 pages      2190 bytes 1987-05-07 12:32:33 (floppy-user)ddb092-7s-g02:vtm
  0  12: C        3 pages      1568 bytes 1987-03-13 10:36:15 (floppy-user)ddb099-7s-g02:vtm
  0  13: I        2 pages      2188 bytes 1987-05-11 10:24:02 (floppy-user)ddb090-7s-g02:vtm
  0  14: I        2 pages      2138 bytes 1987-04-15 10:52:03 (floppy-user)ddb093-7s-g02:vtm
  0  15: I        2 pages      2190 bytes 1987-05-07 12:28:48 (floppy-user)ddb091-7s-g02:vtm
  0  16: I        2 pages      3718 bytes 1987-05-07 14:29:29 (floppy-user)ddb093-7b-g02:vtm
  0  17: C        3 pages      3678 bytes 1987-04-15 10:57:00 (floppy-user)ddb100-7b-g02:vtm
  0  18: I        2 pages      2128 bytes 1987-04-15 10:57:59 (floppy-user)ddb100-8s-g02:vtm
  0  19: I        2 pages      3654 bytes 1987-04-15 10:59:17 (floppy-user)ddb100-8b-g02:vtm
  0  20: C        3 pages      2042 bytes 1987-04-15 10:56:00 (floppy-user)ddb100-7s-g02:vtm
  0  21: I        1 page       2014 bytes 1987-04-15 11:03:32 (floppy-user)ddb103-8s-g02:vtm
  0  22: C        3 pages      3724 bytes 1987-04-15 12:14:00 (floppy-user)ddb103-7b-g02:vtm
  0  23: C        3 pages      2138 bytes 1987-04-15 12:16:08 (floppy-user)ddb103-7s-g02:vtm
  0  24: I        2 pages      3530 bytes 1987-04-15 11:00:50 (floppy-user)ddb103-8b-g02:vtm
  0  25: I        1 page       1457 bytes 1987-02-03 13:17:26 (floppy-user)ddb105-7s-g02:vtm
  0  26: C        3 pages      1968 bytes 1987-05-06 11:49:32 (floppy-user)ddb113-7s-g02:vtm
  0  27: I        3 pages      3724 bytes 1987-05-06 11:45:25 (floppy-user)ddb113-7b-g02:vtm
  0  28: I        3 pages      3750 bytes 1987-05-06 11:51:27 (floppy-user)ddb110-7b-g02:vtm
  0  29: I        3 pages      2196 bytes 1987-05-06 11:53:08 (floppy-user)ddb110-7s-g02:vtm
  0  30: I      104 pages    292864 bytes 1987-05-07 09:28:33 (floppy-user)vtm-compound-g02:prog
  0  31: I        2 pages      3545 bytes 1987-05-04 15:01:56 (floppy-user)vtm-all-types:vtm
  0  32: I       17 pages    266240 bytes 1987-05-20 10:30:28 (floppy-user)inst-tables-g02:prog
  0  33: I        2 pages      3546 bytes 1987-04-23 12:15:22 (floppy-user)ddb999-g02:vtm
  0  34: I       34 pages     68696 bytes 1987-05-14 12:14:34 (floppy-user)ddbtables-g02:vtm
  0  35: I       42 pages     85884 bytes 1987-05-14 12:14:20 (floppy-user)vtm-arrays-g02:nrf
  0  36: I       34 pages     69530 bytes 1987-05-14 12:14:11 (floppy-user)vtm-2b-array-g02:brf
  0  37: I       34 pages     69528 bytes 1987-05-14 12:14:03 (floppy-user)vtm-1b-array-g02:brf
Directory size: 611 pages
Bit file size : 1 page

Nice! I'll call that a success. The label on this floppy reads VTM terminal tables (Standard).

2011-09-28: writing another ND disk image (ND format 17b floppy image) to a floppy: set correct format:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>
root@kg-t2# fdcontrol -f 1232 /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

write the image:

root@kg-t2# dd if=/home/tingo/dl/nd/floppies/image15 of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.693638 secs (5469 bytes/sec)

No go and test it on the ND machine. The running indicator on the ND machine turned on, but that's all. Hmm, how about I use bs=2048? Will it make a difference? The ND is a 16 bit machine, after all.

root@kg-t2# dd if=/home/tingo/dl/nd/floppies/image15 of=/dev/fd1 bs=2048
616+0 records in
616+0 records out
1261568 bytes transferred in 128.227381 secs (9839 bytes/sec)

Another test on the ND machine. Result: no difference.

2011-09-26: trying to write a foreign disk image (in this case, a ND format 17b floppy image) to a floppy here: First, I inserted a floppy that I have already formatted with fdformat yesterday. Check format:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm,+auto
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM,AUTO>

Wrong format, change it:

root@kg-t2# fdcontrol -f 1232 /dev/fd1

verify:

root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

use dd to write the image:

root@kg-t2# dd if=/home/tingo/dl/nd/floppies/Testdisk.raw of=/dev/fd1 bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.682619 secs (5469 bytes/sec)

read it back in:

root@kg-t2# dd if=/dev/fd1 of=/tmp/image.raw bs=1024
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.768977 secs (5467 bytes/sec)

and compare the two files:

root@kg-t2# cmp /home/tingo/dl/nd/floppies/Testdisk.raw /tmp/image.raw
root@kg-t2#

Looks ok. Will it boot? The running indicator on the ND machine turned on, but that's all. Let's try to swap the bytes while writing the image:

root@kg-t2# dd if=/home/tingo/dl/nd/floppies/Testdisk.raw of=/dev/fd1 bs=1024 conv=swab
1232+0 records in
1232+0 records out
1261568 bytes transferred in 230.790280 secs (5466 bytes/sec)

Will that one boot? No, it reads many sectors from disk (I don't know if it is the same sectors or different ones), but the "running" indicator never turns on, and eventually (after seven minutes or so) OPCOM mode on the panel times out. Still the floppy drive continues to read sectors.

2011-09-26: I upgraded to FreeBSD 8.2-stable, using csup and make world. dmesg output: normal, verbose.

root@kg-t2# uname -a
FreeBSD kg-t2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Sep 26 13:09:55 CEST 2011     root@kg-t2.kg4.no:/usr/obj/usr/src/sys/GENERIC  i386

2011-09-25: I did some testing with fdcontrol and fdformat today. whenever you have changed settings by using fdformat or fdcontrol, you need to change the setting back again after inserting a new floppy: a normal MS-DOS format floppy, 1.2MByte (DS/HD):

root@kg-t2# fdcontrol -f 1200 /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1200 KB media type
    Format:        15,512,0xff,0x1b,80,500,2,0x54,1,0,+mfm
    Sector size:    512
    Sectors/track:    15
    Heads/cylinder:    2
    Cylinders/disk:    80
    Transfer rate:    500 kbps
    Sector gap:    27
    Format gap:    84
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

then change it, and change the settings too:

root@kg-t2# fdcontrol -f 1232 /dev/fd1
root@kg-t2# fdcontrol -vF /dev/fd1
/dev/fd1: 1232 KB media type
    Format:        8,1024,0xff,0x35,77,500,2,0x74,1,0,+mfm
    Sector size:    1024
    Sectors/track:    8
    Heads/cylinder:    2
    Cylinders/disk:    77
    Transfer rate:    500 kbps
    Sector gap:    53
    Format gap:    116
    Interleave:    1
    Side offset:    0
    Flags        <MFM>

Format a floppy to format 1232:

root@kg-t2# fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.

Nice. We'll see if this format works on a ND machine. Oh, and here is what happens with a floppy with errors on it:

root@kg-t2# fdformat -f 1232 /dev/fd1
Format 1232K floppy `/dev/fd1'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVEEVVEEEVVVVVVVVVVV done.
Errors encountered:
Cyl Head Sect   Error
 40    1    4   CRC error in data field
 41    1    4   CRC error in data field
 42    1    4   CRC error in data field
 43    0    4   CRC error in data field
 48    0    4   CRC error in data field
 49    0    4   CRC error in data field
 50    0    4   CRC error in data field
 51    0    4   CRC error in data field
 52    0    4   CRC error in data field

Good to know.

2011-09-25: pciconf output:

root@kg-t2# pciconf -lvc
hostb0@pci0:0:0:0:    class=0x060000 card=0x00921028 chip=0x25008086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Host-Hub Interface Bridge / DRAM Ctrlr (82820)'
    class      = bridge
    subclass   = HOST-PCI
    cap 02[a0] = AGP 4x 2x 1x SBA disabled
pcib1@pci0:0:1:0:    class=0x060400 card=0x00000000 chip=0x250f8086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82820 820 (Camino) Chipset PCI to AGP Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:30:0:    class=0x060400 card=0x00000000 chip=0x24188086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801AA 8xx Chipset Hub to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:    class=0x060100 card=0x00000000 chip=0x24108086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801AA 8xx Chipset LPC Interface Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci1@pci0:0:31:1:    class=0x010180 card=0x24118086 chip=0x24118086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'IDE Controller (UltraATA/66) (82801AA)'
    class      = mass storage
    subclass   = ATA
uhci0@pci0:0:31:2:    class=0x0c0300 card=0x24128086 chip=0x24128086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801AA 8xx Chipset USB Controllers'
    class      = serial bus
    subclass   = USB
ichsmb0@pci0:0:31:3:    class=0x0c0500 card=0x24138086 chip=0x24138086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801AA 8xx Chipset SMBus Controller'
    class      = serial bus
    subclass   = SMBus
pcm0@pci0:0:31:5:    class=0x040100 card=0x00921028 chip=0x24158086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Aureal (AD1881 SOUNDMAX) Placa Me Asaki P3-141 (Intel 82801DBM SM/BUS Controller 24C3)'
    class      = multimedia
    subclass   = audio
vgapci0@pci0:1:0:0:    class=0x030000 card=0x000110de chip=0x002d10de rev=0x15 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'TNT2 Model 64 / TNT2 Model 64 Pro (NV5)'
    class      = display
    subclass   = VGA
    cap 01[60] = powerspec 1  supports D0 D3  current D0
    cap 02[44] = AGP 4x 2x 1x disabled
atapci0@pci0:2:8:0:    class=0x010400 card=0x61141095 chip=0x31141095 rev=0x02 hdr=0x00
    vendor     = 'Silicon Image Inc (Was: CMD Technology Inc)'
    device     = 'SATALink/SATARaid Controller (Sil 3114)'
    class      = mass storage
    subclass   = RAID
    cap 01[60] = powerspec 2  supports D0 D1 D2 D3  current D0
xl0@pci0:2:12:0:    class=0x020000 card=0x00921028 chip=0x920010b7 rev=0x78 hdr=0x00
    vendor     = '3COM Corp, Networking Division'
    device     = 'Fast EtherLink for PC Management NIC (3C905 CX-TXM)'
    class      = network
    subclass   = ethernet
    cap 01[dc] = powerspec 2  supports D0 D1 D2 D3  current D0

That's all.

2009-11-03: built a new kernel and finished upgrade. The machine now runs latest FreeBSD 8.0-RC2 from RELENG_8 branch. dmesg output: normal, verbose. Ok, the machines does not panic anymore, when I insert the gadget (and the uchcom module is loaded). But where is ucom0?

2009-11-02: csup'ed sources (RELENG_8) and started building a new world, in order to test the USB TEMPer gadget. Before this upgrade, the machine paniced when I inserted the gadget with the uchcom kernel module loaded.

2009-10-30: upgraded to FreeBSD 8.0-RC2 by using freebsd-update. The command sequence was: freebsd-update upgrade -r 8.0-RC2, followed by freebsd-update install (installs kernel updates), shutdown -r now, freebsd-update install (installs userland updates), followed by a final reboot. dmesg output: normal, verbose.

2009-10-22: Replaced drive. Installed (from cd, disc1) FreeBSD 8.0-RC1 on slice 1. dmesg output: normal, verbose.

2009-07-19: upgraded to latest RELENG_7, which is FreeBSD 7.2-stable. dmesg: normal, verbose.

2009-04-13: upgraded to latest RELENG_7: FreeBSD 7.2-prerelease. dmesg: normal, verbose.

2009-04-09: I installed FreeBSD 7.1-release on the machine. dmesg output: normal, verbose.