dasdview - Display DASD structure

SUSE Linux Enterprise Server 15 SP5 LPAR mode z/VM guest KVM guest

Use the dasdview command to display DASD information. dasdview displays:

  • The volume label.
  • VTOC details (general information, and the DSCBs of format 1, format 3, format 4, format 5, format 7, format 8, and format 9).
  • The content of the DASD, by specifying:
    • Starting point
    • Size
    You can display these values in hexadecimal, EBCDIC, and ASCII format.
  • Device characteristics, such as:
    • Whether the data on the DASD is encrypted.
    • Whether the disk is a solid-state device.

If you specify a start point and size, you can also display the contents of a disk dump.

dasdview syntax

Read syntax diagramSkip visual syntax diagramdasdview  -b 0 -b  <begin> -s 128 -s  <size> -1 -2 -i -x -j -l -c -t  <spec>   <node>
Where:
-b <begin> or --begin=<begin>
displays disk content on the console, starting from <begin>. The contents of the disk are displayed as hexadecimal numbers, ASCII text, and EBCDIC text. If <size> is not specified, dasdview takes the default size (128 bytes). You can specify the variable <begin> as:
<begin>[k|m|b|t|c]

If the disk is in raw-track access mode, you can specify only track (t) or cylinder (c) entities.

The default for <begin> is 0.

dasdview displays a disk dump on the console by using the DASD driver. The DASD driver might suppress parts of the disk, or add information that is not relevant. This discrepancy might occur, for example, when dasdview displays the first two tracks of a disk that was formatted with the compatible disk layout option (-d cdl). In this situation, the DASD driver pads shorter blocks with zeros to maintain a constant blocksize. All Linux® applications (including dasdview) process according to this rule.

Here are some examples of how this option can be used:
 -b 32   (start printing at Byte 32)
 -b 32k  (start printing at kByte 32)
 -b 32m  (start printing at MByte 32)
 -b 32b  (start printing at block 32)
 -b 32t  (start printing at track 32)
 -b 32c  (start printing at cylinder 32)
-s <size> or --size=<size>
displays a disk dump on the console, starting at <begin>, and continuing for size=<size>. The contents of the dump are displayed as hexadecimal numbers, ASCII text, and EBCDIC text. If a start value, <begin>, is not specified, dasdview takes the default. You can specify the variable <size> as:
size[k|m|b|t|c]

If the disk is in raw-track access mode, you can specify only track (t) or cylinder (c) entities.

The default for <size> is 128 bytes.

Here are some examples of how this option can be used:
 -s 16   (use a 16 Byte size)
 -s 16k  (use a 16 kByte size)
 -s 16m  (use a 16 MByte size)
 -s 16b  (use a 16 block size)
 -s 16t  (use a 16 track size)
 -s 16c  (use a 16 cylinder size)
-1
displays the disk dump with format 1 (as 16 Bytes per line in hexadecimal, ASCII and EBCDIC). A line number is not displayed. You can use option -1 only together with -b or -s.

Option -1 is the default.

-2
displays the disk dump with format 2 (as 8 Bytes per line in hexadecimal, ASCII and EBCDIC). A decimal and hexadecimal byte count are also displayed. You can use option -2 only together with -b or -s.
-i or --info
displays basic information such as device node, device bus-ID, device type, or geometry data.
-x or --extended
displays the information that is obtained by using the -i option, but also open count, subchannel identifier, and so on.
-j or --volser
prints volume serial number (volume identifier).
-l or --label
displays the volume label.
-c or --characteristics
displays model-dependent device characteristics, for example disk encryption status or whether the disk is a solid-state device.
-t <spec> or --vtoc=<spec>
displays the VTOC's table-of-contents, or a single VTOC entry, on the console. The variable <spec> can take these values:
info
displays overview information about the VTOC, such as a list of the data set names and their sizes.
f1
displays the contents of all format 1 data set control blocks (DSCBs).
f3
displays the contents of all (z/OS®-specific) format 3 DSCBs.
f4
displays the contents of all format 4 DSCBs.
f5
displays the contents of all format 5 DSCBs.
f7
displays the contents of all format 7 DSCBs.
f8
displays the contents of all format 8 DSCBs.
f9
displays the contents of all format 9 DSCBs.
all
displays the contents of all DSCBs.
<node>
specifies the device node of the device for which you want to display information, for example, /dev/dasdzzz.
-v or --version
displays version number on console, and exit.
-h or --help
displays short usage text on console. To view the man page, enter man dasdview.

