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-zfs
687 partition that contains a ZFS volume.
688 The scheme-specific types are
689 .Qq Li "!FreeBSD-ZFS"
691 .Qq Li "!516e7cba-6ecf-11d6-8ff8-00022d09712b"
698 .Bl -tag -width ".Cm dragonfly-disklabel64"
699 .It Cm apple-apfs
700 An Apple macOS partition used for the Apple file system, APFS.
701 .It Cm apple-core-storage
702 An Apple Mac OS X partition used by logical volume manager known as
704 The scheme-specific type is
705 .Qq Li "!53746f72-6167-11aa-aa11-00306543ecac"
707 .It Cm apple-hfs
708 An Apple Mac OS X partition that contains a HFS or HFS+ filesystem.
709 The scheme-specific types are
714 .Qq Li "!48465300-0000-11aa-aa11-00306543ecac"
716 .It Cm apple-label
717 An Apple Mac OS X partition dedicated to partition metadata that descibes
719 The scheme-specific type is
720 .Qq Li "!4c616265-6c00-11aa-aa11-00306543ecac"
722 .It Cm apple-raid
723 An Apple Mac OS X partition used in a software RAID configuration.
724 The scheme-specific type is
725 .Qq Li "!52414944-0000-11aa-aa11-00306543ecac"
727 .It Cm apple-raid-offline
728 An Apple Mac OS X partition used in a software RAID configuration.
729 The scheme-specific type is
730 .Qq Li "!52414944-5f4f-11aa-aa11-00306543ecac"
732 .It Cm apple-tv-recovery
733 An Apple Mac OS X partition used by Apple TV.
734 The scheme-specific type is
735 .Qq Li "!5265636f-7665-11aa-aa11-00306543ecac"
737 .It Cm apple-ufs
738 An Apple Mac OS X partition that contains a UFS filesystem.
739 The scheme-specific types are
744 .Qq Li "!55465300-0000-11aa-aa11-00306543ecac"
746 .It Cm apple-zfs
747 An Apple Mac OS X partition that contains a ZFS volume.
748 The scheme-specific type is
749 .Qq Li "!6a898cc3-1dd2-11b2-99a6-080020736631"
752 .Sy illumos/Solaris /usr partition .
756 .It Cm dragonfly-label32
759 partition subdivided into filesystems with a
762 The scheme-specific type is
763 .Qq Li "!9d087404-1ca5-11dc-8817-01301bb8a9f5"
765 .It Cm dragonfly-label64
768 partition subdivided into filesystems with a
770 The scheme-specific type is
771 .Qq Li "!3d48ce54-1d16-11dc-8696-01301bb8a9f5"
773 .It Cm dragonfly-legacy
774 A legacy partition type used in
776 The scheme-specific type is
777 .Qq Li "!bd215ab2-1d16-11dc-8696-01301bb8a9f5"
779 .It Cm dragonfly-ccd
782 partition used with Concatenated Disk driver.
783 The scheme-specific type is
784 .Qq Li "!dbd5211b-1ca5-11dc-8817-01301bb8a9f5"
786 .It Cm dragonfly-hammer
789 partition that contains a Hammer filesystem.
790 The scheme-specific type is
791 .Qq Li "!61dc63ac-6e38-11dc-8513-01301bb8a9f5"
793 .It Cm dragonfly-hammer2
796 partition that contains a Hammer2 filesystem.
797 The scheme-specific type is
798 .Qq Li "!5cbb9ad1-862d-11dc-a94d-01301bb8a9f5"
800 .It Cm dragonfly-swap
803 partition dedicated to swap space.
804 The scheme-specific type is
805 .Qq Li "!9d58fdbd-1ca5-11dc-8817-01301bb8a9f5"
807 .It Cm dragonfly-ufs
810 partition that contains an UFS1 filesystem.
811 The scheme-specific type is
812 .Qq Li "!9d94ce7c-1ca5-11dc-8817-01301bb8a9f5"
814 .It Cm dragonfly-vinum
817 partition used with Logical Volume Manager.
818 The scheme-specific type is
819 .Qq Li "!9dd4478f-1ca5-11dc-8817-01301bb8a9f5"
822 A partition subdivided into filesystems with a EBR.
823 The scheme-specific type is
827 A partition that contains a FAT16 filesystem.
828 The scheme-specific type is
832 A partition that contains a FAT32 filesystem.
833 The scheme-specific type is
837 A partition that contains a FAT32 (LBA) filesystem.
838 The scheme-specific type is
841 .It Cm hifive-fsbl
842 A raw partition containing a HiFive first stage bootloader.
843 The scheme-specific type is
844 .Qq Li "!5b193300-fc78-40cd-8002-e86c45580b47"
846 .It Cm hifive-bbl
847 A raw partition containing a HiFive second stage bootloader.
848 The scheme-specific type is
849 .Qq Li "!2e54b353-1271-4842-806f-e436d6af6985"
851 .It Cm linux-data
852 A Linux partition that contains some filesystem with data.
853 The scheme-specific types are
856 .Qq Li "!0fc63daf-8483-4772-8e79-3d69d8477de4"
858 .It Cm linux-lvm
859 A Linux partition dedicated to Logical Volume Manager.
860 The scheme-specific types are
863 .Qq Li "!e6d6d379-f507-44c2-a23c-238f2a3df928"
865 .It Cm linux-raid
866 A Linux partition used in a software RAID configuration.
867 The scheme-specific types are
870 .Qq Li "!a19d880f-05fc-4d3b-a006-743f0f84911e"
872 .It Cm linux-swap
873 A Linux partition dedicated to swap space.
874 The scheme-specific types are
877 .Qq Li "!0657fd6d-a4ab-43c4-84e5-0933c84b4f4f"
880 A partition that is sub-partitioned by a Master Boot Record (MBR).
882 .Qq Li "!024dee41-33e7-11d3-9d69-0008c781f39f"
884 .It Cm ms-basic-data
885 A basic data partition (BDP) for Microsoft operating systems.
886 In the GPT this type is the equivalent to partition types
892 The scheme-specific type is
893 .Qq Li "!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"
895 .It Cm ms-ldm-data
896 A partition that contains Logical Disk Manager (LDM) volumes.
897 The scheme-specific types are
900 .Qq Li "!af9b60a0-1431-4f62-bc68-3311714a69ad"
902 .It Cm ms-ldm-metadata
903 A partition that contains Logical Disk Manager (LDM) database.
904 The scheme-specific type is
905 .Qq Li "!5808c8aa-7e8f-42e0-85d2-e1e90434cfb3"
907 .It Cm netbsd-ccd
910 partition used with Concatenated Disk driver.
911 The scheme-specific type is
912 .Qq Li "!2db519c4-b10f-11dc-b99b-0019d1879648"
914 .It Cm netbsd-cgd
917 partition.
918 The scheme-specific type is
919 .Qq Li "!2db519ec-b10f-11dc-b99b-0019d1879648"
921 .It Cm netbsd-ffs
924 partition that contains an UFS filesystem.
925 The scheme-specific type is
926 .Qq Li "!49f48d5a-b10e-11dc-b99b-0019d1879648"
928 .It Cm netbsd-lfs
931 partition that contains an LFS filesystem.
932 The scheme-specific type is
933 .Qq Li "!49f48d82-b10e-11dc-b99b-0019d1879648"
935 .It Cm netbsd-raid
938 partition used in a software RAID configuration.
939 The scheme-specific type is
940 .Qq Li "!49f48daa-b10e-11dc-b99b-0019d1879648"
942 .It Cm netbsd-swap
945 partition dedicated to swap space.
946 The scheme-specific type is
947 .Qq Li "!49f48d32-b10e-11dc-b99b-0019d1879648"
950 A partition that contains a NTFS or exFAT filesystem.
951 The scheme-specific type is
954 .It Cm prep-boot
955 The system partition dedicated to storing boot loaders on some PowerPC systems,
957 The scheme-specific types are
960 .Qq Li "!9e1a2d38-c612-4316-aa26-8b49521e5a8b"
962 .It Cm solaris-boot
963 A illumos/Solaris partition dedicated to boot loader.
964 The scheme-specific type is
965 .Qq Li "!6a82cb45-1dd2-11b2-99a6-080020736631"
967 .It Cm solaris-root
968 A illumos/Solaris partition dedicated to root filesystem.
969 The scheme-specific type is
970 .Qq Li "!6a85cf4d-1dd2-11b2-99a6-080020736631"
972 .It Cm solaris-swap
973 A illumos/Solaris partition dedicated to swap.
974 The scheme-specific type is
975 .Qq Li "!6a87c46f-1dd2-11b2-99a6-080020736631"
977 .It Cm solaris-backup
978 A illumos/Solaris partition dedicated to backup.
979 The scheme-specific type is
980 .Qq Li "!6a8b642b-1dd2-11b2-99a6-080020736631"
982 .It Cm solaris-var
983 A illumos/Solaris partition dedicated to /var filesystem.
984 The scheme-specific type is
985 .Qq Li "!6a8ef2e9-1dd2-11b2-99a6-080020736631"
987 .It Cm solaris-home
988 A illumos/Solaris partition dedicated to /home filesystem.
989 The scheme-specific type is
990 .Qq Li "!6a90ba39-1dd2-11b2-99a6-080020736631"
992 .It Cm solaris-altsec
993 A illumos/Solaris partition dedicated to alternate sector.
994 The scheme-specific type is
995 .Qq Li "!6a9283a5-1dd2-11b2-99a6-080020736631"
997 .It Cm solaris-reserved
998 A illumos/Solaris partition dedicated to reserved space.
999 The scheme-specific type is
1000 .Qq Li "!6a945a3b-1dd2-11b2-99a6-080020736631"
1002 .It Cm u-boot-env
1003 A raw partition dedicated to U-Boot for storing its environment.
1004 The scheme-specific type is
1005 .Qq Li "!3de21764-95bd-54bd-a5c3-4abe786f38a8"
1007 .It Cm vmware-vmfs
1008 A partition that contains a VMware File System (VMFS).
1009 The scheme-specific types are
1012 .Qq Li "!aa31e02a-400f-11db-9590-000c2911d1b8"
1014 .It Cm vmware-vmkdiag
1015 A partition that contains a VMware diagostic filesystem.
1016 The scheme-specific types are
1019 .Qq Li "!9d275380-40ad-11db-bf97-000c2911d1b8"
1021 .It Cm vmware-reserved
1022 A VMware reserved partition.
1023 The scheme-specific type is
1024 .Qq Li "!9198effc-31c0-11db-8f-78-000c2911d1b8"
1026 .It Cm vmware-vsanhdr
1027 A partition claimed by VMware VSAN.
1028 The scheme-specific type is
1029 .Qq Li "!381cfccc-7288-11e0-92ee-000c2911d0b2"
1033 The scheme-specific attributes for EBR:
1034 .Bl -tag -width ".Cm active"
1038 The scheme-specific attributes for GPT:
1039 .Bl -tag -width ".Cm bootfailed"
1043 stage 1 boot loader will try to boot the system from this partition.
1056 stage 1 boot loader will try to boot the system from this partition only once.
1071 start-up script.
1077 the 0xee partition is the second, rather than the first record.
1083 The scheme-specific attributes for MBR:
1084 .Bl -tag -width ".Cm active"
1096 second type is located on a specific partition.
1105 The Master Boot Record (MBR) uses a 512-byte bootstrap code image, embedded
1106 into the partition table's metadata area.
1112 searches for a partition with the
1116 section) in the partition table.
1121 for multi-booting from a user-selected partition.
1123 A BSD disklabel is usually created inside an MBR partition (slice)
1127 .Sx "PARTITION TYPES"
1131 embedded into the partition table's metadata area.
1133 Both types of bootstrap code are used to boot from the GUID Partition Table.
1138 .Cm freebsd-boot
1139 partition (see the
1140 .Sx "PARTITION TYPES"
1143 .Cm freebsd-boot
1144 partition should be smaller than 545 KB.
1148 There are two variants of bootstrap code to write to this partition:
1157 .Cm freebsd-ufs
1166 .Cm freebsd-ufs
1167 partition.
1170 is loaded from the first partition that matches these conditions.
1178 .Cm freebsd-zfs
1189 command to a partition of type
1190 .Cm apple-boot ,
1200 This option is used to specify action-specific operational flags.
1217 The GEOM PART class supports recovering of partition tables only for GPT.
1233 .Bd -literal -offset indent
1235 GEOM: provider: using the secondary instead -- recovery strongly advised.
1239 .Bd -literal -offset indent
1241 GEOM: provider: using the primary only -- recovery suggested.
1255 corruption of the primary GPT will lead to loss of the partition table.
1257 .Bd -literal -offset indent
1268 The GEOM PART class can detect the same partition table visible through
1280 .Bl -tag -width indent
1303 GEOM class verifies all generic partition parameters obtained from the
1305 If some inconsistency is detected, the partition table will be
1320 .Cm ms-ldm-data
1322 .Sx "PARTITION TYPES"
1325 present as independent partition.
1330 If this variable is set to a non-zero value, the module will automatically
1331 recalculate the user-specified offset and size for alignment with the CHS
1336 and partition name.
1352 First, we need to create the partition table:
1353 .Bd -literal -offset indent
1354 /sbin/gpart create -s GPT ada0
1357 Next, we install a protective MBR with the first-stage bootstrap code.
1358 The protective MBR lists a single, bootable partition spanning the
1359 entire disk, thus allowing non-GPT-aware BIOSes to boot from the disk
1362 .Bd -literal -offset indent
1363 /sbin/gpart bootcode -b /boot/pmbr ada0
1367 .Cm freebsd-boot
1368 partition to hold the second-stage boot loader, which will load the
1371 This partition must be larger than the bootstrap code
1379 but smaller than 545 kB since the first-stage loader will load the
1380 entire partition into memory during boot, regardless of how much data
1382 We create a 472-block (236 kB) boot partition at offset 40, which is
1383 the size of the partition table (34 blocks or 17 kB) rounded up to the
1385 .Bd -literal -offset indent
1386 /sbin/gpart add -b 40 -s 472 -t freebsd-boot ada0
1387 /sbin/gpart bootcode -p /boot/gptboot -i 1 ada0
1390 We now create a 4 GB swap partition at the first available offset,
1392 .Bd -literal -offset indent
1393 /sbin/gpart add -s 4G -t freebsd-swap ada0
1396 Aligning the swap partition and all subsequent partitions on a 256 kB
1398 plain old disks with 512-byte blocks, through modern
1400 disks with 4096-byte physical blocks, to RAID volumes with stripe
1404 .Cm freebsd-ufs
1405 partition for the root filesystem, leaving the rest of the device free
1407 .Bd -literal -offset indent
1408 /sbin/gpart add -s 8G -t freebsd-ufs ada0
1409 /sbin/newfs -Uj /dev/ada0p3
1414 with the MBR scheme and create a single partition which we subdivide
1419 First, we create the partition table as well as a single partition 64 GB in
1420 size and an alignment of 4 kB, then we mark that partition active (bootable)
1421 and install the first-stage boot loader:
1422 .Bd -literal -offset indent
1423 /sbin/gpart create -s MBR ada0
1424 /sbin/gpart add -t freebsd -s 64G -a 4k ada0
1425 /sbin/gpart set -a active -i 1 ada0
1426 /sbin/gpart bootcode -b /boot/boot0 ada0
1429 Next, we create a disklabel in that partition
1435 .Bd -literal -offset indent
1436 /sbin/gpart create -s BSD -n 20 ada0s1
1439 We then create an 8 GB root partition and a 4 GB swap partition:
1440 .Bd -literal -offset indent
1441 /sbin/gpart add -t freebsd-ufs -s 8G ada0s1
1442 /sbin/gpart add -t freebsd-swap -s 4G ada0s1
1448 .Bd -literal -offset indent
1449 /sbin/gpart bootcode -b /boot/boot ada0s1
1454 error is shown when trying to destroy a partition table, remember that
1461 .Bd -literal -offset indent
1462 /sbin/gpart delete -i 3 da0
1463 /sbin/gpart delete -i 2 da0
1464 /sbin/gpart delete -i 1 da0
1468 Rather than deleting each partition and then destroying the partitioning
1475 .Bd -literal -offset indent
1476 /sbin/gpart destroy -F da0
1479 Create a backup of the partition table from
1481 .Bd -literal -offset indent
1485 Restore the partition table from the backup to
1487 .Bd -literal -offset indent
1488 /sbin/gpart restore -l da0 < /mnt/da0.backup
1491 Clone the partition table from
1497 .Bd -literal -offset indent
1498 /sbin/gpart backup ada0 | /sbin/gpart restore -F ada1 ada2
1514 Partition type
1515 .Em apple-zfs
1516 (6a898cc3-1dd2-11b2-99a6-080020736631) is also being used