Path: blob/main/documentation/manual-pages/ru/man8/fdisk.8
18093 views
.\" %FreeBSD: src/sbin/fdisk/fdisk.8,v 1.39 2007/04/30 18:29:36 maxim Exp %
.\" $FreeBSDru: frdp/doc/ru_RU.KOI8-R/man/man8/fdisk.8,v 1.6 2007/11/20 13:50:08 ru Exp $
.\" $FreeBSD$
.\"
.Dd 30 ������ 2007
.Dt FDISK 8
.Os
.Sh ��������
.Nm fdisk
.Nd ������� ���������� ��������� ������� PC
.Sh ���������
.Nm
.Op Fl BIaipstu
.Op Fl b Ar ���������
.Op Fl 1234
.Op Ar ����
.Nm
.Fl f Ar ����_������������
.Op Fl itv
.Op Ar ����
.Sh ������
����� BIOS ���� ��������� ����, ���������� �������������� ������̣����
����������.
������� ������ ����� ������ ��������� ����������� ���,
������� ������� � ���������� �����.
��������� ������ BIOS, ���� ����� ���� ����̣� �� ��������� ������.
BIOS ��������� ������� ������ � ��������� ���������� �����.
����� ����������� ��� �� �������� ������� ��������� ������� �������,
����� ����� �����, ���������� ���
.Dq �������� .
����� �� ��������� ��������� ��������� �������� �� ��������� ������,
� ���� ����� ������� ��� �����������, ��������� ţ.
�
.Tn DOS
����� ���� ��������� �������, ���� �� ������� ����� ��������.
�������
.Nm
���
.Tn DOS
��������� ��������� �������� ������������ �� ������ � �������� ����
�� ��� ��� ��������.
.Sh ��������
�������
.Nm
���
.Fx
������ ��� �� �����, ��� � ����������� �� ������� ���
.Tn DOS .
������ ����� ������ ������������ ��� ������ ���������� � ����������
������� ��� ��� ţ �������������� � ������������� ������.
������ \[en] ��� ������ ������� �������
c �������������� ����� ������������
.Ar ����_������������ ;
��� ������������� ��� ������������� ������� ���������� ��� �����������.
.Pp
������� ��������� �����:
.Bl -tag -width indent
.It Fl a
������ �������� �������� �����.
������������ � ��������� � ������
.Fl f .
.It Fl b Ar ���������
������������ ��� �������� �� �����
.Ar ��������� .
�� ��������� ������������
.Pa /boot/mbr .
.It Fl B
�������� ��� �������� � ������� ������� �����.
������������ � ��������� � ������
.Fl f .
.It Fl f Ar ����_������������
���������� ��������� ������� �� �����
.Ar ����_������������ .
� ������� ����� ������������ �������� ��������� ������ ����
��������� �������, �� ���� ����� ������� �����
.Fl i ,
�� ����� ������� ����� ������������
��� ������������ ������ ���������
(���������� ��� ��������������,
.Dq unused ) .
��� ��������
.Sq Fl
� �������� ����� ������������
����� �������������� ����������� ����.
�������� ������� ����� ������������ �������� ���� � ������
.Sx ���� ������������ .
.Pp
.Em �������������� :
� ������� �� �������������� ������,
��� ������������� �����
.Fl f
��������� �������� ��� ������� �� �������������.
���������� ������������!
.It Fl i
���������������� ������� ������ �����.
����� ���������������, ������������ ������ �����
�������� ��� ��������������
.Pq Dq unused .
(�������� �
.Fl u . )
.It Fl I
���������������� ������� ������� � ������� 0 ����� �������
.Fx
�� ���� ����.
.It Fl p
���������� ������� ������� � ������� ����������������� �����
.Nm
� �����; ��.\&
.Sx ���� ������������
����.
.It Fl s
���������� ������� ���������� � �����.
.It Fl t
����� ������������: ��������� �� ���� ������������ �� �����.
��� �������, ������������ ��������� � ������
.Fl f
����� ������, ��� ���� �� �������� � ������� �������.
�������� �����
.Fl v .
.It Fl u
������������� ������� ������� ����� � ������� 0.
������������ � ��������� � ������
.Fl f .
.It Fl v
�������� ��������� ���������.
� ��������� �
.Fl f ,
.Nm
�������� ������������ ������� �������.
.It Fl 1234
����������� ������ � ����� �������.
������������ � ��������� � ������
.Fl f .
.El
.Pp
� �������� ���������
.Ar ����
��������� �������� ��� ������ ����� ����� (��������,
.Pa da0 ) ,
��� � ������� ���� � ����.
���� �������� �� ������,
.Nm
�������� ���������� ��� ����� �� ��������� �� ����� ����������,
�� ������� ��������� �������� �������� �������.
.Pp
��� ������ ��� ���������� ���������� ������� ������� �� ������� 0.
������:
.Bd -literal
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=769 heads=15 sectors/track=33 (495 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=769 heads=15 sectors/track=33 (495 blks/cyl)
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 495, size 380160 (185 Meg), flag 0
beg: cyl 1/ sector 1/ head 0;
end: cyl 768/ sector 33/ head 14
The data for partition 2 is:
sysid 164,(unknown)
start 378180, size 2475 (1 Meg), flag 0
beg: cyl 764/ sector 1/ head 0;
end: cyl 768/ sector 33/ head 14
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 99,(ISC UNIX, other System V/386, GNU HURD or Mach)
start 380656, size 224234 (109 Meg), flag 80
beg: cyl 769/ sector 2/ head 0;
end: cyl 197/ sector 33/ head 14
.Ed
.Pp
���� ����̣� �� ��� ������, ������� ��������� ��� ����������.
������ ����� �������� ������������� � ������ �������.
(������������ � ����� �������.)
.Bl -tag -width ".Em cyl , sector No � Em head"
.It Em sysid
������������ ��� ���������� �������.
.Fx
����������� ��� ���� ���������� ����� 165 � ���������� �������
��������� (A5 � �����������������).
.It Xo
.Em start
�
.Em size
.Xc
����, ���������� ��������� �����
� ������ ������ � ��������.
.It Em "flag 80"
��������� �� ��, ��� ��� �������� �����.
.It Xo
.Em cyl , sector
�
.Em head
.Xc
���� ������������ ��� �������� ���������� � ��������� ������� ������
(�������, ������ � ������� ��������������).
.El
.Pp
.Em ��������� :
��� ����� ����������� ������ �� ��������� �����, �������������� BIOS,
� �������� � ����������� �������.
.Pp
�����
.Fl i
�
.Fl u
��������� ��������� �� ��, ��� ������� ������� ������ ���� ��������.
���� ����
.Fl f
�� ��� ������,
������ � �������� ����� ����������� � ���������� ������.
� ���� ������ ������� ��������� �� ���� ������������ �� �����,
���� �� ���� �� ���������� �����.
.Pp
������� ������� ������ ����� � �������, ������ �� �� ��� ���������������.
� ������ ��������������� ������,
.Nm
����� ��������������� ���������� �� ���� � ����, ��������� ������
�������� � ���������� �����.
����� �� ��������� ������������� �����,
.Nm
������� ���������� � Σ� � �������, �������� �� �� � ���ģ�����
����������, � ���� ����� ����� ��������������, �����ģ� �
���������� ������.
.Pp
��������� ��������� ��������
.Em cyl , sector ,
�
.Em head
������ ������, ������� �� ��������� ��� �����������
�������������.
��� �� �����, ��� ������������� �� ������ ������ �� ��������������.
.Pp
����� ����, ��� ��� ������ ���� ����������, ��� ����� ���������� ��������
.Dq ��������
�����.
�������, ����� ��� ����� ������ ����� �������, ������� ��������
������������� �� ������ � ������� ������.
.Pp
������� ����� �������
.Fl u
�
.Fl i
����������� � ���, ���
.Fl u
����������� (���������) ��������� ������������ �������, ����� ���
.Fl i
������������ ��� ��
.Dq �������������
(������ �������� ������������).
���� ������������� ������ �����, ��
.Fl i
�������� ��� ���, ����� �� ��������� ���� ����, � ������� ��� ��������.
.Sh ���������
��� �������������� ���������� ���������� ��������, ������� � �.�.\&
������������ �����
��������, ���������� ��������� ����� �� ������ ������ BIOS.
�� ��������� ��� �������� ������� �� ����� ����� � ����
(in-core disk label), ��
.Nm
������������� ����������� �������� ��.
��� ��������� ������� ����������� ����, ������� ����� ��������
� �������, ������������� ���������� ������� ����� BIOS.
.Pp
�������� ���� ������� ���������, ��� ������
.Fx
���������� �� ������� ��������.
.Pp
��������� ���������� ������������� ������ � ������� ������������
����� �������� � ������ ������, ���������� �� ���� ������.
.Pp
����� ����� ��������� ��� ���������
.Nm
� ������������� ������, ����� ����������� ��� ���������,
������� ��� �������ģ�.
��� ��������� ��� �������, ��� �� �������� ������������ �� ���������
������,
.Dq "Should we write new partition table?" .
������� ��� ��������� ������������, ������� �������
.Nm
������������,
�� ������� �� ����������� �������� � ���� �������� �����������.
.Sh ���� ������������
��� ������������� �����
.Fl f
������� ������� ����� ����� ���� �������� � ������� ��������,
��������� � �����
.Ar ����_������������ .
������ ����� ����� ���������� �����: ������ ������ �������� ����
������������, ���� �������������, ��� �������� ����:
.Bl -tag -width indent
.It Ic # Ar ����������� ...
������, ������������ �
.Ic #
�������� ������������� � ������������.
.It Ic g Ar spec1 spec2 spec3
������ ��������� BIOS, �������������� ��� ���������� ���������� �������.
������ ���� ������� ��� ��������, � ������ ����� ������ ������:
.Bl -tag -width indent
.It Cm c Ns Ar num
���������� ����� ��������� ������
.Ar num .
.It Cm h Ns Ar num
���������� ����� ������� ������
.Ar num .
.It Cm s Ns Ar num
���������� ����� �������� �� ������� ������
.Ar num .
.El
.Pp
�������� ����� ���� ������� � ����� �������, �.�.\& ������ �����
���������� ���������� ����� �������� ������� �����.
������, � �����
������, ������ ���� ������� ��� ���.
.Pp
��� ������ ������ �������������� �������, �������� ��������� �������.
.Pp
�������� ����� ���� � ����� ����������:
.Bd -literal -offset indent
1 <= ����� ���������
1 <= ����� ������� <= 256
1 <= ����� �������� �� ������� < 64
.Ed
.Pp
����� ��������� ������ ���� ������ ���� ������ 1024.
��� ��
������ �����������, �� ���� �� ������� �����, ������� 1024, �����
������ ��������������.
������� ���������, ��� ����������� ������
.Fx ,
���������� ��������
.Pq Dq Pa /
�������� �������, ������ ������������� � ������ 1024 ���������,
����� ����� ���������� �������� c ���������.
��� ����������� �� ���������������� �� ��-����������� ������.
.Pp
������ ��������� ����� (��� �������� ���������) � 1019 ����������,
39 ��������� � 63 ��������� �� �������:
.Bd -literal -offset indent
g c1019 h39 s63
g h39 c1019 s63
g s63 h39 c1019
.Ed
.It Ic p Ar slice type start length
������ ������ � �������
.Ar slice
(1-4) ���
.Ar type ,
��������� ������
.Ar start
� ������
.Ar length
��������.
.Pp
���������� ������������ ������ �� ������, ��������� ������� ������
������ ��������, ��������� ������ �������� ���� ������� ���������.
������, ���� ������������ ������� ������� ����� �����������
��� �� ����� ������� �����
.Fl i ,
��� ������������ ������ ����� ������� (�������� ��� ��������������),
� ��� �������� ���������� ����� ������ ���������������
.Ic p
������.
��� ������� ���������� ��� ���������� ������� ������� ������ ���������
�����
.Ic p ,
�� ����� �� ������ �����.
.Pp
��� ������ ������ ��������� �� �������, �������� ���������, ����
����� ������ ������������ � �����.
.Pp
���
.Fx
������� ��������
.Ar type
����� 165.
�������� �������� ���� ���������� �������� ������ (�������� ���
.Dq unused ) ,
������ �����
.Ar start
�
.Ar length
� ���� ������ ����� ������ ���� ��������� ������������ ��������,
��������, 0.
.Pp
���������: ��� �������������, ��������� ��������
����� ��������� ����� �� ������� �������, � �������� ��������
\[en] ���� �� ������� ��������.
.Pp
������: ����� ������� 4-� ����� � ������� ��� ��������������
.Pq Dq unused :
.Pp
.Dl "p 4 0 0 0"
.Pp
������: ����� ���������� 1-� ����� ��� ����� ���
.Fx ,
������������ � 1-�� ������� �������� � 2503871 �������� (���
�������� ����� ��������� ����� � ���� ����� �������, �����
����� ������� �� ������� ������� � �������� ��������������):
.Pp
.Dl "p 1 165 1 2503871"
.It Ic a Ar slice
������� �����
.Ar slice
��������.
��� ������ ����� ������������� � ����� ��� ������, ��
����� ���� ������ ���� ����� ������ �� ���� ����.
.Pp
������: ����� ������� �������� 1-� �����:
.Pp
.Dl "a 1"
.El
.Sh �����
.Bl -tag -width ".Pa /boot/mbr" -compact
.It Pa /boot/mbr
��� ���������� �� ���������.
.El
.Sh ������ �����
.Xr boot0cfg 8 ,
.Xr bsdlabel 8 ,
.Xr newfs 8
.Sh ��������
��� ���������� �� ��������� �� ������ ��������� ���������� ��� ����
�������, � ���������
��, ������� ���� ������� ������� �
.Tn MS-DOS
6.x.
.Pp
������ ������� ����� �� ���� ����� ������������� ������������.
.Pp
����������� ��������
.Fx
�� �������� ������� �����
.Dq �������
�
.Dq �������� ,
��� �������� � ���������.
.Pp
� ������� ���� ������� ���������� ������ ���� ���� �������
��� �������������
.Fx .
��� ����� ����� ������������ �������
.Xr bsdlabel 8 .