|
Lines 455-460
Link Here
|
| 455 |
.It Cm show |
455 |
.It Cm show |
| 456 |
Show the current partition information of the specified geoms |
456 |
Show the current partition information of the specified geoms |
| 457 |
or all geoms if none are specified. |
457 |
or all geoms if none are specified. |
|
|
458 |
Default output shows the following information: |
| 459 |
The first column shows the logical starting block of the |
| 460 |
partition. Blocksize is 512 bytes. |
| 461 |
The second column shows the partition size in blocks. |
| 462 |
The third column shows the partition index. |
| 463 |
The fourth column shows the partition type and a human readable |
| 464 |
partition size. |
| 458 |
Additional options include: |
465 |
Additional options include: |
| 459 |
.Bl -tag -width 10n |
466 |
.Bl -tag -width 10n |
| 460 |
.It Fl l |
467 |
.It Fl l |
|
Lines 979-992
Link Here
|
| 979 |
Exit status is 0 on success, and 1 if the command fails. |
986 |
Exit status is 0 on success, and 1 if the command fails. |
| 980 |
.Sh EXAMPLES |
987 |
.Sh EXAMPLES |
| 981 |
Create a GPT scheme on |
988 |
Create a GPT scheme on |
| 982 |
.Pa ad0 : |
989 |
.Pa ada0 : |
| 983 |
.Bd -literal -offset indent |
990 |
.Bd -literal -offset indent |
| 984 |
/sbin/gpart create -s GPT ad0 |
991 |
/sbin/gpart create -s GPT ada0 |
| 985 |
.Ed |
992 |
.Ed |
| 986 |
.Pp |
993 |
.Pp |
| 987 |
Embed GPT bootstrap code into a protective MBR: |
994 |
Embed GPT bootstrap code into a protective MBR: |
| 988 |
.Bd -literal -offset indent |
995 |
.Bd -literal -offset indent |
| 989 |
/sbin/gpart bootcode -b /boot/pmbr ad0 |
996 |
/sbin/gpart bootcode -b /boot/pmbr ada0 |
| 990 |
.Ed |
997 |
.Ed |
| 991 |
.Pp |
998 |
.Pp |
| 992 |
Create a dedicated |
999 |
Create a dedicated |
|
Lines 1011-1025
Link Here
|
| 1011 |
offset or alignment. |
1018 |
offset or alignment. |
| 1012 |
The boot partition itself is aligned on a 4 kB boundary. |
1019 |
The boot partition itself is aligned on a 4 kB boundary. |
| 1013 |
.Bd -literal -offset indent |
1020 |
.Bd -literal -offset indent |
| 1014 |
/sbin/gpart add -b 40 -s 88 -t freebsd-boot ad0 |
1021 |
/sbin/gpart add -b 40 -s 88 -t freebsd-boot ada0 |
| 1015 |
/sbin/gpart bootcode -p /boot/gptboot -i 1 ad0 |
1022 |
/sbin/gpart bootcode -p /boot/gptboot -i 1 ada0 |
| 1016 |
.Ed |
1023 |
.Ed |
| 1017 |
.Pp |
1024 |
.Pp |
| 1018 |
Create a 512MB-sized |
1025 |
Create a 512MB-sized |
| 1019 |
.Cm freebsd-ufs |
1026 |
.Cm freebsd-ufs |
| 1020 |
partition to contain a UFS filesystem from which the system can boot. |
1027 |
partition to contain a UFS filesystem from which the system can boot. |
| 1021 |
.Bd -literal -offset indent |
1028 |
.Bd -literal -offset indent |
| 1022 |
/sbin/gpart add -s 512M -t freebsd-ufs ad0 |
1029 |
/sbin/gpart add -s 512M -t freebsd-ufs ada0 |
| 1023 |
.Ed |
1030 |
.Ed |
| 1024 |
.Pp |
1031 |
.Pp |
| 1025 |
Create an MBR scheme on |
1032 |
Create an MBR scheme on |