搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- DBLK(從一個區塊裝置中,顯示一個或多個區塊內容)

Displays the contents of one or more blocks from a block device.

DBLK device [Lba] [blocks] [-b]


    -b       - Display one screen at a time
    device   - Block device name
    Lba      - Index of the first block to be displayed in hex format
    blocks   - Number of blocks to be displayed in hex format

Note:
    1. The 'Lba' and 'blocks' parameters are in hexadecimal format.
    2. The 'Lba' parameter defaults to 0 if not specified.
    3. The 'blocks' parameter defaults to 1 if not specified.
    4. If 'blocks' is larger than 10, only the first 10 blocks will be
       displayed.
    5. Lba + blocks should not be larger than the last block of the device.
    6. If a FAT file system is detected, some FAT parameters will also be
       displayed (label, systemid, oemid, sectorsize, clustersize, media etc)
       after all the blocks have been displayed.
    7. If a MBR is detected on a FAT file system, the partition information
       will be displayed after all the block contents have been displayed.

Examples:
  * To display one block of blk0, beginning from block 0:
    Shell>dblk blk0

  * To display one block of fs0, beginning from block 0x2:
    Shell>dblk fs0 2

  * To display 0x5 blocks of fs0, beginning from block 0x12:
    Shell>dblk fs0 12 5

  * To display 0x10 blocks of fs0, beginning from block 0x12:
    Shell>dblk fs0 12 10

  * The attempt to display more than 0x10 blocks will display only 0x10 blocks:
    Shell>dblk fs0 12 20

  * To display one block of blk2, beginning from the first block (blk0):
    fs1:\tmps1> dblk blk2 0 1

 LBA 0000000000000000 Size 00000200 bytes BlkIo 3F0CEE78
  00000000: EB 3C 90 4D 53 44 4F 53-35 2E 30 00 02 04 08 00  *.<.MSDOS5.0.....*
  00000010: 02 00 02 00 00 F8 CC 00-3F 00 FF 00 3F 00 00 00  *........?...?...*
  00000020: 8E 2F 03 00 80 01 29 2C-09 1B D0 4E 4F 20 4E 41  *./....),...NO NA*
  00000030: 4D 45 20 20 20 20 46 41-54 31 36 20 20 20 33 C9  *ME    FAT16   3.*
  00000040: 8E D1 BC F0 7B 8E D9 B8-00 20 8E C0 FC BD 00 7C  *......... ......*
  00000050: 38 4E 24 7D 24 8B C1 99-E8 3C 01 72 1C 83 EB 3A  *8N$.$....<.r...:*
  00000060: 66 A1 1C 7C 26 66 3B 07-26 8A 57 FC 75 06 80 CA  *f...&f;.&.W.u...*
  00000070: 02 88 56 02 80 C3 10 73-EB 33 C9 8A 46 10 98 F7  *..V....s.3..F...*
  00000080: 66 16 03 46 1C 13 56 1E-03 46 0E 13 D1 8B 76 11  *f..F..V..F....v.*
  00000090: 60 89 46 FC 89 56 FE B8-20 00 F7 E6 8B 5E 0B 03  *`.F..V.. ....^..*
  000000A0: C3 48 F7 F3 01 46 FC 11-4E FE 61 BF 00 00 E8 E6  *.H...F..N.a.....*
  000000B0: 00 72 39 26 38 2D 74 17-60 B1 0B BE A1 7D F3 A6  *.r9&8-t.`.......*
  000000C0: 61 74 32 4E 74 09 83 C7-20 3B FB 72 E6 EB DC A0  *at2Nt... ;.r....*
  000000D0: FB 7D B4 7D 8B F0 AC 98-40 74 0C 48 74 13 B4 0E  *........@t.Ht...*
  000000E0: BB 07 00 CD 10 EB EF A0-FD 7D EB E6 A0 FC 7D EB  *................*
  000000F0: E1 CD 16 CD 19 26 8B 55-1A 52 B0 01 BB 00 00 E8  *.....&.U.R......*
  00000100: 3B 00 72 E8 5B 8A 56 24-BE 0B 7C 8B FC C7 46 F0  *;.r.[.V$......F.*
  00000110: 3D 7D C7 46 F4 29 7D 8C-D9 89 4E F2 89 4E F6 C6  *=..F.)....N..N..*
  00000120: 06 96 7D CB EA 03 00 00-20 0F B6 C8 66 8B 46 F8  *........ ...f.F.*
  00000130: 66 03 46 1C 66 8B D0 66-C1 EA 10 EB 5E 0F B6 C8  *f.F.f..f....^...*
  00000140: 4A 4A 8A 46 0D 32 E4 F7-E2 03 46 FC 13 56 FE EB  *JJ.F.2....F..V..*
  00000150: 4A 52 50 06 53 6A 01 6A-10 91 8B 46 18 96 92 33  *JRP.Sj.j...F...3*
  00000160: D2 F7 F6 91 F7 F6 42 87-CA F7 76 1A 8A F2 8A E8  *......B...v.....*
  00000170: C0 CC 02 0A CC B8 01 02-80 7E 02 0E 75 04 B4 42  *............u..B*
  00000180: 8B F4 8A 56 24 CD 13 61-61 72 0B 40 75 01 42 03  *...V$..aar.@u.B.*
  00000190: 5E 0B 49 75 06 F8 C3 41-BB 00 00 60 66 6A 00 EB  *^.Iu...A...`fj..*
  000001A0: B0 4E 54 4C 44 52 20 20-20 20 20 20 0D 0A 52 65  *.NTLDR      ..Re*
  000001B0: 6D 6F 76 65 20 64 69 73-6B 73 20 6F 72 20 6F 74  *move disks or ot*
  000001C0: 68 65 72 20 6D 65 64 69-61 2E FF 0D 0A 44 69 73  *her media....Dis*
  000001D0: 6B 20 65 72 72 6F 72 FF-0D 0A 50 72 65 73 73 20  *k error...Press *
  000001E0: 61 6E 79 20 6B 65 79 20-74 6F 20 72 65 73 74 61  *any key to resta*
  000001F0: 72 74 0D 0A 00 00 00 00-00 00 00 AC CB D8 55 AA  *rt............U.*

Fat 16 BPB  FatLabel: 'NO NAME    '  SystemId: 'FAT16   ' OemId: 'MSDOS5.0'
 SectorSize 200  SectorsPerCluster 4 ReservedSectors 8  # Fats 2
 Root Entries 200  Media F8  Sectors 32F8E  SectorsPerFat CC
 SectorsPerTrack 3F Heads 255

沒有留言:

張貼留言