Linux fdisk create partition primary process detailed

In this section we actually build a primary partition, and see what the process is. Command is as follows:
[the root @ localhost ~] # the fdisk / dev / SDB
... output omitted ...
the Command (m for Help): P
# display current hard disk partition table
Disk / dev / sdb: 21.5 GB , 21474836480 bytes 255 heads, 63 sectors / Track, 2610. Cylinders
Units = Cylinders of 16065 * 512 = 8.22528 million bytes
Sector size (Logical / PHYSICAL): 512 bytes / 512 bytes
the I / O size (Minimum / Optimal): 512 bytes / 512 bytes
Disk identifier: 0xb4b0720c
Device the Boot the System ID End Blocks the Start
# is currently a partition without
the Command (m for Help): n-
# we create a new partition
the Command Action
# specify a partition type
E extended
# extended partition
P primary partition (1-4)
# primary partition
P
# here select p, to create a primary partition
Number the Partition (1-4): 1
# Select the partition number in the range 1 to 4, Pick 1
First Cylinder (1 -2.61 thousand, default 1):
Starting cylinder # partition 1 starts from default. Because start over from the hard disk partition, it can directly enter
the Using default value. 1
# prompted to use the default value. 1
Last Cylinder, or Cylinders + size + {K, M, G} (1-2610, default 2610.): +. 5G
# specify the hard disk size. It can be specified (1-2610) Following cylinder. We are not familiar with the cylinder, you can use size {K, M, G} specify the disk size. This specifies + 5G, the establishment of a 5GB partition size of
the Command (m for Help):
# primary partition on the establishment, went back to the fdisk interface prompt
the Command (m for Help): the p-
# inquiries about the newly created partition
Disk / dev / SDB: 21.5GB, 21,474,836,480 bytes
255 Heads, 63 is sectors / Track, 2610. Cylinders
Units = Cylinders of 16065 * 512 = 8.22528 million bytes
Sector size (Logical / PHYSICAL): 512 bytes 1512 bytes
the I / O size (Minimum / Optimal ): 512 bytes / 512 bytes
Identifier The Disk: 0xb4b0720c
Device the Boot Start End Blocks the above mentioned id System
/ dev / sdb1 1 654 83 5253223+ Linux
# dev / sdb1 it has been established

Concluded that the establishment of the primary partition process is this: "fdisk hard disk name -> n (New) -> p (establish primary partition) -> 1 (designated partition number) -> Enter (the default partition will start from 1 cylinder ) -> + 5G (specify the partition size). " Of course, we have not formatted partitions and mounted, so it can not be used.

Published 160 original articles · won 97 Like · views 160 000 +

Guess you like

Origin blog.csdn.net/zyy1659949090/article/details/88176705