/illumos-gate/usr/src/man/man8/ |
H A D | fdisk.8 | 9 fdisk \- create or modify fixed disk partition table 32 Create and modify an \fBfdisk\fR partition table on x86 systems 38 Create and modify an \fBfdisk\fR partition table on removable media on SPARC or 52 partition containing the second-stage bootstrap (the \fIactive\fR Solaris 53 partition). The \fIrdevice\fR argument must be used to specify the raw device 58 mode. In interactive mode, the program displays the partition table as it 64 In interactive mode, if there is no partition table on the disk, the user is 67 Solaris system and makes the Solaris system partition active. In either case, 69 bootstrap (x86 only) code along with the partition table. In this mode, (x86 70 only) when creating an entry for a non-EFI partition on a disk that is larger [all …]
|
H A D | fmthard.8 | 64 .Sq partition 69 partition on x86 machines. 81 for a particular partition in the current 87 is the partition number, 91 TAG of the partition, 95 is the starting sector number of the partition, and 97 is the number of sectors in the partition. 126 This option causes all of the disk partition timestamp fields to be set 133 will also have partition 2, by convention, that corresponds to the whole disk. 136 does not specify an entry for partition 2, a default partition 2 entry will be [all …]
|
H A D | installboot.8 | 19 .Nd install bootloader in a disk partition 72 and partition boot program. 85 which is always installed at least on partition 106 partition defined to store stage2 boot program. 110 The boot partition must use following GPT UUID: 119 partition menu. 124 directory of the EFI System Partition (ESP). 161 partition. 182 Mirror boot loader from installed disk partition. 240 The system will always boot the current OS partition regardless of which fdisk [all …]
|
/illumos-gate/usr/src/boot/efi/include/Uefi/ |
H A D | UefiGpt.h | 2 EFI Guid Partition Table Format Definition. 13 /// The primary GUID Partition Table Header must be 18 /// EFI Partition Table Signature: "EFI PART". 29 /// GPT Partition Table Header. 33 /// The table header for the GPT partition Table. 42 /// LBA address of the alternate GUID Partition Table Header. 47 /// by a partition described by a GUID Partition Entry. 52 /// by a partition described by a GUID Partition Entry. 60 /// The starting LBA of the GUID Partition Entry array. 64 /// The number of Partition Entries in the GUID Partition Entry array. [all …]
|
/illumos-gate/usr/src/man/man4i/ |
H A D | dkio.4i | 34 requests for disk controller, geometry, and partition information. 73 ushort_t dki_partition; /* partition number */ 132 gets the controller's notion of the current partition table 141 sets the controller's notion of the partition table without 145 * Partition map (part of dk_label) 198 struct partition { 199 ushort_t p_tag; /* ID tag of partition */ 201 daddr_t p_start; /* start sector of partition */ 202 long p_size; /* # of blocks in partition */ 224 struct partition v_part[V_NUMPAR]; /* partition headers */ [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | partition.c | 28 * This file contains functions that operate on partition tables. 33 #include "partition.h" 72 * This routine finds the last usable sector in the partition table. 73 * It skips the BACKUP partition. 113 * partition in the current partition map. 131 * check if there exists a partition table for the disk. in change_partition() 134 err_print("Current Disk has no partition table.\n"); in change_partition() 140 err_print("Invalid partition for EFI label\n"); in change_partition() 146 * Prompt for p_tag and p_flag values for this partition in change_partition() 152 (void) sprintf(msg, "Enter partition id tag"); in change_partition() [all …]
|
H A D | modify_partition.c | 27 * This file contains functions to implement the partition menu commands. 32 #include "partition.h" 54 * Modify/Create a predefined partition table. 78 * check if there exists a partition table for the disk. in p_modify() 81 err_print("Current Disk has no partition table.\n"); in p_modify() 112 err_print("Cannot modify disk partition when " in p_modify() 118 * prompt user for a partition table base in p_modify() 122 "\t0. Current partition table (%s)", in p_modify() 126 "\t0. Current partition table (unnamed)"); in p_modify() 148 "different partition table.\n"); in p_modify() [all …]
|
H A D | format.dat | 26 # disks, disk types, and partition maps. 151 # Following is a list of sample partition tables for embedded SCSI disks. 153 partition = "Quantum ProDrive 80S" \ 157 #partition = "CDC Wren VII 94601-12G" \ 161 #partition = "CDC Wren IV 94171-327" \ 166 # This is the list of partition tables for embedded SCSI controllers. 168 partition = "Quantum ProDrive 105S" \ 172 partition = "CDC Wren IV 94171-344, small root" \ 176 partition = "CDC Wren IV 94171-344" \ 180 partition = "SUN0104" \ [all …]
|
H A D | menu_partition.c | 26 * This file contains functions to implement the partition menu commands. 32 #include "partition.h" 42 * This routine implements the 'a' command. It changes the 'a' partition. 53 * This routine implements the 'b' command. It changes the 'b' partition. 64 * This routine implements the 'c' command. It changes the 'c' partition. 75 * This routine implements the 'd' command. It changes the 'd' partition. 86 * This routine implements the 'e' command. It changes the 'e' partition. 97 * This routine implements the 'f' command. It changes the 'f' partition. 108 * This routine implements the 'g' command. It changes the 'g' partition. 119 * This routine implements the 'h' command. It changes the 'h' partition. [all …]
|
H A D | init_menus.c | 57 { "partition - select (define) a partition table", 90 { "save - save new disk/partition definitions", 116 * This declaration is for the partition menu. It is used to create 117 * and maintain partition tables. 120 { "0 - change `0' partition", 122 { "1 - change `1' partition", 124 { "2 - change `2' partition", 126 { "3 - change `3' partition", 128 { "4 - change `4' partition", 130 { "5 - change `5' partition", [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | diskmbr.h | 47 #define DOSPTYP_EXT 0x05 /* DOS extended partition */ 48 #define DOSPTYP_FAT16 0x06 /* FAT16 partition */ 49 #define DOSPTYP_NTFS 0x07 /* NTFS partition */ 50 #define DOSPTYP_FAT32 0x0b /* FAT32 partition */ 51 #define DOSPTYP_EXTLBA 0x0f /* DOS extended partition */ 52 #define DOSPTYP_PPCBOOT 0x41 /* PReP/CHRP boot partition */ 53 #define DOSPTYP_LDM 0x42 /* Win2k dynamic extended partition */ 54 #define DOSPTYP_LINSWP 0x82 /* Linux swap partition */ 55 #define DOSPTYP_LINUX 0x83 /* Linux partition */ 56 #define DOSPTYP_LINLVM 0x8e /* Linux LVM partition */ [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | disk.c | 97 * As the GPT backup partition is located at the end of the disk, in ptblread() 234 int rc, slice, partition; in disk_open() local 262 partition = dev->d_partition; in disk_open() 264 DPRINTF("%s unit %d, slice %d, partition %d => %p", disk_fmtdev(dev), in disk_open() 271 DPRINTF("Can't read partition table"); in disk_open() 284 partition >= 0) { in disk_open() 286 rc = ptable_getpart(od->table, &part, partition); in disk_open() 295 /* Try to get information about partition */ in disk_open() 300 if (rc != 0) /* Partition doesn't exist */ in disk_open() 306 partition = D_PARTISGPT; in disk_open() [all …]
|
H A D | disk.h | 41 * VTOC disklabel partition within an MBR slice: 44 * d_partition = disklabel partition (typically 0..19 or D_PARTWILD) 46 * BSD disklabel partition within an MBR slice: 49 * d_partition = disklabel partition (typically 0..19 or D_PARTWILD) 51 * BSD disklabel partition on the true dedicated disk: 54 * d_partition = disklabel partition (typically 0..19 or D_PARTWILD) 56 * GPT partition: 58 * d_slice = GPT partition number (typically 1..N) 62 * partition within the slice. 64 * For both MBR and GPT, to automatically find the 'best' slice and partition, [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | disk_io.c | 103 /* The register ESI should contain the address of the partition to be 122 /* these are the translated numbers for the open partition */ 314 * Check partition boundaries in devread() 324 * Get the read to the beginning of a partition. in devread() 389 embed a Stage 1.5 into a partition instead of a MBR, use system in devwrite() 455 /* Turn on the active flag for the partition SAVED_PARTITION in the 468 /* If the partition is not a primary partition, the active flag is in make_saved_active() 480 /* If the partition is an extended partition, setting the active in make_saved_active() 532 /* The partition must be a PC slice. */ in set_partition_hidden_flag() 540 /* Look for the partition. */ in set_partition_hidden_flag() [all …]
|
/illumos-gate/usr/src/uts/common/sys/dktp/ |
H A D | fdisk.h | 69 #define MINPSIZE 4 /* minimum number of cylinders in a partition */ 73 * structure to hold the fdisk partition table 85 uint32_t numsect; /* number of sectors in partition */ 95 #define UNUSED 0 /* Empty Partition */ 96 #define DOSOS12 1 /* DOS partition, 12-bit FAT */ 97 #define PCIXOS 2 /* PC/IX partition */ 98 #define DOSOS16 4 /* DOS partition, 16-bit FAT */ 99 #define EXTDOS 5 /* EXT-DOS partition */ 100 #define DOSHUGE 6 /* Huge DOS partition > 32MB */ 108 #define FDISK_EXTLBA 15 /* Extended partition, LBA-mapped */ [all …]
|
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.h | 85 * Extended partition structure : 88 * || |----------+---> structure at the beginning of the extended partition 91 * |+--+ | | Logical drive within the extended partition 103 * of the logical drive in this extended partition. The second is the offset 104 * and size of the next extended partition. The offsets are relative to 105 * beginning of the first extended partition. These extended partitions are 107 * Note that (currently) only one extended partition can exist in the MBR. 108 * The system ID of a logical drive within the extended partition cannot be 109 * that of an extended partition. 140 * Absolute beginning sector of the extended partition, and hence an [all …]
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 36 * This program reads the partition table on the specified device and 139 /* Maximum number of digits for a valid partition size */ 142 /* Minimum partition size in cylinders */ 155 static char Usage1[] = " Partition options:\n" 157 " Create a partition with specific attributes:\n" 158 " id = system id number (fdisk.h) for the partition type\n" 159 " act = active partition flag (0 is off and 128 is on)\n" 160 " bhead = beginning head for start of partition\n" 161 " bsect = beginning sector for start of partition\n" 162 " bcyl = beginning cylinder for start of partition\n" [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vtoc.h | 72 * Partition identification tags 74 #define V_UNASSIGNED 0x00 /* unassigned partition */ 75 #define V_BOOT 0x01 /* Boot partition */ 80 #define V_STAND 0x06 /* Stand partition */ 81 #define V_VAR 0x07 /* Var partition */ 82 #define V_HOME 0x08 /* Home partition */ 83 #define V_ALTSCTR 0x09 /* Alternate sector partition */ 84 #define V_CACHE 0x0a /* CacheFS partition (obsolete) */ 88 #define V_SYSTEM 0x0c /* EFI/GPT system partition */ 93 #define V_BIOS_BOOT 0x18 /* Grub2 BIOS Boot partition */ [all …]
|
H A D | dklabel.h | 89 * partition headers: section 1 95 /* partition is undefined */ 99 * partition headers: section 1 105 /* partition is undefined */ 109 * partition headers: section 2, 113 uint16_t p_tag; /* ID tag of partition */ 118 uint16_t p_tag; /* ID tag of partition */ 120 blkaddr32_t p_start; /* start sector no of partition */ 121 blkaddr32_t p_size; /* # of blocks in partition */ 139 struct dkl_partition v_part[NDKMAP]; /* partition headers */ [all …]
|
H A D | cpupart.h | 49 * Special partition id. 60 disp_t cp_kp_queue; /* partition-wide kpreempt queue */ 61 cpupartid_t cp_id; /* partition ID */ 63 struct cpupart *cp_next; /* next partition in list */ 64 struct cpupart *cp_prev; /* previous partition in list */ 66 struct kstat *cp_kstat; /* per-partition statistics */ 85 /* partition has cpus */ 87 /* partition, indexed by lgrp ID */ 109 * with given cpu partition. 129 * Each partition contains a bitset that indicates which CPUs are halted and [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 45 #include "partition.h" 97 * we just get the active solaris partition. 134 * If this is a slice desc. we need the first active solaris partition in partition_get_assocs() 135 * and if there isn't one then we need the first solaris partition. in partition_get_assocs() 159 /* we found a solaris partition to use */ in partition_get_assocs() 196 * format so that it refers to the fdisk partition in partition_get_assocs() 199 * physical disk partition. in partition_get_assocs() 256 * Look for the partition by the partition number (which is not too useful). 263 descriptor_t *partition = NULL; in partition_get_descriptor_by_name() local 272 partition = partitions[i]; in partition_get_descriptor_by_name() [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 51 * CPU partitions. cpu_lock protects the CPU partition list, and prevents 62 * The cp_default partition is allocated statically, but its lgroup load average 89 * partition is a kernel dispatcher object consisting of a set of CPUs 91 * implemented via a CPU partition, and currently there is a 1-1 93 * partition, which is not visible as a processor set). Hence, the 105 * Find a CPU partition given a processor set ID. 115 /* default partition not visible as a processor set */ in cpupart_find_all() 132 * Find a CPU partition given a processor set ID if the processor set 266 * Initialize the default partition and kpreempt disp queue. 355 * the partition. Note that threads can't enter the in cpupart_move_cpu() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlib.c | 107 * Get the active configuration information for the partition given by 120 * The ioc_linkid here will contain the data link id of the IB partition in i_dladm_part_info_active() 143 * If the IP over IB driver reports that this partition was created in i_dladm_part_info_active() 154 * Get the configuration information about the IB partition 'linkid' from the 170 /* Get the IB partition's datalink ID */ in i_dladm_part_info_persist() 182 * Get the name of the IB Phys link over which IB partition was in i_dladm_part_info_persist() 198 /* Get the IB partition's P_Key */ in i_dladm_part_info_persist() 211 * set the force create flag in the partition attributes. in i_dladm_part_info_persist() 229 * Get the configuration information for the IB partition given by the datalink 335 * Call into the IP over IB driver to create a partition object. [all …]
|
/illumos-gate/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 161 * The EFI reserved partition size is 8 MiB. This calculates the number of 232 * Read EFI - return partition number upon success. 263 /* Check if we have partition with ID EFI_PMBR */ in efi_alloc_and_read() 384 * get the partition number for this file descriptor. in efi_read() 452 * Later, we will read GUID partition entry array if we in efi_read() 496 * Partition tables are between backup GPT header in efi_read() 498 * the GUID partition entries array). Now that we in efi_read() 500 * dk_ioc.dki_data, we try to get GUID partition in efi_read() 518 * read GUID partition entry array in efi_read() 825 "partition %d is \"unassigned\" but has a size of %llu", in check_input() [all …]
|
/illumos-gate/usr/src/man/man5/ |
H A D | format.dat.5 | 32 partition tables. 83 \fBsearch_path\fR, \fBdisk_type\fR, and \fBpartition\fR. 422 \fB\fBpartition\fR\fR 425 Defines a partition table for a specific disk type. The partition table 427 \fBformat\fR(8). The default data file contains default partition definitions 428 for several kinds of disk drives. Add a partition definition if you 429 repartitioned any of the disks on your system. Add as many partition 432 Partition naming conventions differ in SunOS 4.x and in SunOS 5.x. 443 \fBExample 1 \fRA sample \fBdisk_type\fR and \fBpartition\fR. 446 Following is a sample \fBdisk_type\fR and \fBpartition\fR definition in [all …]
|