From: phk@data.fls.dk (Poul-Henning Kamp)
Newsgroups: comp.periphs.scsi
Subject: Re: HITACHI DK516-C extern - bad luck ?
Keywords: hitachi dk516C-16 scsi extern
Date: 13 Aug 92 07:09:48 GMT
Organization: FLS Data A/S, Valby, Copenhagen, Denmark.

chris@artcom.de (Christian Hoefig) writes:

>short summary: 
>the disk attaches, formats and partitions fine, but fsck
>always finds a destroyed superblock in one or more of the file systems,

>First, we installed the format.dat entry, kindly provided by Mr. Lupe, in our 
>format.dat file. The entry is:

>disk_type = "Hitachi DK516C-16" \
>        : ctlr = MD21 : fmt_time = 4 \
>        : trks_zone = 15 : asect = 2 : atrks = 15 \
>        : ncyl = 2172 : acyl = 2 : pcyl = 2174 : nhead = 15 : nsect = 80 \
>        : rpm = 3600 : bpt = 48526

Hmmm, I use pcyl=2179, asect=8, with success.
Squeezing asect is a bad idea, you gain almost nothing (6.5Mb), and quite a
lot of drives will barf at you, often silenly :-)

>partition = "Hitachi DK516C-16" \
>        : disk = "Hitachi DK516C-16" : ctlr = MD21 \
>        : c = 0, 2602800 : e = 0, 867600 : f = 724, 867600 : g = 1448, 864000

In my case c = 0,2606400

This is a dump of what one of my drives tells me on SCSI:
( I made a small program called scsiping, if you want it pray tell me.)
==========
/dev/rsd0c
==========
READ_CAPACITY:
    Capacity:               2621604
INQUIRY:
    Peripheral qualifier:   0
    Peripheral device-type: 0
    Device-type modifier:   0
    Removable medium:       0
    ISO version:            0
    ECMA version:           0
    ANSI version:           2
    AENC:                   0
    TrmIOP:                 0
    Response data format:   2
    Relative addressing:    0
    Wide bus 32:            0
    Wide bus 16:            0
    Sync transfer:          1
    Linked commands:        1
    Command queing:         0
    Soft reset:             0
    Vendor:                 'HITACHI '
    Product:                'DK516C          '
    Revision:               'KL17'

*** Mode Sense:                curr            chg            def           save
Medium Type                       0              0              0              0
Device-specific                   0              0              0              0
Length of pages(@8)               8              8              8              8
Density code                      0              0              0              0
Number of blocks            2621604        2621604        2621604        2621604
Block length                    512            512            512            512

*** Page 17:                   curr            chg            def           save
    curr |d7 00                                              |                |
    chg  |d7 00                                              |                |
    def  |d7 00                                              |                |
    save |d7 00                                              |                |

