Lines Matching +full:partition +full:-
142 utility is used to partition GEOM providers, normally disks.
144 .Bl -tag -width ".Cm bootcode"
147 Add a new partition to the partitioning scheme given by
149 The partition type must be specified with
151 The partition's location, size, and other attributes will be calculated
157 .Bl -tag -width 12n
163 offset and partition
169 The logical block address where the partition will begin.
178 The index in the partition table at which the new partition is to be
181 to represent the partition.
183 The label attached to the partition.
185 partition labels.
187 Create a partition of size
191 Create a partition of type
193 Partition types are discussed below in the section entitled
194 .Sx "PARTITION TYPES" .
198 Dump a partition table to standard output in a special format used by the
207 or write bootstrap code into a partition (using
215 .Bl -tag -width 10n
231 option is scheme-specific in nature (see the section entitled
245 Specify the target partition for
252 partition specified by
254 The size of the file must be smaller than the size of the partition.
282 .Bl -tag -width 10n
290 The number of entries in the partition table.
296 By default, partition tables are created with the minimum number of
301 that scheme can be used to partition a disk.
305 Delete a partition from geom
310 The partition cannot be actively used by the kernel.
315 .Bl -tag -width 10n
323 Specifies the index of the partition to be deleted.
333 .Bl -tag -width 10n
335 Forced destroying of the partition table even if it is not empty.
345 Modify a partition from geom
350 Only the type and/or label of the partition can be modified.
352 try to change a partition label in such cases.
357 .Bl -tag -width 10n
365 Specifies the index of the partition to be modified.
367 Change the partition label to
370 Change the partition type to
375 Recover a corrupt partition's scheme metadata on the geom
384 .Bl -tag -width 10n
394 Resize a partition from geom
406 .Bl -tag -width 12n
410 utility tries to align partition
422 Specifies the index of the partition to be resized.
424 Specifies the new size of the partition, in logical blocks.
429 Restore the partition table from a backup previously created by the
432 Only the partition table is restored.
434 After restoring the partition table and writing bootcode if needed,
440 .Bl -tag -width 10n
442 Destroy partition table on the given
452 Restore partition labels for partitioning schemes that support them.
456 Set the named attribute on the partition entry.
464 .Bl -tag -width 10n
474 Specifies the index of the partition on which the attribute will be set.
478 Show current partition information for the specified geoms, or all
481 partition, the partition size in blocks, the partition index number,
482 the partition type, and a human readable partition size.
490 .Bl -tag -width 10n
492 For partitioning schemes that support partition labels, print them
493 instead of partition type.
495 Show provider names instead of partition indexes.
497 Show raw partition type instead of symbolic name.
508 Clear the named attribute on the partition entry.
516 .Bl -tag -width 10n
526 Specifies the index of the partition on which the attribute will be cleared.
545 .Bl -tag -width ".Cm BSD64"
547 Apple Partition Map, used by PowerPC(R) Macintosh(R) computers.
558 Partition editing tools from other operating systems often do not
559 understand the bare disklabel partition layout, so this is sometimes
567 64-bit implementation of BSD disklabel used in
581 GUID Partition Table is used on Intel-based Macintosh computers and
594 which is used to define a logical partition.
597 option enables backward compatibility for partition names
605 .Sh PARTITION TYPES
606 Partition types are identified on disk by particular strings or magic
610 utility uses symbolic names for common partition types so the user
615 utility also allows the user to specify scheme-specific partition types
616 for partition types that do not have symbolic names.
620 .Bl -tag -width ".Cm dragonfly-disklabel64"
621 .It Cm apple-boot
622 The system partition dedicated to storing boot loaders on some Apple
624 The scheme-specific types are
629 .Qq Li "!426f6f74-0000-11aa-aa11-00306543ecac"
631 .It Cm bios-boot
632 The system partition dedicated to second stage of the boot loader program.
634 The scheme-specific type is
635 .Qq Li "!21686148-6449-6E6F-744E-656564454649" .
637 The system partition for computers that use the Extensible Firmware
639 The scheme-specific types are
642 .Qq Li "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b"
647 partition subdivided into filesystems with a
650 This is a legacy partition type and should not be used for the APM
652 The scheme-specific types are
657 .Qq Li "!516e7cb4-6ecf-11d6-8ff8-00022d09712b"
659 .It Cm freebsd-boot
662 partition dedicated to bootstrap code.
663 The scheme-specific type is
664 .Qq Li "!83bd6b9d-7f41-11dc-be0b-001560b84f0f"
666 .It Cm freebsd-swap
669 partition dedicated to swap space.
670 The scheme-specific types are
671 .Qq Li "!FreeBSD-swap"
673 .Qq Li "!516e7cb5-6ecf-11d6-8ff8-00022d09712b"
675 .It Cm freebsd-ufs
678 partition that contains a UFS or UFS2 filesystem.
679 The scheme-specific types are
680 .Qq Li "!FreeBSD-UFS"
682 .Qq Li "!516e7cb6-6ecf-11d6-8ff8-00022d09712b"
684 .It Cm freebsd-vinum
687 partition that contains a Vinum volume.
688 The scheme-specific types are
689 .Qq Li "!FreeBSD-Vinum"
691 .Qq Li "!516e7cb8-6ecf-11d6-8ff8-00022d09712b"
693 .It Cm freebsd-zfs
696 partition that contains a ZFS volume.
697 The scheme-specific types are
698 .Qq Li "!FreeBSD-ZFS"
700 .Qq Li "!516e7cba-6ecf-11d6-8ff8-00022d09712b"
707 .Bl -tag -width ".Cm dragonfly-disklabel64"
708 .It Cm apple-apfs
709 An Apple macOS partition used for the Apple file system, APFS.
710 .It Cm apple-core-storage
711 An Apple Mac OS X partition used by logical volume manager known as
713 The scheme-specific type is
714 .Qq Li "!53746f72-6167-11aa-aa11-00306543ecac"
716 .It Cm apple-hfs
717 An Apple Mac OS X partition that contains a HFS or HFS+ filesystem.
718 The scheme-specific types are
723 .Qq Li "!48465300-0000-11aa-aa11-00306543ecac"
725 .It Cm apple-label
726 An Apple Mac OS X partition dedicated to partition metadata that descibes
728 The scheme-specific type is
729 .Qq Li "!4c616265-6c00-11aa-aa11-00306543ecac"
731 .It Cm apple-raid
732 An Apple Mac OS X partition used in a software RAID configuration.
733 The scheme-specific type is
734 .Qq Li "!52414944-0000-11aa-aa11-00306543ecac"
736 .It Cm apple-raid-offline
737 An Apple Mac OS X partition used in a software RAID configuration.
738 The scheme-specific type is
739 .Qq Li "!52414944-5f4f-11aa-aa11-00306543ecac"
741 .It Cm apple-tv-recovery
742 An Apple Mac OS X partition used by Apple TV.
743 The scheme-specific type is
744 .Qq Li "!5265636f-7665-11aa-aa11-00306543ecac"
746 .It Cm apple-ufs
747 An Apple Mac OS X partition that contains a UFS filesystem.
748 The scheme-specific types are
753 .Qq Li "!55465300-0000-11aa-aa11-00306543ecac"
755 .It Cm apple-zfs
756 An Apple Mac OS X partition that contains a ZFS volume.
757 The scheme-specific type is
758 .Qq Li "!6a898cc3-1dd2-11b2-99a6-080020736631"
761 .Sy illumos/Solaris /usr partition .
765 .It Cm dragonfly-label32
768 partition subdivided into filesystems with a
771 The scheme-specific type is
772 .Qq Li "!9d087404-1ca5-11dc-8817-01301bb8a9f5"
774 .It Cm dragonfly-label64
777 partition subdivided into filesystems with a
779 The scheme-specific type is
780 .Qq Li "!3d48ce54-1d16-11dc-8696-01301bb8a9f5"
782 .It Cm dragonfly-legacy
783 A legacy partition type used in
785 The scheme-specific type is
786 .Qq Li "!bd215ab2-1d16-11dc-8696-01301bb8a9f5"
788 .It Cm dragonfly-ccd
791 partition used with Concatenated Disk driver.
792 The scheme-specific type is
793 .Qq Li "!dbd5211b-1ca5-11dc-8817-01301bb8a9f5"
795 .It Cm dragonfly-hammer
798 partition that contains a Hammer filesystem.
799 The scheme-specific type is
800 .Qq Li "!61dc63ac-6e38-11dc-8513-01301bb8a9f5"
802 .It Cm dragonfly-hammer2
805 partition that contains a Hammer2 filesystem.
806 The scheme-specific type is
807 .Qq Li "!5cbb9ad1-862d-11dc-a94d-01301bb8a9f5"
809 .It Cm dragonfly-swap
812 partition dedicated to swap space.
813 The scheme-specific type is
814 .Qq Li "!9d58fdbd-1ca5-11dc-8817-01301bb8a9f5"
816 .It Cm dragonfly-ufs
819 partition that contains an UFS1 filesystem.
820 The scheme-specific type is
821 .Qq Li "!9d94ce7c-1ca5-11dc-8817-01301bb8a9f5"
823 .It Cm dragonfly-vinum
826 partition used with Logical Volume Manager.
827 The scheme-specific type is
828 .Qq Li "!9dd4478f-1ca5-11dc-8817-01301bb8a9f5"
831 A partition subdivided into filesystems with a EBR.
832 The scheme-specific type is
836 A partition that contains a FAT16 filesystem.
837 The scheme-specific type is
841 A partition that contains a FAT32 filesystem.
842 The scheme-specific type is
846 A partition that contains a FAT32 (LBA) filesystem.
847 The scheme-specific type is
850 .It Cm hifive-fsbl
851 A raw partition containing a HiFive first stage bootloader.
852 The scheme-specific type is
853 .Qq Li "!5b193300-fc78-40cd-8002-e86c45580b47"
855 .It Cm hifive-bbl
856 A raw partition containing a HiFive second stage bootloader.
857 The scheme-specific type is
858 .Qq Li "!2e54b353-1271-4842-806f-e436d6af6985"
860 .It Cm linux-data
861 A Linux partition that contains some filesystem with data.
862 The scheme-specific types are
865 .Qq Li "!0fc63daf-8483-4772-8e79-3d69d8477de4"
867 .It Cm linux-lvm
868 A Linux partition dedicated to Logical Volume Manager.
869 The scheme-specific types are
872 .Qq Li "!e6d6d379-f507-44c2-a23c-238f2a3df928"
874 .It Cm linux-raid
875 A Linux partition used in a software RAID configuration.
876 The scheme-specific types are
879 .Qq Li "!a19d880f-05fc-4d3b-a006-743f0f84911e"
881 .It Cm linux-swap
882 A Linux partition dedicated to swap space.
883 The scheme-specific types are
886 .Qq Li "!0657fd6d-a4ab-43c4-84e5-0933c84b4f4f"
889 A partition that is sub-partitioned by a Master Boot Record (MBR).
891 .Qq Li "!024dee41-33e7-11d3-9d69-0008c781f39f"
893 .It Cm ms-basic-data
894 A basic data partition (BDP) for Microsoft operating systems.
895 In the GPT this type is the equivalent to partition types
901 The scheme-specific type is
902 .Qq Li "!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"
904 .It Cm ms-ldm-data
905 A partition that contains Logical Disk Manager (LDM) volumes.
906 The scheme-specific types are
909 .Qq Li "!af9b60a0-1431-4f62-bc68-3311714a69ad"
911 .It Cm ms-ldm-metadata
912 A partition that contains Logical Disk Manager (LDM) database.
913 The scheme-specific type is
914 .Qq Li "!5808c8aa-7e8f-42e0-85d2-e1e90434cfb3"
916 .It Cm netbsd-ccd
919 partition used with Concatenated Disk driver.
920 The scheme-specific type is
921 .Qq Li "!2db519c4-b10f-11dc-b99b-0019d1879648"
923 .It Cm netbsd-cgd
926 partition.
927 The scheme-specific type is
928 .Qq Li "!2db519ec-b10f-11dc-b99b-0019d1879648"
930 .It Cm netbsd-ffs
933 partition that contains an UFS filesystem.
934 The scheme-specific type is
935 .Qq Li "!49f48d5a-b10e-11dc-b99b-0019d1879648"
937 .It Cm netbsd-lfs
940 partition that contains an LFS filesystem.
941 The scheme-specific type is
942 .Qq Li "!49f48d82-b10e-11dc-b99b-0019d1879648"
944 .It Cm netbsd-raid
947 partition used in a software RAID configuration.
948 The scheme-specific type is
949 .Qq Li "!49f48daa-b10e-11dc-b99b-0019d1879648"
951 .It Cm netbsd-swap
954 partition dedicated to swap space.
955 The scheme-specific type is
956 .Qq Li "!49f48d32-b10e-11dc-b99b-0019d1879648"
959 A partition that contains a NTFS or exFAT filesystem.
960 The scheme-specific type is
963 .It Cm prep-boot
964 The system partition dedicated to storing boot loaders on some PowerPC systems,
966 The scheme-specific types are
969 .Qq Li "!9e1a2d38-c612-4316-aa26-8b49521e5a8b"
971 .It Cm solaris-boot
972 A illumos/Solaris partition dedicated to boot loader.
973 The scheme-specific type is
974 .Qq Li "!6a82cb45-1dd2-11b2-99a6-080020736631"
976 .It Cm solaris-root
977 A illumos/Solaris partition dedicated to root filesystem.
978 The scheme-specific type is
979 .Qq Li "!6a85cf4d-1dd2-11b2-99a6-080020736631"
981 .It Cm solaris-swap
982 A illumos/Solaris partition dedicated to swap.
983 The scheme-specific type is
984 .Qq Li "!6a87c46f-1dd2-11b2-99a6-080020736631"
986 .It Cm solaris-backup
987 A illumos/Solaris partition dedicated to backup.
988 The scheme-specific type is
989 .Qq Li "!6a8b642b-1dd2-11b2-99a6-080020736631"
991 .It Cm solaris-var
992 A illumos/Solaris partition dedicated to /var filesystem.
993 The scheme-specific type is
994 .Qq Li "!6a8ef2e9-1dd2-11b2-99a6-080020736631"
996 .It Cm solaris-home
997 A illumos/Solaris partition dedicated to /home filesystem.
998 The scheme-specific type is
999 .Qq Li "!6a90ba39-1dd2-11b2-99a6-080020736631"
1001 .It Cm solaris-altsec
1002 A illumos/Solaris partition dedicated to alternate sector.
1003 The scheme-specific type is
1004 .Qq Li "!6a9283a5-1dd2-11b2-99a6-080020736631"
1006 .It Cm solaris-reserved
1007 A illumos/Solaris partition dedicated to reserved space.
1008 The scheme-specific type is
1009 .Qq Li "!6a945a3b-1dd2-11b2-99a6-080020736631"
1011 .It Cm u-boot-env
1012 A raw partition dedicated to U-Boot for storing its environment.
1013 The scheme-specific type is
1014 .Qq Li "!3de21764-95bd-54bd-a5c3-4abe786f38a8"
1016 .It Cm vmware-vmfs
1017 A partition that contains a VMware File System (VMFS).
1018 The scheme-specific types are
1021 .Qq Li "!aa31e02a-400f-11db-9590-000c2911d1b8"
1023 .It Cm vmware-vmkdiag
1024 A partition that contains a VMware diagostic filesystem.
1025 The scheme-specific types are
1028 .Qq Li "!9d275380-40ad-11db-bf97-000c2911d1b8"
1030 .It Cm vmware-reserved
1031 A VMware reserved partition.
1032 The scheme-specific type is
1033 .Qq Li "!9198effc-31c0-11db-8f-78-000c2911d1b8"
1035 .It Cm vmware-vsanhdr
1036 A partition claimed by VMware VSAN.
1037 The scheme-specific type is
1038 .Qq Li "!381cfccc-7288-11e0-92ee-000c2911d0b2"
1042 The scheme-specific attributes for EBR:
1043 .Bl -tag -width ".Cm active"
1047 The scheme-specific attributes for GPT:
1048 .Bl -tag -width ".Cm bootfailed"
1052 stage 1 boot loader will try to boot the system from this partition.
1065 stage 1 boot loader will try to boot the system from this partition only once.
1080 start-up script.
1086 the 0xee partition is the second, rather than the first record.
1092 The scheme-specific attributes for MBR:
1093 .Bl -tag -width ".Cm active"
1105 second type is located on a specific partition.
1114 The Master Boot Record (MBR) uses a 512-byte bootstrap code image, embedded
1115 into the partition table's metadata area.
1121 searches for a partition with the
1125 section) in the partition table.
1130 for multi-booting from a user-selected partition.
1132 A BSD disklabel is usually created inside an MBR partition (slice)
1136 .Sx "PARTITION TYPES"
1140 embedded into the partition table's metadata area.
1142 Both types of bootstrap code are used to boot from the GUID Partition Table.
1147 .Cm freebsd-boot
1148 partition (see the
1149 .Sx "PARTITION TYPES"
1152 .Cm freebsd-boot
1153 partition should be smaller than 545 KB.
1157 There are two variants of bootstrap code to write to this partition:
1166 .Cm freebsd-ufs
1175 .Cm freebsd-ufs
1176 partition.
1179 is loaded from the first partition that matches these conditions.
1187 .Cm freebsd-zfs
1198 command to a partition of type
1199 .Cm apple-boot ,
1209 This option is used to specify action-specific operational flags.
1226 The GEOM PART class supports recovering of partition tables only for GPT.
1242 .Bd -literal -offset indent
1244 GEOM: provider: using the secondary instead -- recovery strongly advised.
1248 .Bd -literal -offset indent
1250 GEOM: provider: using the primary only -- recovery suggested.
1264 corruption of the primary GPT will lead to loss of the partition table.
1266 .Bd -literal -offset indent
1277 The GEOM PART class can detect the same partition table visible through
1289 .Bl -tag -width indent
1312 GEOM class verifies all generic partition parameters obtained from the
1314 If some inconsistency is detected, the partition table will be
1329 .Cm ms-ldm-data
1331 .Sx "PARTITION TYPES"
1334 present as independent partition.
1339 If this variable is set to a non-zero value, the module will automatically
1340 recalculate the user-specified offset and size for alignment with the CHS
1345 and partition name.
1361 First, we need to create the partition table:
1362 .Bd -literal -offset indent
1363 /sbin/gpart create -s GPT ada0
1366 Next, we install a protective MBR with the first-stage bootstrap code.
1367 The protective MBR lists a single, bootable partition spanning the
1368 entire disk, thus allowing non-GPT-aware BIOSes to boot from the disk
1371 .Bd -literal -offset indent
1372 /sbin/gpart bootcode -b /boot/pmbr ada0
1376 .Cm freebsd-boot
1377 partition to hold the second-stage boot loader, which will load the
1380 This partition must be larger than the bootstrap code
1388 but smaller than 545 kB since the first-stage loader will load the
1389 entire partition into memory during boot, regardless of how much data
1391 We create a 472-block (236 kB) boot partition at offset 40, which is
1392 the size of the partition table (34 blocks or 17 kB) rounded up to the
1394 .Bd -literal -offset indent
1395 /sbin/gpart add -b 40 -s 472 -t freebsd-boot ada0
1396 /sbin/gpart bootcode -p /boot/gptboot -i 1 ada0
1399 We now create a 4 GB swap partition at the first available offset,
1401 .Bd -literal -offset indent
1402 /sbin/gpart add -s 4G -t freebsd-swap ada0
1405 Aligning the swap partition and all subsequent partitions on a 256 kB
1407 plain old disks with 512-byte blocks, through modern
1409 disks with 4096-byte physical blocks, to RAID volumes with stripe
1413 .Cm freebsd-ufs
1414 partition for the root filesystem, leaving the rest of the device free
1416 .Bd -literal -offset indent
1417 /sbin/gpart add -s 8G -t freebsd-ufs ada0
1418 /sbin/newfs -Uj /dev/ada0p3
1423 with the MBR scheme and create a single partition which we subdivide
1428 First, we create the partition table as well as a single partition 64 GB in
1429 size and an alignment of 4 kB, then we mark that partition active (bootable)
1430 and install the first-stage boot loader:
1431 .Bd -literal -offset indent
1432 /sbin/gpart create -s MBR ada0
1433 /sbin/gpart add -t freebsd -s 64G -a 4k ada0
1434 /sbin/gpart set -a active -i 1 ada0
1435 /sbin/gpart bootcode -b /boot/boot0 ada0
1438 Next, we create a disklabel in that partition
1444 .Bd -literal -offset indent
1445 /sbin/gpart create -s BSD -n 20 ada0s1
1448 We then create an 8 GB root partition and a 4 GB swap partition:
1449 .Bd -literal -offset indent
1450 /sbin/gpart add -t freebsd-ufs -s 8G ada0s1
1451 /sbin/gpart add -t freebsd-swap -s 4G ada0s1
1457 .Bd -literal -offset indent
1458 /sbin/gpart bootcode -b /boot/boot ada0s1
1463 error is shown when trying to destroy a partition table, remember that
1470 .Bd -literal -offset indent
1471 /sbin/gpart delete -i 3 da0
1472 /sbin/gpart delete -i 2 da0
1473 /sbin/gpart delete -i 1 da0
1477 Rather than deleting each partition and then destroying the partitioning
1484 .Bd -literal -offset indent
1485 /sbin/gpart destroy -F da0
1488 Create a backup of the partition table from
1490 .Bd -literal -offset indent
1494 Restore the partition table from the backup to
1496 .Bd -literal -offset indent
1497 /sbin/gpart restore -l da0 < /mnt/da0.backup
1500 Clone the partition table from
1506 .Bd -literal -offset indent
1507 /sbin/gpart backup ada0 | /sbin/gpart restore -F ada1 ada2
1523 Partition type
1524 .Em apple-zfs
1525 (6a898cc3-1dd2-11b2-99a6-080020736631) is also being used