• STR3 - ��� ����⠭����� Partition Table �p� ����稨 ��᪮� � HPFS?

    From FAQServer@2:5020/181 to All on Thu Apr 10 07:37:07 2025
    [Q]: ��� ����⠭����� Partition Table �p� ����稨 ��᪮� � HPFS?

    [A]: Basil Starostin (2:5020/857.11)

    ��� �⮣� ����室��� ���py������ ��� DOS'�� (��������, � ��᪥��)
    � ���y���� DiskEdit. � �p��樯�, �������� �� p�����p ��᪠,
    �� DiskEdit �������� �p���祭 � y�����.

    ��p���, �� ����室��� ᤥ����, �� ��p����� ᠬ� ��p�� ᥪ�p,
    �.�. Partition Table, �.�. ��������, �� ��� ���p���� ���pﭠ
    (��� �뫮 � ���� �y砥). ����� �y��� �믮����� �p� �y���:

    1. ��p������� ��砫� ��� ��᪮� (�� ᨣ���yp�).
    2. �p����쭮 ����� �� ��砫� � ����� ��᪮� (�筥�, 䨧���-
    ��� ���p������ ��砫 � ���殢 ��᪮�).
    3. �p����쭮 p������� ���� Relative Sectors � Number of Sectors.

    ����� �� �y���� �y�y� p�ᯨᠭ� ���p�����.


    I. ���� ��砫 ��᪮�.

    �᫨ ���� ��᪨ � ��⥬�� FAT, � ����� �p����p�⥫쭮 ���y�-
    ��� NDD � ��p����p�� /REBUILD. �� ������ ���� � ����⠭�����
    �� FAT ��p�樨, � ⠪�� Extended ��p�樨 (��� �� y ���� ��
    �ᥣ�� ���y砥���).

    ����p� ������� - �� ������ � ��᪠�� HPFS. �� ����室��� �᪠��
    �� ���H���P� ! ���� � ⮬, �� �p��� Boot-ᥪ�p� �������� � ���
    FAT � ��� HPFS. ���� �����p� ����, ���p���p, FAT Copies ���
    Sectors per FAT ��ᯮ����� ��� HPFS, �� ���� � ������ ���᫥�-
    �� ����, ��� OEM ID, Bytes per sector ��� ��⪠ ��᪠. �����
    �p������ �p���p �� ���������� ��� ����� HDD (��� ��� ����
    DiskEdit):

    OEM ID: OS2 20.0
    Bytes per sector: 512
    Media descriptor byte: F8 Hex
    Sectors per track: 63
    Sides: 64
    Physical drive number: 128
    Volume Label: OS2........
    File System ID: HPFS

    �p��� ⮣�, HPFS-��᪨ ��稭����� �� 'EB 4D 90', ��� '�M�' - ��
    ������� JUMP XX, ��� XX - ��p�� ��p�室�(���, �� �p����� ��p�, ��
    ���� 2-� ��᪠�).

    ��� �����, ����y��� �⨬� ����묨, ����� �����筮 �筮 �p���-
    �y�� ᮤ�p����� Boot-ᥪ�p�, � �� ��᪥ ���� ���. ��� ᥪ�p �
    �y��� ��砫�� ��襣� ��᪠ !


    II. ���� ��砫� � ���� ��᪮�.

    ����p� ����室��� ������ ���y祭�� ����� � ⠡���y p��������
    ��᪠ (Partition Table). ��� �⮣� y������ ��ᯮ�짮������
    DiskEdit'��. ���砫� �������� ���p������ ��砫 ��᪮� - Cylinder,
    Side � Sector (p��y����, ����p��, p�ᯮ������ �� �� ���p��⠭��,
    � ���� ��p�� ��� �������� � ⠡���y ��p��, ��� ��� �� ��
    �� ����� ���祭��). ��⥬ p�����뢠���� ���p������ ���殢 ��᪠
    - �� Cylinder �� ���� ����� ��砫� ��᪠. H��� �⬥���, �� y
    ��� ��᪮� ���� Side � Sector ��� ���� ��᪠ �ᥣ�� p���� ���-
    �������y �᫮, ������饥 �� ������p�� ���⪮�� ��᪠. �� �� ��-
    �� ��� ��砫� ��᪠ ⠪�� ��������� ��� ��� ��᪮�, �p��� ᠬ�-
    �� ��p���� (�p��y �� Part.Table), ��� ���� Side p���� 0 (��� �p�-
    ����, �⨬ ��᪮� ���� Boot Manager, � �������� �� p���� ����
    樫���p).


    III. ����� Relative Sectors � Number of sectors.

    ��� �y��� �祭� ����� ��� p����� OS/2. � �⫨稥 �� DOS, �p� ��-
    ᮮ⢥��⢨� ��� ����� OS/2 ��⠭���������� � �뤠祩 ᮮ�饭��
    'System stopped. ...'. ���� � ⮬, �� ���� Relative (��� Start)
    sectors � Number of sectors ����� ���P����� ���ﬨ, �p���
    ���y砥�묨 p���⮢ �� ��砫 � ���殢 ��᪮�. �py��� ����, ��
    OS/2 H� ����, ����� �� ����� ����� �p�����묨: Side-Cylinder-Sector ��� Relative-NumberOfSec ! ���⮬y-� � ���,
    � �⫨稥 �� DOS, ��⠭����������, �뢮�� ᮮ�饭�� �� �訡�� � �
    �p��졮� ��p����� �� �� ᫥�y�饩 ���py���.

    �⠪, ᠬ p����:

    ��� ��p���� p������:
    Relative Sectors = ��y � ���� Side (Ending Location)
    Number of sectors = Side * Sector (��� �� Ending Location)
    (��� Boot Manager'�. ��� ���筮�� ��᪠, ��p��⭮, �p������
    y������� �� �� �᫮ (Cylinder+1) ).

    ��� ��⠫��� p�������:
    Relative Sectors = R.S. + Num-of-Sec.
    (��� ���祭�� �� �p����饣� ��᪠)
    Number of sectors =
    = (Side * Sector + Side) * (Cylinder[i]-Cylinder[i-1]),
    � ���� �p���������� ��p��� ᪮��� �� p������� ����� Cylinder
    ��� ⥪y饣� � �p���y饣� ��᪮�.

    ��� Relative Sectors �y���y�� �� � ⠪�� �-�� (�� Tech Help):
    ��_ᥪ = (#��� * ᥪ_��_樫 * �������) + (#��� * ᥪ_��_樫)+
    + (#��� -1)
    H� ��� ��� ������� �� �祭� y������ �� �p������� � ᫮������.

    ���H�: ��᪮��y �� ���� ���⪮� ��᪥ ���祭�� Side � Sector
    ᮢ������, � �� ��� �筮 ��p�������, ����� ������ ����
    �ᯮ�짮����, �.�. � �p�y�� (Side * Sector + Side) ����-
    �� ����� ���� ⠪: (Side * Sector + Sector)

    ����� ����室��� ����� � �y��� System ⨯ ��᪠ (Extended,
    BigDOS, FAT16, HPFS � �.�.), � ��� ���py������� p������ y�⠭�-
    ���� �p����� Boot � Yes.�᫨ �y���, �p������� �� �� ���p�樨 ���
    �������� Extended Partition.


    ��. ����� ����p襭. ��� Partition Table ��������� ����⠭����-
    ��. ����p� �y��� ���y���� �����-���y�� �p����p HPFS ��� DOS,
    �⮡� �p���p��� �p����쭮��� Start/End Location: Side-Cylinder-Sectors, ���p� �� �����. ��⥬ ���y��� OS/2 -
    �᫨ �� �y��� ������ 'System stopped. ...' �p���p�� ��᫥
    ���py��� 'OS2DASD.DMD' (�� �y� �� �p�祬), � ����p�����, �� ��
    � �p����쭮 ����� Relative Sectors � Number of sectors. ��᫥
    �⮣� �y��� ChkDsk - �� ��直� �y砩, ���, y��, ���� �ᥣ��
    �p�室�� �� ����.


    �������p�� � ᮢ���.

    1. � �p��������(append.txt) ���� ����� �p��p��� DiskEdit �
    PartInfo(�� ���⠢�� PQMagic), ��� ���H�, ���⮬y ����� �ᯮ�짮-
    ���� �� ��� �p���p � ᢮�� p�����.

    2. �ᥣ�� ��p���� ᢮� Partition Table ��᫥ ���������,
    �y��-� FDisk'��, py���� ��� � ������� PQMagic. �p� ���y��,
    ���p�祭�� �� ��p������ 512-� ���� (��� Extended), � ���-
    ��� ��y����� ��� � �y�y饬.

    3. �� ����� ᤥ����, ��� �����y�, ᫥�y�騬� �p��p������:
    - DiskEdit (py����) (NU)
    - DiskTools 6.0 ��� ���� (NU)
    - Rescue (NU)
    - GtDisk/SEdit (��������) (GTU)
    - PartInfo (���⠢�� PMagic)

    � ��筮 ��p���� � ������� DiskTools � PartInfo - ��᫥����
    ��p���� (��p���, �뤠��) ����� � ��������� ����, �� �����-
    ��� ����������� ⠡���y, � �p����� �� �� �y����, �� �� �� ����-
    ������ ��᪥� ��� ���p�������� ��᪥.


    ����������������������������Ŀ
    � Partition Table (DiskEdit) �
    ������������������������������ ���������������������������������������������������������������������������Ŀ
    � � � Starting Location � Ending Location � Relative �Number of � �System�Boot�Side Cylinder Sector�Side Cylinder Sector� Sectors � Sectors �
    � ? � No � 0 167 1 � 63 175 63 � 673344� 36288� �EXTEND� No � 0 176 1 � 63 785 63 � 709632� 2459520�
    � HPFS � No � 0 1 1 � 63 166 63 � 4032� 669312�
    � ? � Yes� 1 0 1 � 63 0 63 � 63� 3969� �����������������������������������������������������������������������������


    ������������������������Ŀ
    � Boot sector (DiskEdit) �
    ��������������������������

    Description Boot Record Data DOS Reports Physical Sector: Cyl 1, Side 0, Sector 1
    OEM ID: OS2 20.0
    Bytes per sector: 512 0
    Sectors per cluster: 8 0
    Reserved sectors at beginning: 1 0
    FAT Copies: 0 0
    Root directory entries: 512 0
    Total sectors on disk: 0 0
    Media descriptor byte: F8 Hex
    Sectors per FAT: 201 0
    Sectors per track: 63
    Sides: 64
    Special hidden sectors: 4032
    Big total number of sectors: (Unused)
    Physical drive number: 128
    Extended Boot Record Signature: 28 Hex
    Volume Serial Number: 6786E414 Hex
    Volume Label: OS2........
    File System ID: HPFS

    Sector 0 of 0 Cyl 1, Side 0, Sector 1
    Hard Disk 1 Offset 54, hex 36

    ����������������������������Ŀ
    � Partition Table (PartInfo) �
    ������������������������������

    Partition Information Program
    Mar 20 1996 - DOS Version
    Copyright (c) 1994-1995, PowerQuest Corporation
    Permission is granted for this utility to be freely copied so long
    as it is not modified in any way. All other rights are reserved.

    Running this utility in a DOS Window under OS/2 shows the drives, geometries, and partitions seen by DOS programs running under OS/2. Run this utility in
    an OS/2 Window and after booting DOS to see if there are differences.

    ==============================================================
    Disk 0: 786 Cylinders, 64 Heads, 63 Sectors/Track.
    ====================== Partition Tables ======================
    Partition ----Begin---- ------End----- Start Num
    Sector # Boot Cyl Head Sect FS Cyl Head Sect Sect Sects
    ------- - ---- --- ---- ---- -- ---- ---- ---- ------- -------
    0 0 00 167 0 1 16 175 63 63 673344 36288
    0 1 00 176 0 1 05 785 63 63 709632 2459520
    0 2 00 1 0 1 07 166 63 63 4032 669312
    0 3 80 0 1 1 0A 0 63 63 63 3969
    709632 0 80 176 1 1 07 683 63 63 709695 2048193
    709632 1 00 684 0 1 05 785 63 63 2757888 411264
    2757888 0 80 684 1 1 06 785 63 63 2757951 411201

    ========================================================================
    Disk 0: 1547.4 Megabytes
    ========================= Partition Information ========================
    Volume Partition Partition Start Total Letter:Label Type Status Size MB Sector # Sector Sectors ------------- --------------- -------- ------- ------- - ------- -------
    Boot Manager Pri,Boot 1.9 0 3 63 3969
    *:OS2 HPFS Pri 326.8 0 2 4032 669312
    *:NO NAME Hidden FAT16B Pri 17.7 0 0 673344 36288
    Extended Pri 1200.9 0 1 709632 2459520
    EPBR Log 1000.1 None - 709632 2048256 *:SYS_WORK HPFS Log,Boot 1000.1 709632 0 709695 2048193
    EPBR Log 200.8 709632 1 2757888 411264 E:GAMES FAT16B Log,Boot 200.8 2757888 0 2757951 411201

    [A]: Stanislaw Kive (2:5030/750)

    OEM ID: IBM 4.50
    �� ��᪥, ᮧ������ ��p�p�� � LVM

    �p��� ⮣�, HPFS-��᪨, ᮧ�����, LVM ��稭����� �� 'EB 4E 90', ��� '�N�'.

    --- INN 2.7.3 (rc1 version)
    * Origin: This echo is READ-ONLY. Send %HELP to FAQSERVER at (2:5020/181)