When a server is created, the system disk is automatically initialized with Master Boot Record (MBR).
After you attach a newly created empty data disk to a server, you must initialize the disk before using it. The initialization includes creating partitions and file systems, and mounting partitions.
For detailed operation instructions, see Table 1.
An existing data disk is a disk created from a data source (snapshot, backup, or image) or one detached from a server. Re-partitioning a disk will erase all the existing data on the disk, so you are advised to create snapshots to back up the disk data first. For detailed initialization operations, see Table 1.
Major initialization steps include creating partitions and file systems, mounting partitions, and configuring auto-mount at system startup. In Linux, you can choose different partition styles based on your disk capacity. For details, see Table 2.
MBR supports disks up to 2 TiB, whereas GPT supports disks up to 18 EiB. If your disk is greater than 2 TiB or you plan to expand it to over 2 TiB later, use GPT when initializing disks.
Disk Capacity | Partition Style | OS | Reference |
|---|---|---|---|
Capacity ≤ 2 TiB | Guid Partition Table (GPT) or MBR | Linux | Initializing a Linux Data Disk (Less Than or Equal to 2 TiB) |
Windows | |||
Capacity > 2 TiB | GPT | Linux | |
Windows |
Common disk partition styles include MBR and GPT. In Linux, you can choose the most appropriate partition style and partitioning tool based on your disk capacity, as described in Partition Styles.
Partition Style | Max. Disk Size Supported | Max. Number of Partitions Supported | Linux Partitioning Tool | Reference |
|---|---|---|---|---|
MBR | 2 TiB | MBR partitions include primary partitions and extended partitions. A maximum of four primary partitions are supported. If you need more partitions, create one extended partition. The following is a typical example:
The extended partition must be divided into logical partitions before use. For example, to create six partitions, you can create them in either of the following ways: |
| Initializing a Linux Data Disk (Less Than or Equal to 2 TiB) |
GPT | 18 EiB 1 EiB = 1048576 TiB | Not limited GPT partitions are not categorized. | parted |