The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
欢迎使用 fdisk (util-linux 2.23.2)。
更改将停留在内存中,直到您决定将更改写入磁盘。
使用写入命令前请三思。
命令(输入 m 获取帮助):m
命令操作
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
命令(输入 m 获取帮助):n
All primary partitions are in use
添加逻辑分区 8
起始 扇区 (803241984-908099583,默认为 803241984): # 我这里只准备创建一个卷,用的整个空白分区,所以都直接直接enter键使用默认值, 也可以自己手动修改为范围内的值
将使用默认值 803241984
Last 扇区, +扇区 or +size{K,M,G} (803241984-908099583,默认为 908099583):
将使用默认值 908099583
分区 8 已设置为 Linux 类型,大小设为 50 GiB
命令(输入 m 获取帮助):p
磁盘 /dev/sda:500.1 GB, 500107862016 字节,976773168 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
磁盘标签类型:dos
磁盘标识符:0x1f4a1000
设备 Boot Start End Blocks Id System
/dev/sda1 * 2048 167776255 83887104 7 HPFS/NTFS/exFAT
/dev/sda2 167778302 908099583 370160641 f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda3 908099584 9101