Examples

  • To display basic information about a DASD:
    # dasdview -i /dev/dasdzzz
    This example displays:
    --- general DASD information --------------------------------------------------
    device node            : /dev/dasdzzz
    busid                  : 0.0.0193
    type                   : ECKD
    device type            : hex 3390       dec 13200
    
    --- DASD geometry -------------------------------------------------------------
    number of cylinders    : hex 64         dec 100
    tracks per cylinder    : hex f          dec 15
    blocks per track       : hex c          dec 12
    blocksize              : hex 1000       dec 4096
    #
  • To display device characteristics:
    # dasdview -c /dev/dasda
    This example displays:
    encrypted disk         : no
  • To include extended information:
    # dasdview -x /dev/dasdzzz
    This example displays:
    --- general DASD information --------------------------------------------------
    device node            : /dev/dasdzzz
    busid                  : 0.0.0193
    type                   : ECKD
    device type            : hex 3390       dec 13200
    
    --- DASD geometry -------------------------------------------------------------
    number of cylinders    : hex 64         dec 100
    tracks per cylinder    : hex f          dec 15
    blocks per track       : hex c          dec 12
    blocksize              : hex 1000       dec 4096
    
    --- extended DASD information -------------------------------------------------
    real device number     : hex 452bc08    dec 72530952
    subchannel identifier  : hex e          dec 14
    CU type  (SenseID)     : hex 3990       dec 14736
    CU model (SenseID)     : hex e9         dec 233
    device type  (SenseID) : hex 3390       dec 13200
    device model (SenseID) : hex a          dec 10
    open count             : hex 1          dec 1
    req_queue_len          : hex 0          dec 0
    chanq_len              : hex 0          dec 0
    status                 : hex 5          dec 5
    label_block            : hex 2          dec 2
    FBA_layout             : hex 0          dec 0
    characteristics_size   : hex 40         dec 64
    confdata_size          : hex 100        dec 256
    
    characteristics        : 3990e933 900a5f80  dff72024 0064000f
                             e000e5a2 05940222  13090674 00000000
                             00000000 00000000  24241502 dfee0001
                             0677080f 007f4a00  1b350000 00000000
    
    configuration_data     : dc010100 4040f2f1  f0f54040 40c9c2d4
                             f1f3f0f0 f0f0f0f0  f0c6c3f1 f1f30509
                             dc000000 4040f2f1  f0f54040 40c9c2d4
                             f1f3f0f0 f0f0f0f0  f0c6c3f1 f1f30500
                             d4020000 4040f2f1  f0f5c5f2 f0c9c2d4
                             f1f3f0f0 f0f0f0f0  f0c6c3f1 f1f3050a
                             f0000001 4040f2f1  f0f54040 40c9c2d4
                             f1f3f0f0 f0f0f0f0  f0c6c3f1 f1f30500
                             00000000 00000000  00000000 00000000
                             00000000 00000000  00000000 00000000
                             00000000 00000000  00000000 00000000
                             00000000 00000000  00000000 00000000
                             00000000 00000000  00000000 00000000
                             00000000 00000000  00000000 00000000
                             800000a1 00001e00  51400009 0909a188
                             0140c009 7cb7efb7  00000000 00000800
    #
  • To display volume label information:
    # dasdview -l /dev/dasdzzz
    This example displays:
    --- volume label --------------------------------------------------------------
    volume label key        : ascii  'åÖÖñ'
                            : ebcdic 'VOL1'
                            : hex    e5d6d3f1
    
    volume label identifier : ascii  'åÖÖñ'
                            : ebcdic 'VOL1'
                            : hex    e5d6d3f1
    
    volume identifier       : ascii  'ðçðñùó'
                            : ebcdic '0X0193'
                            : hex    f0e7f0f1f9f3
    
    security byte           : hex    40
    
    
    VTOC pointer            : hex    0000000101
                                     (cyl 0, trk 1, blk 1)
    
    reserved                : ascii  '@@@@@'
                            : ebcdic '     '
                            : hex    4040404040
    
    CI size for FBA         : ascii  '@@@@'
                            : ebcdic '    '
                            : hex    40404040
    
    blocks per CI (FBA)     : ascii  '@@@@'
                            : ebcdic '    '
                            : hex    40404040
    
    labels per CI (FBA)     : ascii  '@@@@'
                            : ebcdic '    '
                            : hex    40404040
    
    reserved                : ascii  '@@@@'
                            : ebcdic '    '
                            : hex    40404040
    
    owner code for VTOC     : ascii  '@@@@@@@@@@@@@@'
                              ebcdic '              '
                              hex    40404040 40404040  40404040 4040
    
    reserved                : ascii  '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
                              ebcdic '                             '
                              hex    40404040 40404040  40404040 40404040
                                     40404040 40404040  40404040 40
    #
  • To display partition information:
    # dasdview -t info /dev/dasdzzz
    This example displays:
    --- VTOC info -----------------------------------------------------------------
    The VTOC contains:
      3 format 1 label(s)
      1 format 4 label(s)
      1 format 5 label(s)
      0 format 7 label(s)
      0 format 8 label(s)
      0 format 9 label(s)
    Other S/390 and zSeries operating systems would see the following data sets:
     +----------------------------------------------+--------------+--------------+
     | data set                                     | start        | end          |
     +----------------------------------------------+--------------+--------------+
     | LINUX.V0X0193.PART0001.NATIVE                |          trk |          trk |
     | data set serial number : '0X0193'            |            2 |          500 |
     | system code            : 'IBM LINUX    '     |      cyl/trk |      cyl/trk |
     | creation date          :  year 2001, day 317 |        0/  2 |       33/  5 |
     +----------------------------------------------+--------------+--------------+
     | LINUX.V0X0193.PART0002.NATIVE                |          trk |          trk |
     | data set serial number : '0X0193'            |          501 |          900 |
     | system code            : 'IBM LINUX    '     |      cyl/trk |      cyl/trk |
     | creation date          :  year 2001, day 317 |       33/  6 |       60/  0 |
     +----------------------------------------------+--------------+--------------+
     | LINUX.V0X0193.PART0003.NATIVE                |          trk |          trk |
     | data set serial number : '0X0193'            |          901 |         1499 |
     | system code            : 'IBM LINUX    '     |      cyl/trk |      cyl/trk |
     | creation date          :  year 2001, day 317 |       60/  1 |       99/ 14 |
     +----------------------------------------------+--------------+--------------+
    #
  • To display VTOC information:
    # dasdview -t f4 /dev/dasdzzz
    This example displays:
    --- VTOC format 4 label -------------------------------------------------------
    DS4KEYCD    : 040404040404040404040404040404040404040404040404040404040404040404...
    DS4IDFMT    : dec 244, hex f4
    DS4HPCHR    : 0000000105 (cyl 0, trk 1, blk 5)
    DS4DSREC    : dec 7, hex 0007
    DS4HCCHH    : 00000000 (cyl 0, trk 0)
    DS4NOATK    : dec 0, hex 0000
    DS4VTOCI    : dec 0, hex 00
    DS4NOEXT    : dec 1, hex 01
    DS4SMSFG    : dec 0, hex 00
    DS4DEVAC    : dec 0, hex 00
    DS4DSCYL    : dec 100, hex 0064
    DS4DSTRK    : dec 15, hex 000f
    DS4DEVTK    : dec 58786, hex e5a2
    DS4DEVI     : dec 0, hex 00
    DS4DEVL     : dec 0, hex 00
    DS4DEVK     : dec 0, hex 00
    DS4DEVFG    : dec 48, hex 30
    DS4DEVTL    : dec 0, hex 0000
    DS4DEVDT    : dec 12, hex 0c
    DS4DEVDB    : dec 0, hex 00
    DS4AMTIM    : hex 0000000000000000
    DS4AMCAT    : hex 000000
    DS4R2TIM    : hex 0000000000000000
    res1        : hex 0000000000
    DS4F6PTR    : hex 0000000000
    DS4VTOCE    : hex 01000000000100000001
                  typeind    : dec 1, hex 01
                  seqno      : dec 0, hex 00
                  llimit     : hex 00000001 (cyl 0, trk 1)
                  ulimit     : hex 00000001 (cyl 0, trk 1)
    res2        : hex 00000000000000000000
    DS4EFLVL    : dec 0, hex 00
    DS4EFPTR    : hex 0000000000 (cyl 0, trk 0, blk 0)
    res3        : hex 000000000000000000
    #
  • To print the contents of a disk to the console starting at block 2 (volume label):
    # dasdview -b 2b -s 128 /dev/dasdzzz 
    This example displays:
    +----------------------------------------+------------------+------------------+
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  E5D6D3F1 E5D6D3F1  F0E7F0F1 F9F34000  | VOL1VOL10X0193?. | ??????????????@. |
    |  00000101 40404040  40404040 40404040  | ................ | ................ |
    |  40404040 40404040  40404040 40404040  | ???????????????? | @@@@@@@@@@@@@@@@ |
    |  40404040 40404040  40404040 40404040  | ???????????????? | @@@@@@@@@@@@@@@@ |
    |  40404040 40404040  40404040 40404040  | ???????????????? | @@@@@@@@@@@@@@@@ |
    |  40404040 88001000  10000000 00808000  | ????h........... | @@@@?........... |
    |  00000000 00000000  00010000 00000200  | ................ | ................ |
    |  21000500 00000000  00000000 00000000  | ?............... | !............... |
    +----------------------------------------+------------------+------------------+
    #
  • To display the contents of a disk on the console starting at block 14 (first FMT1 DSCB) with format 2:
    # dasdview -b 14b -s 128 -2 /dev/dasdzzz
    This example displays:
     +---------------+---------------+----------------------+----------+----------+
     |     BYTE      |     BYTE      |     HEXADECIMAL      |  EBCDIC  |  ASCII   |
     |    DECIMAL    |  HEXADECIMAL  |  1 2 3 4   5 6 7 8   | 12345678 | 12345678 |
     +---------------+---------------+----------------------+----------+----------+
     |         57344 |          E000 |  D3C9D5E4  E74BE5F0  | LINUX.V0 | ?????K?? |
     |         57352 |          E008 |  E7F0F1F9  F34BD7C1  | X0193.PA | ?????K?? |
     |         57360 |          E010 |  D9E3F0F0  F0F14BD5  | RT0001.N | ??????K? |
     |         57368 |          E018 |  C1E3C9E5  C5404040  | ATIVE??? | ?????@@@ |
     |         57376 |          E020 |  40404040  40404040  | ???????? | @@@@@@@@ |
     |         57384 |          E028 |  40404040  F1F0E7F0  | ????10X0 | @@@@???? |
     |         57392 |          E030 |  F1F9F300  0165013D  | 193.???? | ???.?e?= |
     |         57400 |          E038 |  63016D01  0000C9C2  | ??_?..IB | c?m?..?? |
     |         57408 |          E040 |  D440D3C9  D5E4E740  | M?LINUX? | ?@?????@ |
     |         57416 |          E048 |  40404065  013D0000  | ??????.. | @@@e?=.. |
     |         57424 |          E050 |  00000000  88001000  | ....h.?. | ....?.?. |
     |         57432 |          E058 |  10000000  00808000  | ?....??. | ?....??. |
     |         57440 |          E060 |  00000000  00000000  | ........ | ........ |
     |         57448 |          E068 |  00010000  00000200  | .?....?. | .?....?. |
     |         57456 |          E070 |  21000500  00000000  | ?.?..... | !.?..... |
     |         57464 |          E078 |  00000000  00000000  | ........ | ........ |
     +---------------+---------------+----------------------+----------+----------+
    #
  • To see what is at block 1234 (in this example there is nothing there):
    # dasdview -b 1234b -s 128 /dev/dasdzzz
    This example displays:
    +----------------------------------------+------------------+------------------+
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    |  00000000 00000000  00000000 00000000  | ................ | ................ |
    +----------------------------------------+------------------+------------------+
    #
  • To try byte 0 instead:
    # dasdview -b 0 -s 64 /dev/dasdzzz
    This example displays:
    +----------------------------------------+------------------+------------------+
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  C9D7D3F1 000A0000  0000000F 03000000  | IPL1............ | ????............ |
    |  00000001 00000000  00000000 40404040  | ................ | ................ |
    |  40404040 40404040  40404040 40404040  | ???????????????? | @@@@@@@@@@@@@@@@ |
    |  40404040 40404040  40404040 40404040  | ???????????????? | @@@@@@@@@@@@@@@@ |
    +----------------------------------------+------------------+------------------+
    #
  • To display the contents of a disk on the console starting at cylinder 2 and printing one track of data:
    # dasdview -b 2c -s 1t /dev/dasdk
    This example displays:
    +----------------------------------------+------------------+------------------+
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  52B7DBEE D6B9530B  0179F420 CB6EA95E  | ????O?????4??>z; | R?????S??y???n?^ |
    |  EF49C03C 513542E7  D8F17D9D 06DC44F7  | ??{????XQ1'????7 | ?I?<Q5B???}???D? |
    
    ...
    |  92963D5B 0200B0FA  53745C12 C3B45125  | ko?$?........... | ??=[?........... |
    |  0D6040C2 F933381E  7A4C4797 F40FEDAB  | ?-?B9???:<?p4??? | ??@??38?zLG????? |
    ...
  • To display the full record information of the same disk when it in raw-track access mode:
    # dasdview -b 2c -s 1t /dev/dasdk
    This example displays:
    cylinder 2, head 0, record 0
    +------------------------------------------------------------------------------+
    | count area:                                                                  |
    |          hex: 0002000000000008                                               |
    |     cylinder:                2                                               |
    |         head:                0                                               |
    |       record:                0                                               |
    |   key length:                0                                               |
    |  data length:                8                                               |
    +------------------------------------------------------------------------------+
    | key area:                                                                    |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    +----------------------------------------+------------------+------------------+
    | data area:                                                                   |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  00000000 00000000                     | ................ | ................ |
    +----------------------------------------+------------------+------------------+
    
    cylinder 2, head 0, record 1
    +------------------------------------------------------------------------------+
    | count area:                                                                  |
    |          hex: 0002000001000200                                               |
    |     cylinder:                2                                               |
    |         head:                0                                               |
    |       record:                1                                               |
    |   key length:                0                                               |
    |  data length:              512                                               |
    +------------------------------------------------------------------------------+
    | key area:                                                                    |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    +----------------------------------------+------------------+------------------+
    | data area:                                                                   |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  52B7DBEE D6B9530B  0179F420 CB6EA95E  | ????O?????4??>z; | R?????S??y???n?^ |
    |  EF49C03C 513542E7  D8F17D9D 06DC44F7  | ??{????XQ1'????7 | ?I?<Q5B???}???D? |
    ...
    +----------------------------------------+------------------+------------------+
    
    cylinder 2, head 0, record 2
    +------------------------------------------------------------------------------+
    | count area:                                                                  |
    |          hex: 0002000002000200                                               |
    |     cylinder:                2                                               |
    |         head:                0                                               |
    |       record:                2                                               |
    |   key length:                0                                               |
    |  data length:              512                                               |
    +------------------------------------------------------------------------------+
    | key area:                                                                    |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    +----------------------------------------+------------------+------------------+
    | data area:                                                                   |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  92963D5B 0200B0FA  53745C12 C3B45125  | ko?$?.^???*?C??? | ??=[?.??St\???Q% |
    |  0D6040C2 F933381E  7A4C4797 F40FEDAB  | ?-?B9???:<?p4??? | ??@??38?zLG????? |
    ...
  • To display the contents of a disk, which is in raw-access mode, printing one track of data from the start of the disk:
    # dasdview -s 1t /dev/dasdk 
    This example displays:
    cylinder 0, head 0, record 0
    +------------------------------------------------------------------------------+
    | count area:                                                                  |
    |          hex: 0000000000000008                                               |
    |     cylinder:                0                                               |
    |         head:                0                                               |
    |       record:                0                                               |
    |   key length:                0                                               |
    |  data length:                8                                               |
    +------------------------------------------------------------------------------+
    | key area:                                                                    |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    +----------------------------------------+------------------+------------------+
    | data area:                                                                   |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  00000000 00000000                     | ................ | ................ |
    +----------------------------------------+------------------+------------------+
    
    cylinder 0, head 0, record 1
    +------------------------------------------------------------------------------+
    | count area:                                                                  |
    |          hex: 0000000001040018                                               |
    |     cylinder:                0                                               |
    |         head:                0                                               |
    |       record:                1                                               |
    |   key length:                4                                               |
    |  data length:               24                                               |
    +------------------------------------------------------------------------------+
    | key area:                                                                    |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  C9D7D3F1                              | IPL1............ | ????............ |
    +----------------------------------------+------------------+------------------+
    | data area:                                                                   |
    | HEXADECIMAL                            | EBCDIC           | ASCII            |
    |  01....04 05....08  09....12 13....16  | 1.............16 | 1.............16 |
    +----------------------------------------+------------------+------------------+
    |  000A0000 0000000F  03000000 00000001  | .?.....??......? | .?.....??......? |
    |  00000000 00000000                     | ................ | ................ |
    +----------------------------------------+------------------+------------------+
    ...