*** Page 00:                   curr            chg            def           save
    curr |00 08 00 28 00 a4 00 00 02 00                      |   (            |
    chg  |00 08 00 28 00 a4 00 00 02 00                      |   (            |
    def  |00 08 00 28 00 a4 00 00 02 00                      |   (            |
    save |00 08 00 28 00 a4 00 00 02 00                      |   (            |

*** Page 01:                   curr            chg            def           save
    curr |81 0a 04 10 0b 00 00 00 04 00 01 f4                |                |
    chg  |81 0a 3f ff ff ff ff 00 ff 00 ff ff                |  ?             |
    def  |81 0a 04 10 0b 00 00 00 04 00 01 f4                |                |
    save |81 0a 04 10 0b 00 00 00 04 00 01 f4                |                |

*** Page 02:                   curr            chg            def           save
    curr |82 0e 00 00 00 05 00 00 00 00 00 00 00 00 00 00    |                |
    chg  |82 0e ff ff ff ff ff ff ff ff ff ff 03 00 00 00    |                |
    def  |82 0e 00 00 00 05 00 00 00 00 00 00 00 00 00 00    |                |
    save |82 0e 00 00 00 05 00 00 00 00 00 00 00 00 00 00    |                |

*** Page 03:                   curr            chg            def           save
Tracks/zone                      15          65535             15             15
AltSect/zone                      8          65535              8              8
AltTrack/zone                     0              0              0              0
AltTrack/LU                      15          65535             15             15
Sect/track                       81              0             81             81
Byte/sect                       512          65535            512            512
InterLeave                        1              0              1              1
Track skew                       10          65535             10             10
Cyl. skew                        19          65535             19             19
    curr |83 16 00 0f 00 08 00 00 00 0f 00 51 02 00 00 01    |           Q    |
    curr |00 0a 00 13 40 00 00 00                            |    @           |
    chg  |83 16 ff ff ff ff 00 00 ff ff 00 00 ff ff 00 00    |                |
    chg  |ff ff ff ff 00 00 00 00                            |                |
    def  |83 16 00 0f 00 08 00 00 00 0f 00 51 02 00 00 01    |           Q    |
    def  |00 0a 00 13 40 00 00 00                            |    @           |
    save |83 16 00 0f 00 08 00 00 00 0f 00 51 02 00 00 01    |           Q    |
    save |00 0a 00 13 40 00 00 00                            |    @           |

*** Page 04:                   curr            chg            def           save
Cylinders                      2179       16777215           2179           2179
Head                             15            255             15             15
RPM                            3600              0           3600           3600
    curr |84 16 00 08 83 0f 00 00 00 00 00 00 00 00 00 00    |                |
    curr |00 00 00 00 0e 10 00 00                            |                |
    chg  |84 16 ff ff ff ff 00 00 00 00 00 00 00 00 00 00    |                |
    chg  |00 03 00 00 00 00 00 00                            |                |
    def  |84 16 00 08 83 0f 00 00 00 00 00 00 00 00 00 00    |                |
    def  |00 00 00 00 0e 10 00 00                            |                |
    save |84 16 00 08 83 0f 00 00 00 00 00 00 00 00 00 00    |                |
    save |00 00 00 00 0e 10 00 00                            |                |

*** Page 07:                   curr            chg            def           save
    curr |87 0a 04 10 0b 00 00 00 00 00 01 f4                |                |
    chg  |87 0a 0f ff ff 00 00 00 00 00 ff ff                |                |
    def  |87 0a 04 10 0b 00 00 00 00 00 01 f4                |                |
    save |87 0a 04 10 0b 00 00 00 00 00 01 f4                |                |

*** Page 08:                   curr            chg            def           save
    curr |88 0a 00 00 08 00 00 00 00 80 00 80                |                |
    chg  |88 0a 03 00 ff ff ff ff ff ff ff ff                |                |
    def  |88 0a 00 00 08 00 00 00 00 80 00 80                |                |
    save |88 0a 00 00 08 00 00 00 00 80 00 80                |                |

*** Page 09:                   curr            chg            def           save
    curr |09 1e 80 02 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    curr |00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    chg  |09 1e 00 00 00 00 00 00 80 00 00 00 ff ff 00 00    |                |
    chg  |00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    def  |09 1e 80 02 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    def  |00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    save |09 1e 80 02 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    save |00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |

*** Page 0a:                   curr            chg            def           save
    curr |8a 06 00 00 00 00 00 00                            |                |
    chg  |8a 06 01 00 00 00 00 00                            |                |
    def  |8a 06 00 00 00 00 00 00                            |                |
    save |8a 06 00 00 00 00 00 00                            |                |

*** Page 0b:                   curr            chg            def           save
    curr |0b 06 00 00 00 00 00 00                            |                |
    chg  |0b 06 00 00 00 00 00 00                            |                |
    def  |0b 06 00 00 00 00 00 00                            |                |
    save |0b 06 00 00 00 00 00 00                            |                |

*** Page 0c:                   curr            chg            def           save
    curr |0c 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    curr |00 00 00 00 00 00 00 00                            |                |
    chg  |0c 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    chg  |00 00 00 00 00 00 00 00                            |                |
    def  |0c 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    def  |00 00 00 00 00 00 00 00                            |                |
    save |0c 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    save |00 00 00 00 00 00 00 00                            |                |

*** Page 20:                   curr            chg            def           save
    curr |a0 1e 00 00 00 00 04 00 00 00 00 0e 28 00 00 00    |            (   |
    curr |10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    chg  |a0 1e ff ff ff ff ff ff ff ff ff ff ff ff ff ff    |                |
    chg  |ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    |                |
    def  |a0 1e 00 00 00 00 04 00 00 00 00 0e 28 00 00 00    |            (   |
    def  |10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
    save |a0 1e 00 00 00 00 04 00 00 00 00 0e 28 00 00 00    |            (   |
    save |10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    |                |
-- 
phk@data.fls.dk		  || If you can't join 'em -- beat 'em !
Poul-Henning Kamp	  ||			the Danish foreign minister
FLS DATA A/S		  ||
Phone: (+45) 36 18 12 35  ||