Environment: Virtual Machine VMWARE10
Here are a few things to watch out for:
First, partition type :
1, Primary partition: There can be up to four;
2. Extended partition: Can only have one, and the primary partition plus the extended partition can only have four, the extended partition cannot write data, can only contain logical partition
3. Logical partition: Can write data and format
As an example :
where 1, 2, 3 is the primary partition, 4 is an extended partition, 5, 6 is a logical partition, the extended partition contains logical partitions, and the primary partition and the extended partition cannot exceed four.
The disk partition number in Linux is represented by serial numbers such as SDA1, Sda2, Sda3, etc., such as 1, 2, 3, 4, 5, 6 can be represented by SDA1, Sda2, Sda3, Sda4, Sda5, Sda6, respectively. But it is important to note that the first four of the area code (that is, sda1, Sda2, Sda3, SDA4) are forcibly assigned to the primary or extended partition in Linux, meaning that the logical partition can only be started from Sda5, for example:
The disk divides only one primary partition, one extended partition, and 3 logical partitions, because 1, 2, 3, and 4 area codes can only be assigned to primary and extended partitions, so even if the primary partition has only two expansion partitions, the logical partition can only start at 5.
Second, format the partition
A formatted partition, also known as a logical format partition, refers to a user writing a specified file system (such as EXT2, EXT3, EXT4, select EXT4 here) to the specified partition (writing to the filesystem actually does two things: dividing the division into blocks of equal size, and create an inode list for locating block blocks)
Iii. creating partitions (assigning mount points)
General referral allocation is four partitions (the total disk size in the virtual machine is 20G):
1,/(root partition), the root partition must be assigned;
2, swap partition (swap partition, the size of memory twice times, generally not more than 2GB), the partition must also be allocated;
3,/boot (boot partition, size 200MB);
4,/home (size 2GB or so);
Reference: Brother even Linux video tutorial
Linux Learning (a) system partitioning